mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
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.
17 lines
379 B
HTML
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>
|