[wpt-sync] Sync PR 30976 - Reland "[CSP] Fix wasm-eval check from workers"
Categories
(Core :: DOM: Security, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox95 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 30976 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/30976
Details from upstream follow.
Antonio Sartori <antoniosartori@chromium.org> wrote:
Reland "[CSP] Fix wasm-eval check from workers"
This is a reland of fda85ae58f7d3483b57f02973015f0bdbc597f19
The original change was reverted because of failing tests on chromeos.
Those should be fixed by https://crrev.com/c/3178280.Original change's description:
[CSP] Fix wasm-eval check from workers
For workers, we were not gating wasm instantiation/compilation behind
Content Security Policy. This CL fixes that and adds tests.Bug: 1248289
Change-Id: Ib2cdb2ba4dd5b5e2d289a5fbe4700521dea9265f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3152118
Commit-Queue: Antonio Sartori \<antoniosartori@chromium.org>
Reviewed-by: Karan Bhatia \<karandeepb@chromium.org>
Reviewed-by: Mike West \<mkwst@chromium.org>
Reviewed-by: David Tseng \<dtseng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#923308}Bug: 1248289
Change-Id: I79f12f0f8071d66df3d9f73dc5c5a0daf8155182
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3179051
Commit-Queue: Antonio Sartori \<antoniosartori@chromium.org>
Reviewed-by: Mike West \<mkwst@chromium.org>
Reviewed-by: Karan Bhatia \<karandeepb@chromium.org>
Reviewed-by: David Tseng \<dtseng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#925698}
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 2•5 years ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 8 tests and 1 subtests
Status Summary
Firefox
OK : 7[GitHub] 8[Gecko-android-em-7.0-x86_64-lite-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-linux1804-64-tsan-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt]
PASS : 4
FAIL : 3[GitHub] 4[Gecko-android-em-7.0-x86_64-lite-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-linux1804-64-tsan-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt]
TIMEOUT: 1
Chrome
OK : 8
PASS : 5
FAIL : 3
Safari
OK : 6
PASS : 3
FAIL : 3
ERROR : 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
/content-security-policy/wasm-unsafe-eval/script-src-blocks-wasm.any.sharedworker.html: OK [Gecko-android-em-7.0-x86_64-lite-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-linux1804-64-tsan-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt], TIMEOUT [GitHub] (Chrome: OK, Safari: ERROR)
script-src-blocks-wasm: FAIL (Chrome: FAIL)
/content-security-policy/wasm-unsafe-eval/script-src-blocks-wasm.any.worker.html
script-src-blocks-wasm: FAIL (Chrome: FAIL, Safari: FAIL)
/content-security-policy/wasm-unsafe-eval/script-src-blocks-wasm.any.serviceworker.html
script-src-blocks-wasm: FAIL (Chrome: FAIL, Safari: FAIL)
/content-security-policy/wasm-unsafe-eval/script-src-blocks-wasm.any.html
script-src-blocks-wasm: FAIL (Chrome: PASS, Safari: FAIL)
Comment 4•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/bc15a4db9439
https://hg.mozilla.org/mozilla-central/rev/9fcb105419e4
Description
•