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

Description Chris Dumez 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.
Comment 1 Chris Dumez 2023-04-27 13:24:44 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13245
Comment 2 EWS 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.
Comment 3 Radar WebKit Bug Importer 2023-04-27 17:16:22 PDT
<rdar://problem/108635306>