Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3632c80665b4c970873a72bbbbc63565da970ac0
      
https://github.com/WebKit/WebKit/commit/3632c80665b4c970873a72bbbbc63565da970ac0
  Author: Vivienne Watermeier <[email protected]>
  Date:   2026-04-07 (Tue, 07 Apr 2026)

  Changed paths:
    M 
LayoutTests/media/encrypted-media/mock-navigator-requestMediaKeySystemAccess-expected.txt
    M 
LayoutTests/media/encrypted-media/mock-navigator-requestMediaKeySystemAccess.html
    M LayoutTests/platform/glib/TestExpectations
    M LayoutTests/platform/ios/TestExpectations
    M LayoutTests/platform/mac/TestExpectations
    M Source/WebCore/platform/encryptedmedia/CDMPrivate.cpp
    M Source/WebCore/platform/mock/mediasource/MockMediaPlayerMediaSource.cpp
    M Source/WebCore/platform/network/ParsedContentType.h

  Log Message:
  -----------
  [EME] Check support for full content type (including codecs)
https://bugs.webkit.org/show_bug.cgi?id=310709

Reviewed by Jer Noble and Xabier Rodriguez-Calvar.

When evaluating media capabilities for requestMediaKeySystemAccess,
we use pass ParsedContentType's m_mimeType to the MediaSource,
which omits parameters of the MIME type like codecs.

The right field to use here is m_contentType, so MediaSource
can check support against the full MIME type, rather than just
its container type.

* 
LayoutTests/media/encrypted-media/mock-navigator-requestMediaKeySystemAccess-expected.txt:
* 
LayoutTests/media/encrypted-media/mock-navigator-requestMediaKeySystemAccess.html:
 Add test with supported type but unknown codec.
* LayoutTests/platform/glib/TestExpectations: Unflag 
mock-navigator-requestMediaKeySystemAccess.html.
* LayoutTests/platform/ios/TestExpectations: Ditto.
* LayoutTests/platform/mac/TestExpectations: Ditto.
* Source/WebCore/platform/encryptedmedia/CDMPrivate.cpp:
(WebCore::CDMPrivate::getSupportedCapabilitiesForAudioVideoType): Use full 
contentType for MediaEngineSupportParameters.
* Source/WebCore/platform/mock/mediasource/MockMediaPlayerMediaSource.cpp:
(WebCore::MockMediaPlayerMediaSource::supportsType): Return NotSupported if 
codec is 'unknown' or 'invalid'.
* Source/WebCore/platform/network/ParsedContentType.h:
(WebCore::ParsedContentType::contentType const): Added, returns m_contentType.

Original author: Andrzej Surdej <[email protected]>

See: https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/1643
Canonical link: https://commits.webkit.org/310696@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to