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 hereEach 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.html 1 / 2 passingChrome 1 / 20 failedExempt
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.
- ¶
TIMEOUTcsp-derived sandboxing flags prevent autoplay.
Test timed out
1 passing subtest
- Expecting logs: ["Loaded iframe"]
iframe-inside-csp.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS (1/2): Script can execute","PASS (2/2): Eval works"]
iframe-self-after-redirect.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS script-src self after redirect"]
iframe-self-all-directives.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS script-src self", "PASS img-src self", "PASS style-src self", "PASS frame-src self"]
iframe-self-allows-same-origin.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS script-src self sandboxed iframe"]
iframe-self-blocks-cross-origin.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS same-origin script allowed in sandboxed iframe", "PASS cross-origin script blocked in sandboxed iframe"]
iframe-self-via-header.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS script-src self sandboxed iframe (header-delivered)"]
meta-element.sub.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Document shouldn't be sandboxed by <meta>
- Worker shouldn't be sandboxed by inheriting <meta>
- Worker shouldn't be sandboxed when created <iframe> inheriting parent's CSP with sandbox <meta>
sandbox-allow-scripts-subframe.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["Message"]
sandbox-allow-scripts.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["Message"]
sandbox-empty-subframe.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS2"]
sandbox-empty.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS2"]
sandbox-last-directive-csp.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS (1/2): Script can execute","PASS (2/2): Eval works"]
service-worker-sandbox.https.html 8 / 8 passingChrome 3 / 80 failedClean
8 passing subtests
- global setup
- Origin of service worker
- Response generated by service worker can be fetched as same-origin
- Origin used in fetch on service worker (mode: same-origin, with ACAOrigin)
- Origin used in fetch on service worker (mode: same-origin)
- Origin used in fetch on service worker (mode: cors, with ACAOrigin)
- Origin used in fetch on service worker (mode: cors)
- global cleanup
window-reuse-sandboxed.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Window object should not be reused
window-reuse-unsandboxed.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Window object should be reused