[Webkit-unassigned] [Bug 123578] New: [RFE] API to create a page with a given JS context
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 31 11:04:36 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=123578
Summary: [RFE] API to create a page with a given JS context
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Gtk
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mathstuf at gmail.com
It would be nice to be able to support some JS which can be given control over the main view. Currently, WebKit makes the entire JS setup itself. It would be nice to be able to do something like (in WebKit1 at least):
webkit_web_view_load_with_context (WebKitWebView *view, JSGlobalContextRef ref, const gchar *obj_name, const gchar *content, const gchar *content_uri, const gchar *base_uri);
where the page's JS context is created in a group with 'ref', and the context's global object is added to the page as 'obj_name'. This would allow uzbl to let JS plugins interact directly with a page so that things like about:config while also not being interfered with by content from the network. I'd be OK with pages loaded this way not being able to contact the network (though this is also possible from the "decide-policy" signal. I'm not sure what the API from the extension would look like (since that's where this would need to live for WebKit2).
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list