Bug 1656759 [wpt PR 24845] - [WPT] Add tests for sandbox directive for shared/service...
commita9a45e4cf2ad6e91d63c0c872c392bdcd9fc6afd
authorHiroshige Hayashizaki <hiroshige@chromium.org>
Thu, 20 Aug 2020 18:47:54 +0000 (20 18:47 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 25 Aug 2020 11:10:29 +0000 (25 11:10 +0000)
treee860fbd76ca70ad921b8d56390368744007e1e32
parent1401fdf8538fc8e695d1657211e373a99a09eba6
Bug 1656759 [wpt PR 24845] - [WPT] Add tests for sandbox directive for shared/service workers, a=testonly

Automatic update from web-platform-tests
[WPT] Add tests for sandbox directive for shared/service workers

These tests confirm sandbox directives are no-op for workers,
because sandbox directive is not yet specified for workers.

(This CL doesn't add tests for dedicated workers, because
dedicated workers inherit parent Document's CSP,
the parent Documents should be sandboxed and thus it's hard
to test whether dedicated workers from sandboxed Documents
are sandboxed)

Bug: 1112143, https://github.com/w3c/webappsec-csp/issues/279
Change-Id: Iff34da98de61214584681ae6f12ffcbf1dee1880
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2333908
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/master@{#796736}

--

wpt-commits: 0ffd2e67fa24e5b359028df10361ce2d94f6546c
wpt-pr: 24845
testing/web-platform/tests/content-security-policy/sandbox/service-worker-sandbox.https.html [new file with mode: 0644]
testing/web-platform/tests/content-security-policy/sandbox/shared-worker-sandbox.html [new file with mode: 0644]
testing/web-platform/tests/content-security-policy/sandbox/support/empty.html [new file with mode: 0644]
testing/web-platform/tests/content-security-policy/sandbox/support/sandboxed-service-worker.js [new file with mode: 0644]
testing/web-platform/tests/content-security-policy/sandbox/support/sandboxed-service-worker.js.headers [new file with mode: 0644]
testing/web-platform/tests/content-security-policy/sandbox/support/sandboxed-shared-worker.js [new file with mode: 0644]
testing/web-platform/tests/content-security-policy/sandbox/support/sandboxed-shared-worker.js.headers [new file with mode: 0644]