servo/tests/wpt/meta/content-security-policy/sandbox
Tim van der Lippe e3de39893f
Disable scripting when sandbox flag is set (#39163)
While I adding spec comments to the CSP crate, I discovered two issues:
1. We should only use the last sandbox value (WPT test added)
2. We weren't checking for the scripting sandbox flag in document

Also, the autoplay test should have allowed scripts to run, otherwise
the test doesn't run. Since we weren't checking the flag before, the
test ran fine for Servo. However, it wouldn't run for other browsers.

Also realized that an existing test was pointing to a non-existent file
(since it doesn't have `.sub`). Updated that and confirmed that in other
browsers it now properly works (it no longer shows a 404). However,
Servo now fails that test as we don't fire an load event.

Part of #913

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
2025-09-07 12:31:40 +00:00
..
sandbox-empty-subframe.sub.html.ini Run all CSP tests in CI by default. (#36436) 2025-04-10 08:09:23 +00:00
sandbox-empty.sub.html.ini Disable scripting when sandbox flag is set (#39163) 2025-09-07 12:31:40 +00:00
service-worker-sandbox.https.html.ini Run all CSP tests in CI by default. (#36436) 2025-04-10 08:09:23 +00:00
shared-worker-sandbox.html.ini Run all CSP tests in CI by default. (#36436) 2025-04-10 08:09:23 +00:00
window-reuse-unsandboxed.html.ini Run all CSP tests in CI by default. (#36436) 2025-04-10 08:09:23 +00:00