script: remove wpt test added in #39079 (#39164)

Removes a test related to autoplay and sandboxing which will always
fail.

In https://github.com/servo/servo/pull/39079 I introduced a wpt to test
autoplay functionality, but the test was flawed in its approach -
shortly after merge, myself and @TimvdLippe found that this test would
simulataneously require scripts to be enabled, as well as disabled for
the test to pass.

This slipped past me becuase we hadn't correctly implemented whether
scripting was enabled yet in Servo.

Testing: Removes a single WPT - this test has not been merged upstream.

Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
shanehandley 2025-09-05 23:36:16 +10:00 committed by GitHub
parent 0d58c2be76
commit cf1f64e73f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 37 deletions

View file

@ -403717,10 +403717,6 @@
]
},
"sandbox": {
"autoplay-disabled-by-csp.html.headers": [
"32518e57d4584de71845a9260b093c3535fc3074",
[]
],
"form-submission-blocked-by-sandboxing.html.headers": [
"1efcf8c226fac074c98d0a5a747856f532e5d84e",
[]
@ -581705,13 +581701,6 @@
]
},
"sandbox": {
"autoplay-disabled-by-csp.html": [
"d7bd453a34c0e75c98c837f853c0cf492359625a",
[
null,
{}
]
],
"form-submission-blocked-by-sandboxing.html": [
"4c717a18fd8bfa9d5cb4bc5449b0f25498ccb754",
[

View file

@ -1,25 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<link rel="help" href="https://html.spec.whatwg.org/multipage/#eligible-for-autoplay" />
<title>Test that autoplay is blocked by a document's active sandboxing flags</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/media.js"></script>
</head>
<body>
<video id="v" autoplay></video>
<script>
async_test((t) => {
var v = document.getElementById('v')
v.addEventListener('playing', t.unreached_func(
'video should not autoplay due to sandboxing flags'
));
v.src = getVideoURI('/media/movie_5') + '?' + new Date() + Math.random()
t.step_timeout(() => t.done(), 500);
}, 'csp-derived sandboxing flags prevent autoplay.')
</script>
</body>
</html>

View file

@ -1 +0,0 @@
Content-Security-Policy: sandbox allow-forms