Re: Webkit2 porting



Robert Schroll <rschroll gmail com> writes:

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.

I don't know much about bindings, but I added the _with_closure()
variants to make the API introspectable, and I remember I tried it with
python and it worked. See https://bugs.webkit.org/show_bug.cgi?id=77835

(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



_______________________________________________
desktop-devel-list mailing list
desktop-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/desktop-devel-list

-- 
Carlos Garcia Campos
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462

Attachment: pgpg5n8xuedS7.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]