<div dir="ltr">On Tue, Apr 2, 2013 at 2:17 PM, Manuel Quiñones <span dir="ltr"><<a href="mailto:manuq@laptop.org" target="_blank">manuq@laptop.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2013/3/23 Daniel Narvaez <<a href="mailto:dwnarvaez@gmail.com">dwnarvaez@gmail.com</a>><br>
><br>
> Hey,<br>
><br>
> Lionel's enyo-activity uses the webkit console-message signal to send<br>
> messages from the browser to the web page. This is a bit of an hack.<br>
> Also the signal is not available in webkit2 (though it might be added<br>
> at some point).<br>
><br>
> This kind of communication is complicated in webkit2 because browser<br>
> and page are two separated processes. I figured out how to do it, and<br>
> I thought it would be worth to send a note to the mailing list for<br>
> future memory. It should be useful for the html activities framework<br>
><br>
> This is how the qt port registers a navigator.qt.postMessage() method:<br>
><br>
> <a href="https://trac.webkit.org/browser/trunk/Source/WebKit2/WebProcess/qt/QtBuiltinBundlePage.cpp" target="_blank">https://trac.webkit.org/browser/trunk/Source/WebKit2/WebProcess/qt/QtBuiltinBundlePage.cpp</a><br>
><br>
> This code is part of an extension. It should be possible to write an<br>
> extension for webkitgtk as epiphany is doing<br>
><br>
> <a href="https://git.gnome.org/browse/epiphany/tree/embed/web-extension" target="_blank">https://git.gnome.org/browse/epiphany/tree/embed/web-extension</a><br>
><br>
> A postMessage method with a message-received signal is something we<br>
> might want to upstream, but we don't necessarily need to do so, as far<br>
> as I can tell it can be implemented with the current webkit2gtk.<br>
<br>
We also need to think when to switch Browse activity to webkit2.<br></blockquote><div><br></div><div>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<br>
<br>All versions here:<br><a href="http://alt.fedoraproject.org/pub/alt/stage/">http://alt.fedoraproject.org/pub/alt/stage/</a><br><br></div><div>Latest one here:<br><a href="http://alt.fedoraproject.org/pub/alt/stage/19-Alpha-TC3/Live/x86_64/Fedora-19-Alpha-TC3-x86_64-Live-SoaS.iso">http://alt.fedoraproject.org/pub/alt/stage/19-Alpha-TC3/Live/x86_64/Fedora-19-Alpha-TC3-x86_64-Live-SoaS.iso</a><br>
<br></div><div>Peter<br></div></div></div></div>