[Webkit-unassigned] [Bug 252415] New: [Cocoa] Prevent active background page processes from suspending

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 16 12:11:06 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=252415

            Bug ID: 252415
           Summary: [Cocoa] Prevent active background page processes from
                    suspending
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Mac (Apple Silicon)
                OS: macOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Process Model
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: miguel_salinas at apple.com

When a page is backgrounded we try to suspend its process if possible. When the internal setting "Take WebKit:Suspended assertion..." is disabled, this will cause the UI process to drop all of its process assertions on the web content process, effectively making it un-schedulable. This means that pages which may still be active will completely stop. This wasn't an issue before since the web content process would still be schedulable because it was holding the WebKit:Suspended assertion (this is very confusing since the WebKit:Suspended process assertion actually _prevents_ suspension). Instead of dropping all process assertions immediately upon being backgrounded, we should give the page/process some time to be scheduled and if it performs any observable work (e.g. changing document title text, sending a local notification, etc.) we should extend this time to be scheduled.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230216/25b35629/attachment-0001.htm>


More information about the webkit-unassigned mailing list