enhance: Add support for unsafe-eval and wasm-unsafe-eval (#32893)

Signed-off-by: Chocolate Pie <106949016+chocolate-pie@users.noreply.github.com>
This commit is contained in:
Chocolate Pie 2024-08-02 02:26:44 +09:00 committed by GitHub
parent 2cf207ddc8
commit 92866ab911
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
51 changed files with 755 additions and 73 deletions

View file

@ -0,0 +1,4 @@
[eval-blocked-in-about-blank-iframe.html]
expected: ERROR
[eval-blocked-in-about-blank-iframe]
expected: TIMEOUT

View file

@ -0,0 +1,12 @@
[default-src-blocks-wasm.any.worker.html]
[default-src-blocks-wasm]
expected: FAIL
[default-src-blocks-wasm.any.html]
[default-src-blocks-wasm.any.serviceworker.html]
expected: ERROR
[default-src-blocks-wasm.any.sharedworker.html]
expected: ERROR

View file

@ -0,0 +1,9 @@
[default-src-unsafe-eval-allows-wasm.any.sharedworker.html]
expected: ERROR
[default-src-unsafe-eval-allows-wasm.any.worker.html]
[default-src-unsafe-eval-allows-wasm.any.html]
[default-src-unsafe-eval-allows-wasm.any.serviceworker.html]
expected: ERROR

View file

@ -0,0 +1,9 @@
[default-src-wasm-unsafe-eval-allows-wasm.any.worker.html]
[default-src-wasm-unsafe-eval-allows-wasm.any.html]
[default-src-wasm-unsafe-eval-allows-wasm.any.sharedworker.html]
expected: ERROR
[default-src-wasm-unsafe-eval-allows-wasm.any.serviceworker.html]
expected: ERROR

View file

@ -0,0 +1,4 @@
[postMessage-wasm-module.html]
expected: ERROR
[Got the expected securitypolicyviolation in the iframe]
expected: TIMEOUT

View file

@ -0,0 +1,12 @@
[script-src-blocks-wasm.any.sharedworker.html]
expected: ERROR
[script-src-blocks-wasm.any.worker.html]
[script-src-blocks-wasm]
expected: FAIL
[script-src-blocks-wasm.any.html]
[script-src-blocks-wasm.any.serviceworker.html]
expected: ERROR

View file

@ -0,0 +1,16 @@
[script-src-spv-asynch.any.sharedworker.html]
expected: ERROR
[script-src-spv-asynch.any.html]
[Securitypolicyviolation event looks like it should]
expected: FAIL
[script-src-spv-asynch.any.worker.html]
expected: TIMEOUT
[Securitypolicyviolation event looks like it should]
expected: TIMEOUT
[script-src-spv-asynch.any.serviceworker.html]
expected: ERROR

View file

@ -0,0 +1,9 @@
[script-src-unsafe-eval-allows-wasm.any.sharedworker.html]
expected: ERROR
[script-src-unsafe-eval-allows-wasm.any.html]
[script-src-unsafe-eval-allows-wasm.any.worker.html]
[script-src-unsafe-eval-allows-wasm.any.serviceworker.html]
expected: ERROR

View file

@ -0,0 +1,9 @@
[script-src-wasm-unsafe-eval-allows-wasm.any.serviceworker.html]
expected: ERROR
[script-src-wasm-unsafe-eval-allows-wasm.any.html]
[script-src-wasm-unsafe-eval-allows-wasm.any.worker.html]
[script-src-wasm-unsafe-eval-allows-wasm.any.sharedworker.html]
expected: ERROR