Re: Webkit2 porting
- From: Robert Schroll <rschroll gmail com>
- To: Michael Catanzaro <mcatanzaro gnome org>
- Cc: desktop-devel-list <desktop-devel-list gnome org>
- Subject: Re: Webkit2 porting
- Date: Wed, 15 Oct 2014 02:08:24 -0400
On Tue, Oct 14, 2014 at 10:17 PM, Michael Catanzaro
<mcatanzaro gnome org> wrote:
Anyway, Robert and I spent yesterday morning learning how to get a
very
simple example of UI process <-> web extension IPC working via D-Bus.
(Well, mostly working: Robert discovered today that our example D-Bus
signal is broken....) The plan was for him to publish the code on
GitHub
soon.
I've put the example up on Github:
https://github.com/rschroll/webkitdom. The README could use some work
explaining what's going on, but it's late and I'm tired. In short, the
master branch shows how things used to work with the old API, and the
javascript and extension branches show two ways to get things to work
with the new API. The javascript method is a bit simpler, but may not
scale (and requires javascript); the extension uses the web extension
with IPC over DBus. This latter example isn't working with DOM events,
as I can't figure out how to use
WebKit.DOM.EventTarget.add_event_listener_with_closure() from Vala.
Any help here appreciated.
(Michael, though the code doesn't demonstrate it, signaling from the
Server back into the UI process is working in this example, despite it
not working in your example. Dunno why.)
I'll try to clean up the explanations a bit. I appreciate any feedback
and corrections y'all can give.
Thanks,
Robert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]