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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/child-src/worker-shared-blocked-expected.txt

Issue 2480303002: CSP3: Implement 'worker-src'. (Closed)
Patch Set: feedback Created 4 years, 1 month 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 1: Refused to create a child context containing 'http://127. 0.0.1:8000/security/contentSecurityPolicy/resources/alert-fail.js' because it vi olates the following Content Security Policy directive: "child-src 'none'". 1 CONSOLE ERROR: line 1: Refused to create a worker from 'http://127.0.0.1:8000/se curity/contentSecurityPolicy/resources/alert-fail.js' because it violates the fo llowing Content Security Policy directive: "child-src 'none'".
2 2
3 SharedWorkers should be governed by 'child-src'. 3 SharedWorkers should be governed by 'child-src'.
4 4
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
6 6
7 7
8 PASS var w = new SharedWorker('/security/contentSecurityPolicy/resources/alert-f ail.js'); threw exception SecurityError: Failed to construct 'SharedWorker': Acc ess to the script at 'http://127.0.0.1:8000/security/contentSecurityPolicy/resou rces/alert-fail.js' is denied by the document's Content Security Policy.. 8 PASS var w = new SharedWorker('/security/contentSecurityPolicy/resources/alert-f ail.js'); threw exception SecurityError: Failed to construct 'SharedWorker': Acc ess to the script at 'http://127.0.0.1:8000/security/contentSecurityPolicy/resou rces/alert-fail.js' is denied by the document's Content Security Policy..
9 PASS successfullyParsed is true 9 PASS successfullyParsed is true
10 10
11 TEST COMPLETE 11 TEST COMPLETE
12 12
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698