[webrtc-pc] Constructor for RTCDTMFToneChangeEvent does not validate format of tone

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

== Constructor for RTCDTMFToneChangeEvent does not validate format of tone ==
Currently it is possible to manually construct `RTCDTMFToneChangeEvent` instances with `tone` having arbitrary characters of any length.

The fix is to add a step in the constructor:

- If `tone` contains any unrecognized characters, or if `tone` has more than one character, throw an `InvalidCharacterError`. 

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

Received on Tuesday, 1 August 2017 04:23:56 UTC