WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
123553
[RFE] Communication channel between extension and browser
https://bugs.webkit.org/show_bug.cgi?id=123553
Summary
[RFE] Communication channel between extension and browser
Ben Boeckel
Reported
2013-10-30 20:35:44 PDT
I'm having an issue with making an extension part of uzbl. There's no way to ask WebKitGtk to set up a communication channel between the extension and the main process. I could set one up, but I'm not sure how best to due so (environment variables + abstract UNIX sockets seem to be the best way that I can think of; there's DBus, but that would still rely on environment variables). It'd be nice if there were an API that an extension could call similar to: GIOChannel *webkit_extension_connect (WebKitWebExtension *extension, const gchar *name); where there is a "extension-connected" signal on WebKitWebView: gboolean extension_connected_cb (WebKitWebView *view, GIOChannel *chan, const gchar *name, gpointer data); where TRUE would imply that the connection should be kept and FALSE means that the connection should be torn down (and that the main process has not held onto the GIOChannel itself).
Attachments
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2014-03-04 00:07:38 PST
In epiphany we use dbus without environment variables. There's API to pass any data from the UI process to the extensions when they are initialized.
Ben Boeckel
Comment 2
2014-03-04 07:43:51 PST
It's too much too hope for a way to send a file descriptor over it isn't it? :) I guess I could pass an abstract socket path over it...
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug