Summary: | WebSocket() constructor should throw SYNTAX_ERR if URL has zero or one slash after 'ws:' or 'wss:' | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Pieters (:zcorpan) <zcorpan> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | VERIFIED INVALID | ||
Severity: | Normal | CC: | ap, bfulgham, joenotcharles, ukai |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Description
Simon Pieters (:zcorpan)
2010-07-20 06:36:21 PDT
Mozilla folks seem to disagree that this is a bug, and I think they are right. Since Mozilla and Alexey think current behavior is correct, closing this. https://www.w3.org/Bugs/Public/show_bug.cgi?id=17772#c5 e.g. for ws:example.org/ (no base url) https://url.spec.whatwg.org/#scheme-state "Otherwise, if url is special, set state to special authority slashes state." -> https://url.spec.whatwg.org/#special-authority-slashes-state "Otherwise, syntax violation, set state to special authority ignore slashes state, and decrease pointer by one." -> https://url.spec.whatwg.org/#special-authority-ignore-slashes-state "If c is neither "/" nor "\", set state to authority state, and decrease pointer by one." -> https://url.spec.whatwg.org/#authority-state "Otherwise, append c to buffer." ...etc; it will parse successfully and up with the same URL record as for ws://example.org/ w-p-t test at http://w3c-test.org/websockets/constructor/017.html |