[webrtc-pc] setIdentityProvider should throw error if protocol contains invalid characters

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

== setIdentityProvider should throw error if protocol contains invalid characters ==
Description for `protocol` field in `RTCIdentityProviderOptions`:

> The name of the protocol that is used by the identity provider. This MUST NOT include '/' (U+002F) or '\' (U+005C) characters. This value defaults to "default" if not provided.

Right now there is no step for validating `protocol` in `setIdentityProvider()`. It should instead throw specific kind of error. (`InvalidAccessError` perhaps?)

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

Received on Friday, 21 July 2017 04:44:15 UTC