Changeset 278763 in webkit
- Timestamp:
- Jun 11, 2021 9:15:18 AM (13 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/eventsource/eventsource-constructor-expected.txt (modified) (1 diff)
-
LayoutTests/fast/eventsource/eventsource-constructor.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/EventSource.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r278757 r278763 1 2021-06-11 Alex Christensen <achristensen@webkit.org> 2 3 EventSource.constructor throws an exception when the url param is an empty string 4 https://bugs.webkit.org/show_bug.cgi?id=226635 5 6 Reviewed by Yusuke Suzuki. 7 8 * fast/eventsource/eventsource-constructor-expected.txt: 9 * fast/eventsource/eventsource-constructor.html: 10 1 11 2021-06-11 Diego Pino Garcia <dpino@igalia.com> 2 12 -
trunk/LayoutTests/fast/eventsource/eventsource-constructor-expected.txt
r219663 r278763 2 2 3 3 PASS: missing argument to EventSource constructor resulted in an exception (TypeError: Not enough arguments) 4 PASS: passing an empty string to the EventSource constructor resulted in an exception (SyntaxError: The string did not match the expected pattern.)4 PASS: no exception when passing an empty string to the EventSource constructor 5 5 PASS: passing an invalid URL to the EventSource constructor resulted in an exception (SyntaxError: The string did not match the expected pattern.) 6 6 PASS: no exception when passing a second argument to the EventSource constructor -
trunk/LayoutTests/fast/eventsource/eventsource-constructor.html
r138083 r278763 23 23 try { 24 24 new EventSource(""); 25 log(" FAIL: no exception when passing an empty string to the EventSource constructor");25 log("PASS: no exception when passing an empty string to the EventSource constructor"); 26 26 } 27 27 catch (ex) { 28 log(" PASS: passing an empty string to the EventSource constructor resulted in an exception (" + ex + ")");28 log("FAIL: passing an empty string to the EventSource constructor resulted in an exception (" + ex + ")"); 29 29 } 30 30 -
trunk/Source/WebCore/ChangeLog
r278758 r278763 1 2021-06-11 Alex Christensen <achristensen@webkit.org> 2 3 EventSource.constructor throws an exception when the url param is an empty string 4 https://bugs.webkit.org/show_bug.cgi?id=226635 5 6 Reviewed by Yusuke Suzuki. 7 8 * page/EventSource.cpp: 9 (WebCore::EventSource::create): 10 1 11 2021-06-11 Adrian Perez de Castro <aperez@igalia.com> 2 12 -
trunk/Source/WebCore/page/EventSource.cpp
r278516 r278763 67 67 ExceptionOr<Ref<EventSource>> EventSource::create(ScriptExecutionContext& context, const String& url, const Init& eventSourceInit) 68 68 { 69 if (url.isEmpty())70 return Exception { SyntaxError };71 72 69 URL fullURL = context.completeURL(url); 73 70 if (!fullURL.isValid())
Note: See TracChangeset
for help on using the changeset viewer.