Reject websocket protocol requests that don't match https://tools.ietf.org/html/rfc6455#section-4.1 .

This commit is contained in:
Josh Matthews 2015-07-21 20:11:57 -04:00
parent cb52cc6658
commit d385cb701b
8 changed files with 31 additions and 509 deletions

View file

@ -4,7 +4,7 @@
enum BinaryType { "blob", "arraybuffer" };
[Constructor(DOMString url)]
[Constructor(DOMString url, optional /*(*/DOMString /*or DOMString[])*/ protocols)]
interface WebSocket : EventTarget {
readonly attribute DOMString url;
//ready state