Bug 245753

Summary: the MediaSessionInfo for a media element doesn't get updates when a srcObject is used
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: MediaAssignee: Cameron McCormack (:heycam) <heycam>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Cameron McCormack (:heycam) 2022-09-27 14:47:41 PDT
In bug 243062, we added an optimisation to avoid the expensive computation of an updated MediaSessionInfo object when the previous state had no currentSrc URL and the current state doesn't either.  But this excludes media elements that have a srcObject, whose state we still want to reflect through media sessions.
Comment 1 Radar WebKit Bug Importer 2022-09-27 14:48:12 PDT
<rdar://problem/100477469>
Comment 2 Cameron McCormack (:heycam) 2022-09-27 15:12:24 PDT
Pull request: https://github.com/WebKit/WebKit/pull/4773
Comment 3 EWS 2022-09-28 02:06:36 PDT
Committed 254948@main (6cfe0a4e9efc): <https://commits.webkit.org/254948@main>

Reviewed commits have been landed. Closing PR #4773 and removing active labels.