9.26content-security-policy/sandbox/

26 / 27 WPT subtests passing

Failed
0
Timed out
1
Not run
0
Test files
17
Blocking files
0

Chrome 20 / 27 WPT subtests passing on the same files, 1 blocking

Tests

17 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
autoplay-disabled-by-csp.html1 / 2 passingChrome 1 / 20 failedExempt
Standing
Exempt runner status ERROR
Chrome
Exempt 1 / 2 WPT subtests passing runner status ERROR

Exempt from the 0.1 gate until an upstream test bug is fixed

the parent reads iframe.contentWindow.document of a frame its CSP sandboxes into an opaque origin (no allow-same-origin), so the access throws SecurityError: harness ERROR and the autoplay subtest TIMEOUT in Chrome, Firefox, Safari and Crane alike (only each engine's SecurityError text differs)

Chrome
wpt.fyi run 4786307730243584: 1/2 (ERROR, Chrome 157, 2358bd4835)
Firefox
wpt.fyi run 4877168468033536: 1/2 (ERROR, Firefox 160, 2358bd4835)
Safari
wpt.fyi run 6479119966273536: 1/2 (ERROR, Safari 27.2, 2358bd4835)
Revisit
when https://github.com/web-platform-tests/wpt/issues/65463 is resolved

Harness message

SecurityError: Failed to read a named property 'document' from 'Window': Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame.

/content-security-policy/sandbox/autoplay-disabled-by-csp.html ERROR 1 / 2

SecurityError: Failed to read a named property 'document' from 'Window': Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame.
  1. TIMEOUTcsp-derived sandboxing flags prevent autoplay.
    Test timed out
1 passing subtest
  1. Expecting logs: ["Loaded iframe"]
iframe-inside-csp.sub.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. Expecting logs: ["PASS (1/2): Script can execute","PASS (2/2): Eval works"]
iframe-self-after-redirect.sub.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. Expecting logs: ["PASS script-src self after redirect"]
iframe-self-all-directives.sub.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. Expecting logs: ["PASS script-src self", "PASS img-src self", "PASS style-src self", "PASS frame-src self"]
iframe-self-allows-same-origin.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. Expecting logs: ["PASS script-src self sandboxed iframe"]
iframe-self-blocks-cross-origin.sub.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. Expecting logs: ["PASS same-origin script allowed in sandboxed iframe", "PASS cross-origin script blocked in sandboxed iframe"]
iframe-self-via-header.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. Expecting logs: ["PASS script-src self sandboxed iframe (header-delivered)"]
meta-element.sub.html3 / 3 passingChrome 3 / 30 failedClean
Standing
Clean runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. Document shouldn't be sandboxed by <meta>
  2. Worker shouldn't be sandboxed by inheriting <meta>
  3. Worker shouldn't be sandboxed when created <iframe> inheriting parent's CSP with sandbox <meta>
sandbox-allow-scripts-subframe.sub.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. Expecting logs: ["Message"]
sandbox-allow-scripts.sub.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. Expecting logs: ["Message"]
sandbox-empty-subframe.sub.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. Expecting logs: ["PASS2"]
sandbox-empty.sub.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. Expecting logs: ["PASS2"]
sandbox-last-directive-csp.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. Expecting logs: ["PASS (1/2): Script can execute","PASS (2/2): Eval works"]
service-worker-sandbox.https.html8 / 8 passingChrome 3 / 80 failedClean
Standing
Clean runner status OK
Chrome
With failures 3 / 8 WPT subtests passing runner status OK
8 passing subtests
  1. global setup
  2. Origin of service worker
  3. Response generated by service worker can be fetched as same-origin
  4. Origin used in fetch on service worker (mode: same-origin, with ACAOrigin)
  5. Origin used in fetch on service worker (mode: same-origin)
  6. Origin used in fetch on service worker (mode: cors, with ACAOrigin)
  7. Origin used in fetch on service worker (mode: cors)
  8. global cleanup
shared-worker-sandbox.html1 / 1 passingChrome 0 / 10 failedClean
Standing
Clean runner status OK
Chrome
NONE-PASSED 0 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. sandbox directive for SharedWorker
window-reuse-sandboxed.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. Window object should not be reused
window-reuse-unsandboxed.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. Window object should be reused

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.