[Webkit-unassigned] [Bug 278016] New: 2.45.6 communication with web processes under PSON

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 13 02:36:07 PDT 2024


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

            Bug ID: 278016
           Summary: 2.45.6 communication with web processes under PSON
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: enometh at meer.net
                CC: bugs-noreply at webkitgtk.org

Created attachment 472131

  --> https://bugs.webkit.org/attachment.cgi?id=472131&action=review

log for 2.46.5 with webext-surf

When a new webprocess is swapped in, it appears to be unable to
communicate with the ui process. typically the page-created is used to
communicate to the parent process to negotiate an IPC channel and/or
register the page-id for further communication, this seems to be
failing, and messages and IPC to the parent process seem to be
dropped.  For a concrete case consider the suckless surf browser
git://git.suckless.org/surf branch origin/surf-webkit2 commit
9ef79bf7106496c736, patchs (to make it use webkit2gtk-4.1), and add
some debugging messages.

weburf-ext.c uses usermessages to communicate with the ui process and
get a ipc fd for further communications, it provides minimal
functionality by implementing scrolling via javascript. To show the
problem I use these steps first with with webkit-2.43.1 and then with
webkit-2.45.6.

 1. run "surf webkit://gpu"
 2. Ctrl-g , enter "file:///tmp" (to navigate to a new url with pages of scroll)
 3. type Ctrl-SPC Ctrl-b to scroll the page (via the extension)

There is no process swapping im 2.43.1, and in the step where the
communication is supposed to happen in webext-surf.c:(pagecreated),
i see a
```
Unhandled message WebPageProxy_SendMessageToWebViewWithReply from provisional process
```
The UI process doesn't see any message from the the web process.

Other browsers that use IPC without webkit user messages also seem to
be unable to communicate with the ui process (through unix send() on a
unix socket). The ui process cannot get to know how to contact the
webprocess, though the new WebPage is reflected in the WebView
page-id.

I'll be glad to supply more information and logs if needed. Can you
spot if surf is doing something wrong? or perhaps "process suspension"
stops the IPC messaging somehow

-- 
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/20240813/f22d5ca9/attachment.htm>


More information about the webkit-unassigned mailing list