Bug 226058

Summary: Separately handle NowPlayingInfo metadata from artwork
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=225999

Description Jean-Yves Avenard [:jya] 2021-05-20 17:26:02 PDT
Currently the NowPlayingInfo content is being sent between the web process and the GPU process.
In order to avoid sending the same image multiple times; NowPlayingInfo's artwork imageData will be set to nullptr to flag that a cache version should be used.

This code is confusing and prone to errors as shown with bug 225999.

We should instead split the IPC message setting the NowPlayingInfo into two messages , one that set the metadata and one that send the artwork
Comment 1 Radar WebKit Bug Importer 2021-05-27 17:26:19 PDT
<rdar://problem/78596013>