W3C home > Mailing lists > Public > public-webrtc@w3.org > October 2016

[webrtc-pc] Should empty (not omitted) username or credential throw in the RTCPeerConnection constructor?

From: Philip Jägenstedt via GitHub <sysbot+gh@w3.org>
Date: Tue, 25 Oct 2016 11:55:33 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-185095274-1477396532-sysbot+gh@w3.org>
foolip has just created a new issue for 
https://github.com/w3c/webrtc-pc:

== Should empty (not omitted) username or credential throw in the 
RTCPeerConnection constructor? ==
This throws in Firefox: `new 
RTCPeerConnection({iceServers:[{urls:'turn:foo.com',username:'',credential:''}]})`

But the spec says "If scheme name is turn or turns, and either of 
server.username or server.credential are omitted, then throw an 
InvalidAccessError and abort these steps."

If the Firefox behavior makes sense, the spec should say "empty or 
omitted" and 
https://github.com/w3c/web-platform-tests/blob/master/webrtc/rtcpeerconnection/rtcpeerconnection-constructor.html
 needs to be updated.

Please view or discuss this issue at 
https://github.com/w3c/webrtc-pc/issues/885 using your GitHub account
Received on Tuesday, 25 October 2016 11:55:40 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:49 UTC