Bug 116652 - [GTK][WebKit2] Add API alternative for webkit_web_frame_get_global_context()
Summary: [GTK][WebKit2] Add API alternative for webkit_web_frame_get_global_context()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-23 00:47 PDT by Jiří Janoušek
Modified: 2013-10-17 22:46 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiří Janoušek 2013-05-23 00:47:21 PDT
I use webkit_web_frame_get_global_context() to get JavaScriptCore context to create a bridge between frame's JavaScript environment and my application core. Since WebKitWebFrame is gone and no alternative way how to get frame's JavaScriptCore context hasn't been introduced yet, I cannot port my app to WebKit2Gtk.

Would be possible to provide similar function in WebKit2Gtk? Probably in the new WebKitWebPage class?
Comment 1 Martin Robinson 2013-05-26 17:41:49 PDT
Sorry, this is impossible since the DOM and JavaScript context are in another process altogether. We would like to expose this kind of API in the WebExtension though.
Comment 2 Jiří Janoušek 2013-05-27 04:54:45 PDT
> We would like to expose this kind of API in the WebExtension though.

That's exactly what I suggested, adding the API to WebKitWebPage class
that lives in the same process as WebKitWebExtension, the DOM and
JavaScript context. Or did I misunderstand something?
Comment 3 Martin Robinson 2013-05-27 09:25:59 PDT
Sorry. I misread the original bug report. We do want this feature.
Comment 5 Jiří Janoušek 2013-10-17 22:46:55 PDT
> You mean this?

Yes, that's the API I need. Big thanks to anyone involved in its implementation.