Bug 256056

Summary: Move SleepDisabler ownership from WebProcessProxy to WebPageProxy
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: kkinnunen, 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=256097

Chris Dumez
Reported 2023-04-27 13:15:34 PDT
Move SleepDisabler ownership from WebProcessProxy to WebPageProxy. Those "sleep disabling" assertion are taken by paging and it thus makes sense for their lifetime to be tired to the page rather than the process. This tighter scoping reduces the chances of assertion leakage and fit nicely with our UIProcess-side logic now that we rely on the UIClient to take some of these assertions.
Attachments
Chris Dumez
Comment 1 2023-04-27 13:24:44 PDT
EWS
Comment 2 2023-04-27 17:15:17 PDT
Committed 263474@main (9bfa2b8cde5b): <https://commits.webkit.org/263474@main> Reviewed commits have been landed. Closing PR #13245 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2023-04-27 17:16:22 PDT
Note You need to log in before you can comment on or make changes to this bug.