Bug 283150

Summary: Errors aren't detected if media element isn't in the DOM.
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Jean-Yves Avenard [:jya]
Reported 2024-11-14 17:48:56 PST
When the video element isn't in the DOM, both the MediaPlayerPrivateMediaSourceAVFObjC and MediaPlayerPrivateWebM use a WebCoreDecompressionSession to listen to errors. While the WebCoreDecompressionSession let you set an error callback, it's not used. As a consequence, when an error occurs during playback of an offscreen element, errors won't be detected, the error event won't fire, video element won't be paused and will continue to render garbage data.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-11-14 19:30:04 PST
Jean-Yves Avenard [:jya]
Comment 2 2024-11-14 19:40:32 PST
Jean-Yves Avenard [:jya]
Comment 3 2024-11-17 20:05:40 PST
Committed 286685@main (20984f6): https://commits.webkit.org/286685@main Reviewed commits have been landed. Closing PR #36676 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.