[Webkit-unassigned] [Bug 119966] New: [eventsource] Declares an invalid URL in eventsource constructor, throw "SECURITY_ERR" but not "SyntaxError".
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Aug 17 18:48:16 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=119966
Summary: [eventsource] Declares an invalid URL in eventsource
constructor, throw "SECURITY_ERR" but not
"SyntaxError".
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: tina.zhao at intel.com
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36
Steps to reproduce:
According to the spec description, if an invalid URL declares in eventsource constructor, the exception "SyntaxError" should throw.
Spec Info: Server-Sent Events Candidate Recommendation 11 December 2012 (http://www.w3.org/TR/2012/CR-eventsource-20121211/ ).
Spec Description:
"Resolve the URL specified in the first argument, relative to the entry script's base URL. [HTML]
If the previous step failed, then throw a SyntaxError exception."
- Test suite: https://github.com/w3c/web-platform-tests/tree/master/eventsource
- Test case: https://github.com/w3c/web-platform-tests/blob/master/eventsource/eventsource-constructor-url-bogus.htm
Actual results:
It throws object Error: SECURITY_ERR: DOM Exception 18.
This test Failed on Chrome 28.0.1500.95 m, got PASS on Firefox nightly 26.0a1 and Opera Next 12.16
Expected results:
It should throw DOMException SyntaxError: property "code" is expected 12.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list