Re: Webkit2 porting
- From: Robert Schroll <rschroll gmail com>
- To: Adrian Perez de Castro <aperez igalia com>
- Cc: desktop-devel-list <desktop-devel-list gnome org>
- Subject: Re: Webkit2 porting
- Date: Thu, 16 Oct 2014 12:01:40 -0400
On Thu, Oct 16, 2014 at 9:53 AM, Adrian Perez de Castro
<aperez igalia com> wrote:
I have just gone over the README:
“messages are passed back to the UI through the title of the
WebView”
...and this, while it works and allows to receive updates from the web
process to the UI side by connecting to title changes, is certainly
cringeworthy.
Yeah, it's quite a kludge. I was considering spinning up a HTTP server
and making XLMHttpRequests from Javascript to communicate with the UI
process, but that seemed like a lot of work.
Perhaps a better solution would be to connect to the
WebView.script_dialog signal and pass information out through that
channel. The effect would be the same, but it feels less dirty to me.
Of course,
As a matter of fact, I have an almost-ready patch to allow to send
messages from JavaScript (in the web process) to the UI process [1].
That, along with the recently-added support for script injection [2]
will make it much easier to solve the inter-process communication for
a lot of use cases.
This would be great. If you let me know when this makes it into
WebKitGTK, I'll update the example to use it.
Thanks,
Robert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]