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

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

Issue 2533313002: CSP: Move 'worker-src' onto 'script-src' (Closed)
Patch Set: WPT. 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
(Empty)
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'". Note that 'worker -src' was not explicitly set, so 'child-src' is used as a fallback.
2
3 SharedWorkers should be governed by 'child-src'.
4
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
6
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..
9 PASS successfullyParsed is true
10
11 TEST COMPLETE
12
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698