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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>144088</bug_id>
          
          <creation_ts>2015-04-22 21:46:16 -0700</creation_ts>
          <short_desc>CreatePeerConnection API cannot pass null server argument</short_desc>
          <delta_ts>2017-06-13 23:40:21 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Bindings</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Adam Tiamiou">adam.tiamiou</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jonlee</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1087724</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Tiamiou">adam.tiamiou</who>
    <bug_when>2015-04-22 21:46:16 -0700</bug_when>
    <thetext>When we do, in the minibrowser, the instruction &quot;new RTCPeerConnection(servers, pcConstraint);&quot; with &quot;servers = null;&quot; the inspector show &quot;TypeError: RTCPeerConnection argument must be a valid Dictionary&quot; 

We have found that this error was raised in JSRTCPeerConnectionCustom.cpp line 59. We think the problem is related to the instruction &quot;rtcConfiguration.isObject()&quot; Line 58.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1318971</commentid>
    <comment_count>1</comment_count>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2017-06-13 19:26:30 -0700</bug_when>
    <thetext>Spec has changed a bit since this was first reported.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1319022</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2017-06-13 23:40:21 -0700</bug_when>
    <thetext>Instead of doing &quot;new RTCPeerConnection(servers, pcConstraint);&quot;, you might need to use https://www.w3.org/TR/webrtc/#dom-rtcconfiguration dictionary.
That would end-up with something like: &quot;new RTCPeerConnection({iceServers: servers, ... });&quot;

Also &quot;servers&quot; must use &quot;urls&quot; and not &quot;url&quot; as per https://www.w3.org/TR/webrtc/#dom-rtciceserver.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>