9.21content-security-policy/parsing/

25 / 25 WPT subtests passing

Failed
0
Timed out
0
Not run
0
Test files
3
Blocking files
0

Chrome 25 / 25 WPT subtests passing on the same files, none blocking

Tests

3 test files here

Each test file opens in place to its subtests, and each subtest that did not pass to its message.

Test fileSubtests passingChromeFailedStanding
invalid-bytes.html18 / 18 passingChrome 18 / 180 failedClean
Standing
Clean runner status OK
Chrome
Clean 18 / 18 WPT subtests passing runner status OK
18 passing subtests
  1. CSP: "img-src 'none'\x01" should allow rendering (Invalid directive ignored).
  2. CSP: "img-src 'none' http:\x01" should allow rendering (Invalid directive ignored).
  3. CSP: "img-src 'self'\x01" should allow rendering (Invalid directive ignored).
  4. CSP: "img-src 'none'; media-src 'self'\x01" should block rendering.
  5. CSP: "img-src 'self'; media-src 'self'\x01" should allow rendering.
  6. CSP: "img-src 'self', img-src 'self'\x01" should allow rendering.
  7. CSP: "img-src 'none', img-src 'self'\x01" should block rendering.
  8. CSP: "img-src 'self', img-src\x01" should allow rendering.
  9. CSP: "img-src 'none', img-src\x01" should block rendering.
  10. CSP: "img-src 'none'\x7f" should allow rendering (Invalid directive ignored).
  11. CSP: "img-src 'none' http:\x7f" should allow rendering (Invalid directive ignored).
  12. CSP: "img-src 'self'\x7f" should allow rendering (Invalid directive ignored).
  13. CSP: "img-src 'none'; media-src 'self'\x7f" should block rendering.
  14. CSP: "img-src 'self'; media-src 'self'\x7f" should allow rendering.
  15. CSP: "img-src 'self', img-src 'self'\x7f" should allow rendering.
  16. CSP: "img-src 'none', img-src 'self'\x7f" should block rendering.
  17. CSP: "img-src 'self', img-src\x7f" should allow rendering.
  18. CSP: "img-src 'none', img-src\x7f" should block rendering.
invalid-directive.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Even if an unknown directive is specified, img-src is honored.
keyword-source-with-trailing-characters.html6 / 6 passingChrome 6 / 60 failedClean
Standing
Clean runner status OK
Chrome
Clean 6 / 6 WPT subtests passing runner status OK
6 passing subtests
  1. script-src 'unsafe-inline'X ignores the invalid token, so inline script is blocked.
  2. script-src 'self''unsafe-inline' ignores the invalid token, so inline script is blocked.
  3. script-src 'unsafe-inline' 'unsafe-eval'X ignores the invalid token, so eval() is blocked.
  4. script-src 'self'/foo/ ignores the invalid token, so a same-origin script is blocked.
  5. script-src 'nonce-abc' 'strict-dynamic'X ignores the invalid token, so a dynamically inserted script is blocked.
  6. style-src 'strict-dynamic''unsafe-inline' ignores the invalid token, so inline style is blocked.

Written as HTML by tools/wpt_site/generate.zig from the runner’s journals and result streams; site.js adds the interactive chart, sorting, filtering and search. Faces: Source Serif 4, Public Sans and Source Code Pro, under the SIL Open Font License. Crane on GitHub.