Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1357)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/eventsource/eventsource-constructor-expected.txt

Issue 2456013002: CSP: 'connect-src' should not cause exceptions. (Closed)
Patch Set: Ugh. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 CONSOLE ERROR: line 40: Refused to connect to 'http://disallowed.example.com/' b ecause it violates the following Content Security Policy directive: "connect-src http://invalid http://127.0.0.1".
2
3 Test EventSource constructor functionality. Should print a series of PASS messag es followed by DONE. 1 Test EventSource constructor functionality. Should print a series of PASS messag es followed by DONE.
4 2
5 PASS: missing argument to EventSource constructor resulted in an exception (Type Error: Failed to construct 'EventSource': 1 argument required, but only 0 presen t.) 3 PASS: missing argument to EventSource constructor resulted in an exception (Type Error: Failed to construct 'EventSource': 1 argument required, but only 0 presen t.)
6 PASS: passing an empty string to the EventSource constructor resulted in an exce ption (SyntaxError: Failed to construct 'EventSource': Cannot open an EventSourc e to an empty URL.) 4 PASS: passing an empty string to the EventSource constructor resulted in an exce ption (SyntaxError: Failed to construct 'EventSource': Cannot open an EventSourc e to an empty URL.)
7 PASS: passing an invalid URL to the EventSource constructor resulted in an excep tion (SyntaxError: Failed to construct 'EventSource': Cannot open an EventSource to 'http://webserver:eighty/'. The URL is invalid.) 5 PASS: passing an invalid URL to the EventSource constructor resulted in an excep tion (SyntaxError: Failed to construct 'EventSource': Cannot open an EventSource to 'http://webserver:eighty/'. The URL is invalid.)
8 PASS: passing a Content-Security-Policy-blocked URL to the EventSource construct or resulted in an exception (SecurityError: Failed to construct 'EventSource': R efused to connect to 'http://disallowed.example.com/' because it violates the do cument's Content Security Policy.) 6 PASS: no exception when passing an URL blocked by Content Security Policy to the EventSource constructor
9 PASS: no exception when passing a second argument to the EventSource constructor 7 PASS: no exception when passing a second argument to the EventSource constructor
10 DONE 8 DONE
11 9
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698