Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3ff93e0dd934c5319ed32743636e5320e674993f
https://github.com/WebKit/WebKit/commit/3ff93e0dd934c5319ed32743636e5320e674993f
Author: Jer Noble <[email protected]>
Date: 2025-11-19 (Wed, 19 Nov 2025)
Changed paths:
M Source/JavaScriptCore/inspector/protocol/DOM.json
M Source/WebCore/html/MediaElementSession.cpp
M Source/WebCore/html/track/AudioTrackConfiguration.cpp
M Source/WebCore/html/track/AudioTrackConfiguration.h
M Source/WebCore/html/track/VideoTrackConfiguration.cpp
M Source/WebCore/html/track/VideoTrackConfiguration.h
M Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
M Source/WebCore/platform/graphics/PlatformAudioTrackConfiguration.h
M Source/WebCore/platform/graphics/PlatformVideoTrackConfiguration.h
M Source/WebCore/platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.h
M Source/WebCore/platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm
M
Source/WebCore/platform/graphics/avfoundation/FormatDescriptionUtilities.cpp
M Source/WebCore/platform/graphics/avfoundation/FormatDescriptionUtilities.h
M
Source/WebCore/platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp
M Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
M Source/WebInspectorUI/UserInterface/Views/MediaDetailsSidebarPanel.js
M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
Log Message:
-----------
[Logging] Report whether video and audio tracks are protected in logging and
in Web Inspector
rdar://165026619
https://bugs.webkit.org/show_bug.cgi?id=302768
Reviewed by Devin Rousso.
Use the CMFormatDescription ProtectedContentOriginalFormat extention to
determine whether
the given track has protected contents, and report that data in logging,
including via
Web Inspector.
Drive-by fix: Audio tracks were not having their configuration updated by
AVTrackPrivateAVFObjCImpl.
* Source/JavaScriptCore/inspector/protocol/DOM.json:
* Source/WebCore/html/MediaElementSession.cpp:
(WebCore::MediaElementSession::descriptionForTrack):
* Source/WebCore/html/track/AudioTrackConfiguration.cpp:
(WebCore::AudioTrackConfiguration::toJSON const):
* Source/WebCore/html/track/AudioTrackConfiguration.h:
(WebCore::AudioTrackConfiguration::isProtected const):
(WebCore::AudioTrackConfiguration::setProtected):
* Source/WebCore/html/track/VideoTrackConfiguration.cpp:
(WebCore::VideoTrackConfiguration::setProtected):
(WebCore::VideoTrackConfiguration::toJSON const):
* Source/WebCore/html/track/VideoTrackConfiguration.h:
(WebCore::VideoTrackConfiguration::isProtected const):
* Source/WebCore/inspector/agents/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::getMediaStats):
* Source/WebCore/platform/graphics/PlatformAudioTrackConfiguration.h:
* Source/WebCore/platform/graphics/PlatformVideoTrackConfiguration.h:
* Source/WebCore/platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.h:
* Source/WebCore/platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm:
(WebCore::AVTrackPrivateAVFObjCImpl::videoTrackConfiguration const):
(WebCore::AVTrackPrivateAVFObjCImpl::audioTrackConfiguration const):
(WebCore::AVTrackPrivateAVFObjCImpl::isProtected const):
* Source/WebCore/platform/graphics/avfoundation/FormatDescriptionUtilities.cpp:
(WebCore::codecFromFormatDescription):
(WebCore::formatDescriptionIsProtected):
* Source/WebCore/platform/graphics/avfoundation/FormatDescriptionUtilities.h:
*
Source/WebCore/platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp:
(WebCore::AudioTrackPrivateMediaSourceAVFObjC::resetPropertiesFromTrack):
* Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js:
* Source/WebInspectorUI/UserInterface/Views/MediaDetailsSidebarPanel.js:
(WI.MediaDetailsSidebarPanel):
(WI.MediaDetailsSidebarPanel.prototype.layout):
(WI.MediaDetailsSidebarPanel.prototype.setVideo):
(WI.MediaDetailsSidebarPanel.prototype.setAudio):
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
Canonical link: https://commits.webkit.org/303255@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications