[Sugar-devel] Messages from the page to the browser in webkit2

Peter Robinson pbrobinson at gmail.com
Tue Apr 2 09:19:56 EDT 2013


On Tue, Apr 2, 2013 at 2:17 PM, Manuel Quiñones <manuq at laptop.org> wrote:

> 2013/3/23 Daniel Narvaez <dwnarvaez at gmail.com>
> >
> > Hey,
> >
> > Lionel's enyo-activity uses the webkit console-message signal to send
> > messages from the browser to the web page. This is a bit of an hack.
> > Also the signal is not available in webkit2 (though it might be added
> > at some point).
> >
> > This kind of communication is complicated in webkit2 because browser
> > and page are two separated processes. I figured out how to do it, and
> > I thought it would be worth to send a note to the mailing list for
> > future memory. It should be useful for the html activities framework
> >
> > This is how the qt port registers a navigator.qt.postMessage() method:
> >
> >
> https://trac.webkit.org/browser/trunk/Source/WebKit2/WebProcess/qt/QtBuiltinBundlePage.cpp
> >
> > This code is part of an extension. It should be possible to write an
> > extension for webkitgtk as epiphany is doing
> >
> > https://git.gnome.org/browse/epiphany/tree/embed/web-extension
> >
> > A postMessage method with a message-received signal is something we
> > might want to upstream, but we don't necessarily need to do so, as far
> > as I can tell it can be implemented with the current webkit2gtk.
>
> We also need to think when to switch Browse activity to webkit2.
>

It's enabled in F-19/gnome 3.8 I believe so if you want to start playing
the SoaSv9 Alpha Test composes in a VM would be an excellent spot to start
:-D

All versions here:
http://alt.fedoraproject.org/pub/alt/stage/

Latest one here:
http://alt.fedoraproject.org/pub/alt/stage/19-Alpha-TC3/Live/x86_64/Fedora-19-Alpha-TC3-x86_64-Live-SoaS.iso

Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130402/b6ff945d/attachment.html>


More information about the Sugar-devel mailing list