[webrtc-pc] RTCIceCandidate constructor should not require sdpMid/sdpMLineIndex

foolip has just created a new issue for https://github.com/w3c/webrtc-pc:

== RTCIceCandidate constructor should not require sdpMid/sdpMLineIndex ==
https://w3c.github.io/webrtc-pc/#dom-rtcicecandidate

Here's a small test for how the constructor behaves in current implementation:
https://jsbin.com/qiloyuf/edit?html,output

Testing in Chrome, Edge and Firefox. None throw for missing sdpMid/sdpMLineIndex, but:
 * Chrome requires candidate to be a non-empty string
 * Edge doesn't require any arguments at all
 * Firefox requires candidate to be present, but an empty string is OK

The safest way to align the spec with this is to require no arguments at all, matching Edge.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1166 using your GitHub account

Received on Friday, 5 May 2017 09:56:38 UTC