Files
ladybird/Tests/LibWeb/Text/expected/HTML/HTMLMediaElement-load-after-decode-error.txt
Zaggy1024 94be6c7611 LibWeb: Prevent a crash when triggering media load in the error handler
If we fire the error event synchronously within the on_error callback,
then we'll end up destroying the PlaybackManager inside its own
callback and crash. Instead, queue a task to execute the error steps.

This could happen with or without MSE, but I observed it occurring on
YouTube with MSE when we hit a decoding error, since they immediately
try another source when an error is reported.
2026-04-01 02:54:22 -05:00

18 lines
533 B
Plaintext

Events:
document load: readyState=0
loadstart: readyState=0
durationchange: readyState=1 duration=0
loadedmetadata: readyState=1
error: readyState=1 code=3
error handler: setting good src: readyState=1
error handler: src setter returned: readyState=0
abort: readyState=0
emptied: readyState=0
loadstart: readyState=0
durationchange: readyState=2 duration=12.043
loadedmetadata: readyState=2
loadeddata: readyState=2
canplay: readyState=4
canplaythrough: readyState=4
Final: readyState=4 duration=12.043