WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
144088
CreatePeerConnection API cannot pass null server argument
https://bugs.webkit.org/show_bug.cgi?id=144088
Summary
CreatePeerConnection API cannot pass null server argument
Adam Tiamiou
Reported
2015-04-22 21:46:16 PDT
When we do, in the minibrowser, the instruction "new RTCPeerConnection(servers, pcConstraint);" with "servers = null;" the inspector show "TypeError: RTCPeerConnection argument must be a valid Dictionary" We have found that this error was raised in JSRTCPeerConnectionCustom.cpp line 59. We think the problem is related to the instruction "rtcConfiguration.isObject()" Line 58.
Attachments
Add attachment
proposed patch, testcase, etc.
Jon Lee
Comment 1
2017-06-13 19:26:30 PDT
Spec has changed a bit since this was first reported.
youenn fablet
Comment 2
2017-06-13 23:40:21 PDT
Instead of doing "new RTCPeerConnection(servers, pcConstraint);", you might need to use
https://www.w3.org/TR/webrtc/#dom-rtcconfiguration
dictionary. That would end-up with something like: "new RTCPeerConnection({iceServers: servers, ... });" Also "servers" must use "urls" and not "url" as per
https://www.w3.org/TR/webrtc/#dom-rtciceserver
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug