RESOLVED FIXED310775
Unnecessary AVStreamDataParser allocation when querying if a mime type is supported.
https://bugs.webkit.org/show_bug.cgi?id=310775
Summary Unnecessary AVStreamDataParser allocation when querying if a mime type is sup...
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.