9.12content-security-policy/generic/
101 / 101 WPT subtests passing
- Failed
- 0
- Timed out
- 0
- Not run
- 0
- Test files
- 26
- Blocking files
- 0
Chrome 101 / 101 WPT subtests passing on the same files, none blocking
Tests
26 test files hereEach test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
304-response-should-update-csp.sub.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Test that the first frame uses nonce abc
- Test that the first frame does not use nonce def
- Test that the second frame uses nonce def
- Test that the second frame does not use nonce abc
case-insensitive-scheme.sub.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- Lowercase `http` should allow the image to load. - meta tag
- Lowercase `http` should allow the image to load. - HTTP header
- Mixed-case `http` should allow the image to load. - meta tag
- Mixed-case `http` should allow the image to load. - HTTP header
- Uppercase `http` should allow the image to load. - meta tag
- Uppercase `http` should allow the image to load. - HTTP header
cspro-not-enforced-in-worker.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Check that inline is allowed since the inherited policy is report only
- Check that eval is allowed since the inherited policy is report only
directive-name-case-insensitive.sub.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Test that the www1 image is allowed to load
- Test that the www2 image is not allowed to load
- Test that the www2 image throws a violation event
duplicate-directive.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting alerts: ["PASS (1/1)"]
eval-typecheck-callout-order.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- eval of a string should be checked by CSP
- eval of a non-string should not be checked by CSP
generic-0_1-img-src.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Verify cascading of default-src to img-src policy
- Should fire violation events for every failed violation
generic-0_1-script-src.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Verify cascading of default-src to script-src policy: block
- Verify cascading of default-src to script-src policy: allow
- Should fire violation events for every failed violation
generic-0_10.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that script does not fire violation event
generic-0_10_1.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Prevents access to external scripts.
- Should fire violation events for every failed violation
generic-0_2.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Should fire violation events for every failed violation
- Allows scripts from the same host.
generic-0_2_2.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Prevents access to external scripts.
- Should fire violation events for every failed violation
generic-0_2_3.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Prevents access to external scripts.
- Should fire violation events for every failed violation
generic-0_8.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Test that script does not fire violation event
- Wildcard host matching works.
generic-0_8_1.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Wildcard host matching works.
generic-0_9.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Test that script does not fire violation event
- Wildcard port matching works.
image-document-applies-csp.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Image document correctly applies CSP to other subresources.
invalid-characters-in-policy.html 12 / 12 passingChrome 12 / 120 failedClean
12 passing subtests
- Should load image without any CSP - meta tag
- Should load image without any CSP - HTTP header
- Should not load image with 'none' CSP - meta tag
- Should not load image with 'none' CSP - HTTP header
- Non-ASCII character in directive value should drop the whole directive. - meta tag
- Non-ASCII character in directive value should drop the whole directive. - HTTP header
- Non-ASCII quote character in directive value should drop the whole directive. - meta tag
- Non-ASCII quote character in directive value should drop the whole directive. - HTTP header
- Non-ASCII character in directive value should not affect other directives. - meta tag
- Non-ASCII character in directive value should not affect other directives. - HTTP header
- Non-ASCII character in directive name should not affect other directives. - meta tag
- Non-ASCII character in directive name should not affect other directives. - HTTP header
no-default-src.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Allows scripts from the same host.
- Violation report status OK.
only-valid-whitespaces-are-allowed.html 28 / 28 passingChrome 28 / 280 failedClean
28 passing subtests
- Should load image without any CSP - meta tag
- Should load image without any CSP - HTTP header
- Should not load image with 'none' CSP - meta tag
- Should not load image with 'none' CSP - HTTP header
- U+0009 TAB should be properly parsed between directive name and value - meta tag
- U+0009 TAB should be properly parsed between directive name and value - HTTP header
- U+000C FF should be properly parsed between directive name and value - meta tag
- U+000C FF should be properly parsed between directive name and value - HTTP header
- U+000A LF should be properly parsed between directive name and value - meta tag
- U+000D CR should be properly parsed between directive name and value - meta tag
- U+0020 SPACE should be properly parsed between directive name and value - meta tag
- U+0020 SPACE should be properly parsed between directive name and value - HTTP header
- U+0009 TAB should be properly parsed inside directive value - meta tag
- U+0009 TAB should be properly parsed inside directive value - HTTP header
- U+000C FF should be properly parsed inside directive value - meta tag
- U+000C FF should be properly parsed inside directive value - HTTP header
- U+000A LF should be properly parsed inside directive value - meta tag
- U+000D CR should be properly parsed inside directive value - meta tag
- U+0020 SPACE should be properly parsed inside directive value - meta tag
- U+0020 SPACE should be properly parsed inside directive value - HTTP header
- U+00A0 NBSP should not be parsed between directive name and value - meta tag
- U+00A0 NBSP should not be parsed between directive name and value - HTTP header
- U+00A0 NBSP should not be parsed inside directive value - meta tag
- U+00A0 NBSP should not be parsed inside directive value - HTTP header
- U+000B VT should not be parsed between directive name and value - meta tag
- U+000B VT should not be parsed between directive name and value - HTTP header
- U+000B VT should not be parsed inside directive value - meta tag
- U+000B VT should not be parsed inside directive value - HTTP header
policy-does-not-affect-child.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS"]
source-list-wildcard-host-and-port.https.sub.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- "*:*" with a path allows the path on the document's own origin
- "*:*" with a path allows the path on a different port
- "*:*" with a path allows the path on a different host
- "*:*" with a path does not allow other paths
src-trailing-dot.sub.any.js 4 / 4 passingChrome 4 / 40 failedClean
/content-security-policy/generic/src-trailing-dot.sub.any.html OK 1 / 1
1 passing subtest
- Fetch from host with trailing dot should be allowed by CSP.
/content-security-policy/generic/src-trailing-dot.sub.any.serviceworker.html OK 1 / 1
1 passing subtest
- Fetch from host with trailing dot should be allowed by CSP.
/content-security-policy/generic/src-trailing-dot.sub.any.sharedworker.html OK 1 / 1
1 passing subtest
- Fetch from host with trailing dot should be allowed by CSP.
/content-security-policy/generic/src-trailing-dot.sub.any.worker.html OK 1 / 1
1 passing subtest
- Fetch from host with trailing dot should be allowed by CSP.
wildcard-host-part-002.sub.window.js 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- Host wildcard allows arbitrary hosts (default host).
- Host wildcard allows arbitrary hosts (www1).
- Host wildcard allows arbitrary hosts (www2).
- Host wildcard doesn't affect port matching (port 8001).
- Host wildcard doesn't affect path matching.
wildcard-host-part.sub.window.js 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- Host wildcard doesn't affect scheme matching.
- Host wildcard allows arbitrary hosts (default host).
- Host wildcard allows arbitrary hosts (www1).
- Host wildcard allows arbitrary hosts (www2).
- Host wildcard doesn't affect port matching (port 8001).