[Webkit-unassigned] [Bug 201492] Keeps running obsolete WebProcess-es for too long

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 6 01:09:03 PDT 2019


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

--- Comment #12 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to Milan Crha from comment #5)
> One problem I face with this process cache I found right now: The
> WebExtension evolution defines has sever D-Bus methods which expect output,
> like:
> 
>     <method name='GetSelectionContentText'>
>       <arg type='t' name='page_id' direction='in'/>
>       <arg type='s' name='text_content' direction='out'/>
>     </method>
> 
> Which basically calls GetSelectionContentText() with a page_id and expects a
> text of the selection as a return value. Being there multiple WebProcess-es
> having the same page_id, while only one being the one with currently viewed
> content in the WebView, how do I distinguish which it is, when the processes
> are just running in the background, with my Web Extension loaded and
> connected to my D-Bus connection?

We should review all the usage of injected bundle and dom bindings in evo for the next release too. Because GetSelectionContentText could probably be implemented a lot easier (and more efficient) using webkit_web_view_run_javascript(). You don't need any DBus call, not to worry about page IDs and processes.

-- 
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/20190906/44367757/attachment.html>


More information about the webkit-unassigned mailing list