Bug 310775

Summary: Unnecessary AVStreamDataParser allocation when querying if a mime type is supported.
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-25 23:05:42 PDT
For historical reason, to check MSE support we always call allocAVStreamDataParserInstance and init. On iPhone this used to return `nil` as this SPI was disabled on iPhone but enabled on iPad and to differentiate the `init` method returned a difference value. This is no longer true on any of our currently supported platforms. It can be removed. In the CPLT tests it accounts for a 75ms total overhead.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-03-25 23:05:49 PDT
Jean-Yves Avenard [:jya]
Comment 2 2026-03-25 23:26:00 PDT
EWS
Comment 3 2026-03-26 01:41:27 PDT
Committed 309970@main (1e3921ec8629): <https://commits.webkit.org/309970@main> Reviewed commits have been landed. Closing PR #61382 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.