Bug 1302667 - CSP: Update test_child-src_worker.html because child-src falls back to script-src. r=dveditz,mckinley
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Mon, 30 Oct 2017 18:46:34 +0100
changeset 389221 b492ad7ed7945bb58962c711cf03efd792148457
parent 389220 9aa2babaaa5d5e0a947219520abbc1e80eab19f0
child 389222 c6a6606f3ea7a662ac7f0384d4d2b67d447e348a
push id54380
push userarchaeopteryx@coole-files.de
push dateMon, 30 Oct 2017 22:59:37 +0000
treeherderautoland@4853ca9ebe91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdveditz, mckinley
bugs1302667
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1302667 - CSP: Update test_child-src_worker.html because child-src falls back to script-src. r=dveditz,mckinley
dom/security/test/csp/test_child-src_worker.html
--- a/dom/security/test/csp/test_child-src_worker.html
+++ b/dom/security/test/csp/test_child-src_worker.html
@@ -78,29 +78,29 @@
           file: SHARED_WORKER_TEST_FILE,
           result : "blocked",
           policy : "default-src 'none'; script-src 'unsafe-inline'; child-src https://www.example.org"
         },
         'script-src-worker': {
           id: "script-src-worker",
           file: WORKER_TEST_FILE,
           result : "blocked",
-          policy : "default-src 'none'; script-src 'self' 'unsafe-inline'"
+          policy : "default-src 'none'; script-src https://www.example.org 'unsafe-inline'"
         },
         'script-src-service_worker': {
           id: "script-src-service_worker",
           file: SERVICE_WORKER_TEST_FILE,
           result : "blocked",
-          policy : "default-src 'none'; script-src 'self' 'unsafe-inline'"
+          policy : "default-src 'none'; script-src https://www.example.org 'unsafe-inline'"
         },
         'script-src-self-shared_worker': {
           id: "script-src-self-shared_worker",
           file: SHARED_WORKER_TEST_FILE,
           result : "blocked",
-          policy : "default-src 'none'; script-src 'self' 'unsafe-inline'"
+          policy : "default-src 'none'; script-src https://www.example.org 'unsafe-inline'"
         },
       };
 
       finished = {};
 
       function recvMessage(ev) {
         is(ev.data.message, tests[ev.data.id].result, "CSP child-src worker test " + ev.data.id);
         finished[ev.data.id] = ev.data.message;