Bug 224775

Summary: Move application foreground/background notifications to WebProcess/Pool from WebPage/Proxy
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: iOS 14   

Jer Noble
Reported 2021-04-19 12:04:53 PDT
Currently, application foreground/background notifications are listened for in WKContentView, and forwarded to WebPage via WebPageProxy. But because WebPage will just re-broadcast the notification within the WebContent process, this will lead to multiple notifications (and wasted work) being done if there are multiple Pages in the same WebContent process. This code should be moved to a singleton class (WebProcessPool would be a natural choice) and broadcasted only once per specific WebProcess instance.
Attachments
Radar WebKit Bug Importer
Comment 1 2021-04-26 12:05:21 PDT
Note You need to log in before you can comment on or make changes to this bug.