Fixed wrong client to webpage relation #349.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 11 May 2017 22:08:45 +0000 (00:08 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 11 May 2017 22:24:08 +0000 (00:24 +0200)
commit70b172403a3d97b25f039db658a0b38f495233a2
tree057781194f96ceb35d877900f682e7c6d4cc6c2c
parentc5412c9756d7ff09e0da728e2794cd0cc412383e
Fixed wrong client to webpage relation #349.

In case a related webview is created. The relation between webextensions
web page and the client in the ui process where mismatched. In fact the
relation was correct, but when a dbus call was fired from ui to
webextension, the webextension used the last created web page to run
javascript in or to focus input fields.
This patch adds the page_id of the web page to the dbus calls that
target a specific web page. So that th webextension can get the right
page by this id to use to answer the call.
Also the communication from webextension to ui lagged this essential
information. So that a click to a editable filed in a related webview
all related instances into input mode switched.
src/ext-proxy.c
src/main.c
src/main.h
src/util.c
src/webextension/ext-main.c