RESOLVED FIXED 116652
[GTK][WebKit2] Add API alternative for webkit_web_frame_get_global_context()
https://bugs.webkit.org/show_bug.cgi?id=116652
Summary [GTK][WebKit2] Add API alternative for webkit_web_frame_get_global_context()
Jiří Janoušek
Reported 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?
Attachments
Martin Robinson
Comment 1 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.
Jiří Janoušek
Comment 2 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?
Martin Robinson
Comment 3 2013-05-27 09:25:59 PDT
Sorry. I misread the original bug report. We do want this feature.
Jiří Janoušek
Comment 5 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.
Note You need to log in before you can comment on or make changes to this bug.