Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 76e37b409366b259451dd7bb874cc20d26327aac
https://github.com/WebKit/WebKit/commit/76e37b409366b259451dd7bb874cc20d26327aac
Author: Jean-Yves Avenard <[email protected]>
Date: 2026-03-24 (Tue, 24 Mar 2026)
Changed paths:
M Source/WebCore/platform/graphics/cocoa/SourceBufferParser.cpp
Log Message:
-----------
Unnecessary check with both SourceBufferParsers when one could do.
https://bugs.webkit.org/show_bug.cgi?id=310619
rdar://173281033
Reviewed by Jer Noble.
When checking if the SourceBufferParsers can support a type, we were
always querying both the SourceBufferParserWebM and SourceBufferParserAVFObjC
even if the SourceBufferParserWebM supported it.
The SourceBufferParserAVFObjC needs to perform a sync IPC call for some
mimeType which adds significant delay to the operation.
If the SourceBufferParserWebM supports a content, we can stop the query.
No JS observable behaviours. Covered by existing tests.
* Source/WebCore/platform/graphics/cocoa/SourceBufferParser.cpp:
(WebCore::SourceBufferParser::isContentTypeSupported):
Canonical link: https://commits.webkit.org/309884@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications