[Webkit-unassigned] [Bug 245059] Web extensions doesn't work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 12 11:14:37 PDT 2022


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

--- Comment #2 from Ashu Sharma <ashusharma.sigmadev at gmail.com> ---
Thanks for your reply,

Let me explain:

My application needed to handle many webkit process (Webkit::WebContext) on each different Gtk.Window, Since each window needed to access in DOM of its WebPage, I am using DBus to connect with its extension that is loaded by webkit, but DBus needed a unique name and path, so it will only work on one window, so to fix it i have created a another process named EventServer (.so) that loaded by my application before doing any webkit stuff, now when it creates a window, each window implements a different Webkit:WebContext, then this try to connect with EventServer (Note: There is only one EventServer process running in all application),

Meanwhile in the other side Webkit:WebExt is loaded by Webkit, it register its own random unique DBus name, Now when it Webkit:WebExt recieves _on_page_created by WebKit, it try to connect with EventServer through DBus, on the successful connection it calls a function of
EventServer and send its DBus Name, WebkitPage.PageId through params,
Now as EventServer recieved the information, it immediately try to connect with WebExt as it gets its DBus name and save the connection and
all data that it received. After a successful connection it also call a function of WebExt to do its init stuffs (i.e. adding event listeners like click) (the listeners are connected with EventServer functions) and also logs messages (all are good at this point),

Now on running the app with 3,4,5,6>.. windows, the clicks/any message are not recieved by 1-2... WebExt (_on_page_created are recieved successfully by these extensions also), but at the same time it works well with other windows.

The problem I guess is, maybe WebKit can't handle few its extensions or it lost signal while the system is busy, Or maybe its a linux kernel process bug.

By the way, I am on Ubuntu 19.04.

Anyway, as you said the api maybe go away, is there any other way to access to DOM? Or I needed to edit Webkit source a patched source of webkit2 for direct access to DOM exist?

-- 
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/20220912/4b48d5a8/attachment.htm>


More information about the webkit-unassigned mailing list