Bug 310616

Summary: MediaSource should actually cache the response
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 2026-03-24 02:13:27 PDT
AVStreamDataParserMIMETypeCache::canDecodeExtendedType just calls [AVStreamDataParser canParseExtendedMIMEType] to check if the type is supported or not and if not will call mediaStrategy()->canDecodeExtendedType which will issue a sync IPC call to the GPUP. the results of canDecodeExtendedType is never cached and so we end up making IPC sync call to the GPUP for all queries.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-03-24 02:13:34 PDT
Jean-Yves Avenard [:jya]
Comment 2 2026-03-25 02:44:21 PDT
Rename title, caching the entire lots of MediaSource.isTypeSupported makes more sense, it can be made thread-safe avoiding the sync dispatch to the main thread,
Jean-Yves Avenard [:jya]
Comment 3 2026-03-25 07:56:03 PDT
EWS
Comment 4 2026-03-26 05:54:16 PDT
Committed 309981@main (877c1eacc4bb): <https://commits.webkit.org/309981@main> Reviewed commits have been landed. Closing PR #61328 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.