Bug 280631
| Summary: | [WPE][GTK] Add process monitor process and reenable web process suspend/resume | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bugs-noreply, mcatanzaro |
| Priority: | P2 | ||
| Version: | Other | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=280014 | ||
Michael Catanzaro
In bug #280014 I disabled web process suspend/resume because it doesn't work robustly if the UI process crashes or is terminated uncleanly (e.g. using Ctrl+C).
To bring this back, we need a new helper process to monitor all other WebKit auxiliary processes, which should be unlikely to crash and robust to SIGINT.
The problem is that we currently rely on the web process to notice that its IPC socket to the UI process is closed, upon which it will quit. But if we have stopped the web process with SIGSTOP, then it's impossible for it to notice this condition, and it will just remain stopped forever.
(Note that prior to 280061@main, bubblewrap sandbox would manage subprocesses, avoiding this problem. Bringing that back might make sense, if we could find some alternate solution for unsandboxed WebKit and flatpak sandbox.)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |