WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
123578
[RFE] API to create a page with a given JS context
https://bugs.webkit.org/show_bug.cgi?id=123578
Summary
[RFE] API to create a page with a given JS context
Ben Boeckel
Reported
2013-10-31 11:03:22 PDT
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).
Attachments
Add attachment
proposed patch, testcase, etc.
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