LibWeb: Stop the video decoder thread when the video element is GC'd

Otherwise, the thread will continue to run and access the media data
buffer, which will have been freed.

The test here is a bit strange, but the issue would only consistently
repro after several GC runs.
This commit is contained in:
Timothy Flynn 2024-04-25 08:39:19 -04:00 committed by Andreas Kling
commit f6407276f7
Notes: sideshowbarker 2024-07-17 02:22:23 +09:00
8 changed files with 45 additions and 2 deletions

View file

@ -0,0 +1 @@
<video autoplay src="../../../../Base/home/anon/Videos/test-webm.webm"></video>