Files
ladybird/Tests/LibWeb/Text/input/video-remove-controls.html
Zaggy1024 f213ef455d LibWeb: Cancel the animation frame callback in MediaControls destructor
Otherwise, when hiding controls, we would get a UAF on MediaControls::
update_timeline() and crash.
2026-03-17 06:00:40 -05:00

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>