Bug 280014

Summary: REGRESSION(247615@main): [WPE][GTK] Suspended cached web processes remain forever after UI process terminates uncleanly
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: WebKitGTKAssignee: Michael Catanzaro <mcatanzaro>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, mcatanzaro
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=279913
https://bugs.webkit.org/show_bug.cgi?id=280631

Description Michael Catanzaro 2024-09-19 14:05:50 PDT
Splitting this out of bug #279913:

 * Run Epiphany or MiniBrowser in a terminal
 * Open a tab and close it, wait until the web process cache suspends the corresponding web process
 * Ctrl+C

Notice the web process remains in suspended state forever. Its only mechanism to quit itself is to receive a HUP event on its IPC connection to the UI process, but that cannot happen because it is suspended. Only the UI process can unsuspend it, but the UI process is gone. We would need a new process monitor auxiliary process to fix this.
Comment 1 Michael Catanzaro 2024-09-19 14:09:35 PDT
Pull request: https://github.com/WebKit/WebKit/pull/33930
Comment 2 EWS 2024-09-30 12:39:18 PDT
Committed 284462@main (a585b00cb55e): <https://commits.webkit.org/284462@main>

Reviewed commits have been landed. Closing PR #33930 and removing active labels.
Comment 3 Michael Catanzaro 2024-09-30 12:53:06 PDT
Created bug #280631 to follow up and reenable process suspension.