mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Otherwise, when hiding controls, we would get a UAF on MediaControls:: update_timeline() and crash.
17 lines
378 B
HTML
17 lines
378 B
HTML
<!DOCTYPE html>
|
|
<script src="include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
const video = document.createElement("video");
|
|
video.controls = true;
|
|
document.body.appendChild(video);
|
|
|
|
video.controls = false;
|
|
|
|
requestAnimationFrame(() => {
|
|
println("PASS (didn't crash)");
|
|
done();
|
|
});
|
|
});
|
|
</script>
|