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: | Media | Assignee: | 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]
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/139935149>
Jean-Yves Avenard [:jya]
Pull request: https://github.com/WebKit/WebKit/pull/36676
Jean-Yves Avenard [:jya]
Committed 286685@main (20984f6): https://commits.webkit.org/286685@main
Reviewed commits have been landed. Closing PR #36676 and removing active labels.