9.28content-security-policy/script-src/
221 / 225 WPT subtests passing
- Failed
- 4
- Timed out
- 0
- Not run
- 0
- Test files
- 91
- Blocking files
- 0
Chrome 221 / 225 WPT subtests passing on the same files, none blocking
Tests
1 directory, 85 test files here| Directory | Subtests passing | Chrome | Test files | Standing |
|---|---|---|---|---|
hash- | 8 / 8 | 8 / 8 | 6 | none blocking |
Each test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
eval-allowed-in-report-only-mode-and-sends-report.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Eval is allowed because the CSP is report-only
- Violation report status OK.
eval-allowed-in-report-only-mode.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Eval is allowed because the CSP is report-only
injected-inline-script-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["Pass 1 of 2","Pass 2 of 2"]
injected-inline-script-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["violated-directive=script-src-elem","blocked-uri=inline"]
javascript-window-open-blocked.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Check that a securitypolicyviolation event is fired
non-nonceable-elements-attr-name.html 10 / 10 passingChrome 10 / 100 failedClean
10 passing subtests
- Nonceable script element 0
- Non-nonceable script element 1
- Non-nonceable script element 2
- Non-nonceable script element 3
- Non-nonceable script element 4
- Non-nonceable script element 5
- Non-nonceable script element 6
- Non-nonceable script element 7
- Non-nonceable script element 8
- Non-nonceable script element 9
non-nonceable-elements.html 10 / 10 passingChrome 10 / 100 failedClean
10 passing subtests
- Nonceable script element 0
- Non-nonceable script element 1
- Non-nonceable script element 2
- Non-nonceable script element 3
- Non-nonceable script element 4
- Non-nonceable script element 5
- Non-nonceable script element 6
- Non-nonceable script element 7
- Non-nonceable script element 8
- Non-nonceable script element 9
nonce-enforce-blocked.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Unnonced scripts generate reports.
nonce-with-trailing-characters-blocked.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- A nonce-source with trailing characters after the closing quote ('nonce-abc'X) is invalid, so a script carrying that nonce must be blocked.
script-src-1_1.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Inline script block
- Inline event handler
- Should fire policy violation events
script-src-1_10.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Test that securitypolicyviolation event is fired
- Verify that data: as script src doesn't run with this policy
script-src-1_10_1.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Test that no report violation event was raised
- Verify that data: as script src runs with this policy
script-src-1_2.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Inline script block
- Inline event handler
- Should fire policy violation events
script-src-1_2_1.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Test that securitypolicyviolation event is fired
- DOM manipulation inline tests
script-src-1_3.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Should not fire policy violation events
- Inline script in a script tag should run with an unsafe-inline directive
script-src-1_4.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Test that securitypolicyviolation event is fired
- eval() should throw without 'unsafe-eval' keyword source in script-src directive.
- eval() should not run without 'unsafe-eval' script-src directive.
script-src-1_4_1.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- window.setTimeout()
- window.setInterval()
- Test that securitypolicyviolation event is fired
script-src-1_4_2.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Test that securitypolicyviolation event is fired
- Unsafe eval ran in Function() constructor.
script-src-event-handler-on-inline-script.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Use the hash of a non-empty event handler content attribute (<div> element).
- Use the hash of an empty event handler content attribute (<div> element).
- Use the hash of a non-empty event handler content attribute (<script> element).
- Use the hash of an empty event handler content attribute (<script> element).
script-src-multiple-policies-multiple-hashing-algorithms.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that script executes if allowed by proper hash values
script-src-multiple-policies-one-using-hashing-algorithms.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that script executes if allowed by proper hash values
script-src-overrides-default-src.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS 1 of 2","PASS 2 of 2"]
script-src-report-only-policy-works-with-external-hash-policy.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Should fire securitypolicyviolation event
- External script in a script tag with matching SRI hash should run.
script-src-report-only-policy-works-with-hash-policy.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Test that script executes if allowed by proper hash values
- Test that the securitypolicyviolation event is fired
script-src-sri_hash.sub.html 12 / 12 passingChrome 12 / 120 failedClean
12 passing subtests
- Load all the tests.
- matching integrity
- matching integrity (case-insensitive algorithm)
- multiple matching integrity
- no integrity
- matching plus unsupported integrity
- mismatched integrity
- multiple mismatched integrity
- partially matching integrity
- crossorigin no integrity but allowed host
- crossorigin mismatched integrity but allowed host
- External script in a script tag with matching SRI hash should run.
script-src-strict_dynamic_and_unsafe_eval_eval.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Script injected via `eval` is allowed with `strict-dynamic` with `unsafe-eval`.
script-src-strict_dynamic_and_unsafe_eval_new_function.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Script injected via `new Function()` is allowed with `strict-dynamic` with `unsafe-eval`.
script-src-strict_dynamic_discard_source_expressions.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Allowed scripts without a correct nonce are not permitted with `strict-dynamic`.
script-src-strict_dynamic_double_policy_different_nonce.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Unnonced script injected via `appendChild` is not allowed with `strict-dynamic` + a nonce-only double policy.
- Script injected via `appendChild` with a correct nonce is allowed with `strict-dynamic` + a nonce-only double policy.
script-src-strict_dynamic_double_policy_honor_source_expressions.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Script injected via `appendChild` is permitted with `strict-dynamic` + a nonce+allowed double policy.
- Non-allowed script injected via `appendChild` is not permitted with `strict-dynamic` + a nonce+allowed double policy.
script-src-strict_dynamic_double_policy_report_only.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Script injected via `appendChild` is allowed with `strict-dynamic` + Report-Only `script-src 'none'` policy.
script-src-strict_dynamic_eval.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Script injected via `eval` is not allowed with `strict-dynamic` without `unsafe-eval`.
script-src-strict_dynamic_hashes.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Script matching SHA256 hash is allowed with `strict-dynamic`.
- Script injected via `appendChild` from a script matching SHA256 hash is allowed with `strict-dynamic`.
- External script in a script tag with matching SRI hash is allowed with `strict-dynamic`.
script-src-strict_dynamic_in_img-src.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- `strict-dynamic` does not drop allowed source expressions in `img-src`.
script-src-strict_dynamic_javascript_uri.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Script injected via `javascript:` URIs are not allowed with `strict-dynamic`.
script-src-strict_dynamic_meta_tag.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Script injected via `appendChild` is allowed with `strict-dynamic`.
- Script injected via `appendChild` is allowed with `strict-dynamic`, even if it carries an incorrect nonce.
- Script injected via `appendChild` populated via `textContent` is allowed with `strict-dynamic`.
- Script injected via `appendChild` populated via `textContent` is allowed with `strict-dynamic`, even if it carries an incorrect nonce.
script-src-strict_dynamic_modulepreload_integrity_mismatch.html 2 / 6 passingChrome 2 / 64 failedWith failures
- ¶
FAILParser-inserted external module script with unverified integrity hitting a `modulepreload` entry is blocked with `strict-dynamic`.
assert_unreached: A modulepreloaded parser-inserted external module script with unverified integrity must not execute. Reached unreachable code
- ¶
FAILParser-inserted external module script with policy hash hitting a `modulepreload` entry with dummy integrity is blocked with `strict-dynamic`.
assert_unreached: A modulepreloaded parser-inserted external module script with dummy preload integrity must not execute. Reached unreachable code
- ¶
FAILParser-inserted external module script with dummy integrity hitting a `modulepreload` entry with dummy integrity is blocked with `strict-dynamic`.
assert_unreached: A modulepreloaded parser-inserted external module script with dummy integrity on both preload and script must not execute. Reached unreachable code
- ¶
FAILParser-inserted data: module script with unverified integrity hitting a `modulepreload` entry is blocked with `strict-dynamic`.
assert_unreached: A modulepreloaded parser-inserted data: module script with unverified integrity must not execute. Reached unreachable code
2 passing subtests
- Parser-inserted external module script hitting a `modulepreload` entry with a dummy sha256 integrity hash fails to load.
- Parser-inserted external module script with matching verified integrity hitting a `modulepreload` entry is allowed with `strict-dynamic`.
script-src-strict_dynamic_modulepreload_parser_inserted_module.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Parser-inserted external module script that is also `modulepreload`ed is allowed with `strict-dynamic`.
- Parser-inserted external module script with only a `<link rel=preload as=script>` is not allowed with `strict-dynamic`.
- A `modulepreload` for a different URL does not allow a parser-inserted external module script with `strict-dynamic`.
script-src-strict_dynamic_new_function.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Script injected via 'eval' is not allowed with 'strict-dynamic' without 'unsafe-eval'.
script-src-strict_dynamic_non_parser_inserted.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Script injected via `appendChild` is allowed with `strict-dynamic`.
- Script injected via `appendChild` is allowed with `strict-dynamic`, even if it carries an incorrect nonce.
- Script injected via `appendChild` populated via `textContent` is allowed with `strict-dynamic`.
- Script injected via `appendChild` populated via `textContent` is allowed with `strict-dynamic`, even if it carries an incorrect nonce.
script-src-strict_dynamic_non_parser_inserted_incorrect_nonce.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- All the expected CSP violation reports have been fired.
script-src-strict_dynamic_non_parser_inserted_module.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Module script injected via `appendChild` is allowed with `strict-dynamic`.
- Module script injected via `appendChild` is allowed with `strict-dynamic`, even if it carries an incorrect nonce.
script-src-strict_dynamic_parser_inserted.html 10 / 10 passingChrome 10 / 100 failedClean
10 passing subtests
- Parser-inserted script via `document.write` without a correct nonce is not allowed with `strict-dynamic`.
- Parser-inserted script via `document.writeln` without a correct nonce is not allowed with `strict-dynamic`.
- Parser-inserted deferred script via `document.write` without a correct nonce is not allowed with `strict-dynamic`.
- Parser-inserted deferred script via `document.writeln` without a correct nonce is not allowed with `strict-dynamic`.
- Parser-inserted async script via `document.write` without a correct nonce is not allowed with `strict-dynamic`.
- Parser-inserted async script via `document.writeln` without a correct nonce is not allowed with `strict-dynamic`.
- Parser-inserted deferred async script via `document.write` without a correct nonce is not allowed with `strict-dynamic`.
- Parser-inserted deferred async script via `document.writeln` without a correct nonce is not allowed with `strict-dynamic`.
- Script injected via `innerHTML` is not allowed with `strict-dynamic`.
- Script injected via `insertAdjacentHTML` is not allowed with `strict-dynamic`.
script-src-strict_dynamic_parser_inserted_correct_nonce.html 8 / 8 passingChrome 8 / 80 failedClean
8 passing subtests
- Parser-inserted script via `document.write` with a correct nonce is allowed with `strict-dynamic`.
- Parser-inserted script via `document.writeln` with a correct nonce is allowed with `strict-dynamic`.
- Parser-inserted deferred script via `document.write` with a correct nonce is allowed with `strict-dynamic`.
- Parser-inserted deferred script via `document.writeln` with a correct nonce is allowed with `strict-dynamic`.
- Parser-inserted async script via `document.write` with a correct nonce is allowed with `strict-dynamic`.
- Parser-inserted async script via `document.writeln` with a correct nonce is allowed with `strict-dynamic`.
- Parser-inserted deferred async script via `document.write` with a correct nonce is allowed with `strict-dynamic`.
- Parser-inserted deferred async script via `document.writeln` with a correct nonce is allowed with `strict-dynamic`.
script-src-strict_dynamic_parser_inserted_error_event.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Parser-inserted classic script blocked by `strict-dynamic` fires an error event.
- Parser-inserted module script blocked by `strict-dynamic` fires an error event.
script-src-strict_dynamic_parser_inserted_module.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Parser-inserted external module script in markup without a correct nonce is not allowed with `strict-dynamic`.
- Parser-inserted external module script via `document.write` without a correct nonce is not allowed with `strict-dynamic`.
- Parser-inserted external module script via `document.writeln` without a correct nonce is not allowed with `strict-dynamic`.
script-src-strict_dynamic_parser_inserted_module_empty_hash.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Parser-inserted external module script in markup does not match the empty-string hash with `strict-dynamic`.
script-src-strict_dynamic_worker-importScripts.https.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- `importScripts(...)` is allowed by 'strict-dynamic'
script-src-strict_dynamic_worker.https.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Dedicated worker is allowed via 'strict-dynamic'
- Shared worker is allowed via 'strict-dynamic'
- Service worker is allowed via 'strict-dynamic'
script-src-trusted_types_eval_DedicatedWorker.html 9 / 9 passingChrome 9 / 90 failedClean
9 passing subtests
- Script injected via direct `eval` is allowed with `trusted-types-eval` and `require-trusted-types-for 'script'` (Dedicated Worker).
- Script injected via `setTimeout` is allowed with `trusted-types-eval` and `require-trusted-types-for 'script'` (Dedicated Worker).
- Script injected via `setInterval` is allowed with `trusted-types-eval` and `require-trusted-types-for 'script'` (Dedicated Worker).
- Scripts injected via direct `eval` are not allowed with `trusted-types-eval` without `require-trusted-types-for 'script'` (DedicatedWorker).
- Scripts injected via `setTimeout` are not allowed with `trusted-types-eval` without `require-trusted-types-for 'script'` (DedicatedWorker).
- Scripts injected via `setInterval` are not allowed with `trusted-types-eval` without `require-trusted-types-for 'script'` (DedicatedWorker).
- Scripts injected via direct `eval` are not allowed with `trusted-types-eval` when `require-trusted-types-for 'script'` is report only (Dedicated Worker).
- Scripts injected via `setTimeout` are not allowed with `trusted-types-eval` when `require-trusted-types-for 'script'` is report only (Dedicated Worker).
- Scripts injected via `setInterval` are not allowed with `trusted-types-eval` when `require-trusted-types-for 'script'` is report only (Dedicated Worker).
script-src-trusted_types_eval_multiple_policies_allowed.window.js 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Direct `eval` is allowed when every policy allows it.
- Indirect `eval` is allowed when every policy allows it.
- `new Function` is allowed when every policy allows it.
- `setTimeout` is allowed when every policy allows it.
script-src-trusted_types_eval_multiple_policies_blocked.window.js 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Direct `eval` is blocked by a second policy without `trusted-types-eval`.
- Indirect `eval` is blocked by a second policy without `trusted-types-eval`.
- `new Function` is blocked by a second policy without `trusted-types-eval`.
- `setTimeout` is blocked by a second policy without `trusted-types-eval`.
script-src-trusted_types_eval_multiple_policies_report_only.window.js 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- `eval` is allowed but reported by a report-only policy without `trusted-types-eval`.
- `new Function` is allowed but reported by a report-only policy without `trusted-types-eval`.
script-src-trusted_types_eval_report_only_policies.window.js 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Direct `eval` is allowed but reported.
- Indirect `eval` is allowed but reported.
- `new Function` is allowed but reported.
- `setTimeout` is allowed but reported.
script-src-trusted_types_eval_report_only_policies_without_default_policy.window.js 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Direct `eval` is allowed but reported by both checks.
- Indirect `eval` is allowed but reported by both checks.
- `new Function` is allowed but reported by both checks.
- `setTimeout` is allowed but reported by both checks.
script-src-trusted_types_eval_with_report_only_require_trusted_types_eval.html 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- Scripts injected via direct `eval` are not allowed with `trusted-types-eval` when `require-trusted-types-for 'script'` is report only.
- Scripts injected via indirect `eval` are not allowed with `trusted-types-eval` when `require-trusted-types-for 'script'` is report only.
- Scripts injected via `new Function` are not allowed with `trusted-types-eval` when `require-trusted-types-for 'script'` is report only.
- Scripts injected via `setTimeout` are not allowed with `trusted-types-eval` when `require-trusted-types-for 'script'` is report only.
- Scripts injected via `setInterval` are not allowed with `trusted-types-eval` when `require-trusted-types-for 'script'` is report only.
script-src-trusted_types_eval_with_require_trusted_types_eval.html 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- Script injected via direct `eval` is allowed with `trusted-types-eval` and `require-trusted-types-for 'script'`.
- Script injected via indirect `eval` is allowed with `trusted-types-eval` and `require-trusted-types-for 'script'`.
- Script injected via `new Function` is allowed with `trusted-types-eval` and `require-trusted-types-for 'script'`.
- Script injected via `setTimeout` is allowed with `trusted-types-eval` and `require-trusted-types-for 'script'`.
- Script injected via `setInterval` is allowed with `trusted-types-eval` and `require-trusted-types-for 'script'`.
script-src-trusted_types_eval_without_default_policy.window.js 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- Direct `eval` of a string is blocked by Trusted Types despite `trusted-types-eval`.
- Indirect `eval` of a string is blocked by Trusted Types despite `trusted-types-eval`.
- `new Function` with a string is blocked by Trusted Types despite `trusted-types-eval`.
- `setTimeout` with a string is blocked by Trusted Types despite `trusted-types-eval`.
- `eval` of a TrustedScript is allowed with `trusted-types-eval`.
- `setTimeout` with a TrustedScript is allowed with `trusted-types-eval`.
script-src-trusted_types_eval_without_require_trusted_types_eval.html 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- Scripts injected via direct `eval` are not allowed with `trusted-types-eval` without `require-trusted-types-for 'script'`.
- Scripts injected via indirect `eval` are not allowed with `trusted-types-eval` without `require-trusted-types-for 'script'`.
- Scripts injected via `new Function` are not allowed with `trusted-types-eval` without `require-trusted-types-for 'script'`.
- Scripts injected via `setTimeout` are not allowed with `trusted-types-eval` without `require-trusted-types-for 'script'`.
- Scripts injected via `setInterval` are not allowed with `trusted-types-eval` without `require-trusted-types-for 'script'`.
script-src-wildcards-disallowed.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- data: URIs should not match *
- blob: URIs should not match *
- filesystem URIs should not match *
scripthash-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting alerts: ["PASS (1/4)","PASS (2/4)","PASS (3/4)","PASS (4/4)"]
scripthash-base64url-converts-to-base64.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting alerts: ["PASS (1/2)","PASS (2/2)"]
scripthash-basic-blocked-error-event.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- CSP script-hash block causes error event
scripthash-basic-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting alerts: ["PASS (1/1)"]
scripthash-case-insensitive.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting alerts: ["PASS (1/6)","PASS (2/6)","PASS (3/6)","PASS (4/6)","PASS (5/6)","PASS (6/6)"]
scripthash-changed-1.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- scr1.innerText before modification should not be blocked
scripthash-changed-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- scr2.innerText before modification should be blocked
scripthash-default-src.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- script-hash allowed from default-src
scripthash-ignore-unsafeinline.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting alerts: ["PASS (1/1)"]
scripthash-unicode-normalization.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Should fire securitypolicyviolation
- Only matching content runs even with NFC normalization.
scriptnonce-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting alerts: ["PASS (1/2)","PASS (2/2)"]
scriptnonce-and-scripthash.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting alerts: ["PASS (1/3)","PASS (2/3)","PASS (3/3)"]
scriptnonce-basic-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting alerts: ["PASS (closely-quoted nonce)","PASS (nonce w/whitespace)", "violated-directive=script-src-elem", "violated-directive=script-src-elem", "violated-directive=script-src-elem"]
scriptnonce-changed-1.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- scr1 nonce before modification should not be blocked
scriptnonce-changed-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- scr2 nonce before modification should be blocked
scriptnonce-ignore-unsafeinline.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting alerts: ["PASS (1/2)","PASS (2/2)", "violated-directive=script-src-elem"]
scriptnonce-redirect.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting alerts: ["PASS"]
scriptnonce-specified-source.sub.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- CSP with both source and nonce should allow matching source
- CSP with both source and nonce should allow both matching nonce and source
- No CSP violation should fire and all scripts should load
srcdoc-doesnt-bypass-script-src.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["violated-directive=script-src-elem"]
worker-data-set-timeout.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Shared worker with data: url inherits CSP
worker-eval-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["eval blocked"]
worker-function-function-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["Function() function blocked"]
worker-importscripts.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Dedicated worker delivers its own CSP
- Shared worker delivers its own CSP
worker-script-src.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS"]
worker-set-timeout.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Dedicated worker delivers its own CSP
- Shared worker delivers its own CSP