W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > May 2017

[webrtc-pc] RTCConfiguration.iceServers with undefined?

From: Philipp Hancke via GitHub <sysbot+gh@w3.org>
Date: Sun, 28 May 2017 14:56:46 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-231874099-1495983404-sysbot+gh@w3.org>
fippo has just created a new issue for https://github.com/w3c/webrtc-pc:

== RTCConfiguration.iceServers with undefined? ==
a question that came up while writing tests ('cause branch coverage)

How does the [setConfiguration algorithm]( https://w3c.github.io/webrtc-pc/archives/20170515/webrtc.html#dom-rtcpeerconnection-setconfiguration)
> If configuration.iceServers is defined, then run the following steps for each element:
> Let server be the current list element.

deal with this:
```
new RTCPeerConnection({iceServers: [undefined]})
```

Chrome throws a TypeError (Failed to construct 'RTCPeerConnection': Malformed RTCIceServer).
Firefox throws a InvalidAccessError (RTCPeerConnection constructor passed invalid RTCConfiguration - missing urls). Lookig for urls seems like the way to go.

nit: configuration.iceServers must be defined and an array?

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1251 using your GitHub account
Received on Sunday, 28 May 2017 14:56:54 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:41 UTC