[Webkit-unassigned] [Bug 164061] [GTK] Initial implementation of JavaScriptCore glib bindings
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 5 22:42:14 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=164061
Michael Gratton <mike at vee.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mike at vee.net
--- Comment #15 from Michael Gratton <mike at vee.net> ---
This would be great to have for the WK2 port for Geary, which uses the JSC API both from WebKitJavascriptResult on the app side (and for unit tests) and from a WebKitWebExtension on the WebProcess side, so thanks heaps for working on it!
FWIW, from the app's perspective, the patch takes care of all the actual use cases, so as long as there's also a bridge from WebKitJavascriptResult to this API, it looks like it would be fine as-is.
It falls a little bit short for the web extension however: We are obtaining a JSGlobalContextRef from webkit_frame_get_javascript_global_context(), and are calling JSEvaluateScript on it to execute JS in the web process. This is a hard requirement at the moment.
Some other things that would be nice to have in some ideal future include: JS exception handling, being able to cast arbitrary JSValue objects to strings (e.g. by calling JSValueToStringCopy on them) â very handy for debugging, JSCheckScriptSyntax support for unit testing, and I have been experimenting with JSObjectMakeFunction, JSObjectHasProperty, JSObjectHasProperty and JSObjectGetProperty at various times, also.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170106/f939c5e1/attachment.html>
More information about the webkit-unassigned
mailing list