Files
ladybird/Tests/LibWeb/Text/input/HTML/autoplay-of-file-video-from-file-document.html
Shannon Booth e188de89f9 LibWeb/PermissionsPolicy: Allow autoplay of file:// media from file://
As file:// URLs are considered opaque origins by default, we need
to special case them in the allowlist as any opaque origin will
not be matched in the allow list.
2026-03-01 01:04:10 +01:00

17 lines
379 B
HTML

<!DOCTYPE html>
<video autoplay id="video" src="../../../Assets/test-webm.webm" muted></video>
<script src="../include.js"></script>
<script>
asyncTest(done => {
setTimeout(() => {
println("FAIL: timeout waiting for autoplay");
done();
}, 10_000);
video.onplaying = () => {
println("PASS: autoplay working");
done();
};
});
</script>