<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25544</bug_id>
          
          <creation_ts>2014-05-05 04:54:22 +0000</creation_ts>
          <short_desc>Options attribute of createOffer / createAnswer should be validated before processing.</short_desc>
          <delta_ts>2014-10-31 16:51:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebRTC Working Group</product>
          <component>WebRTC API</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kiran">kiran.guduru</reporter>
          <assigned_to name="Web RTC Working Group">public-webrtc</assigned_to>
          <cc>dburnett</cc>
    
    <cc>harald</cc>
    
    <cc>public-webrtc</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105026</commentid>
    <comment_count>0</comment_count>
    <who name="Kiran">kiran.guduru</who>
    <bug_when>2014-05-05 04:54:22 +0000</bug_when>
    <thetext>createOffer / createAnswer methods accept options attribute as an optional argument.

Validation steps for this argument is missing, which should be added for better Error Handling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114321</commentid>
    <comment_count>1</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2014-10-31 14:13:13 +0000</bug_when>
    <thetext>Given that CreateOffer / CreateAnswer are being turned into promise-returning functions by default, and promise-returning functions do not throw on argument errors (they reject instead), the argument validation should result in a rejection / error callback return.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114355</commentid>
    <comment_count>2</comment_count>
    <who name="Dan Burnett">dburnett</who>
    <bug_when>2014-10-31 16:51:23 +0000</bug_when>
    <thetext>Only standard WebIDL type checking should be applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>