mirror of
https://github.com/servo/servo.git
synced 2025-09-08 14:08:22 +01:00
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:
parent
0d58c2be76
commit
cf1f64e73f
3 changed files with 0 additions and 37 deletions
11
tests/wpt/meta/MANIFEST.json
vendored
11
tests/wpt/meta/MANIFEST.json
vendored
|
@ -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",
|
||||
[
|
||||
|
|
|
@ -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>
|
|
@ -1 +0,0 @@
|
|||
Content-Security-Policy: sandbox allow-forms
|
Loading…
Add table
Add a link
Reference in a new issue