diff options
author | Daniel Carl <danielcarl@gmx.de> | 2017-05-12 00:08:45 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2017-05-12 00:24:08 +0200 |
commit | 70b172403a3d97b25f039db658a0b38f495233a2 (patch) | |
tree | 057781194f96ceb35d877900f682e7c6d4cc6c2c /src/util.c | |
parent | c5412c9756d7ff09e0da728e2794cd0cc412383e (diff) |
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.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -561,6 +561,10 @@ gboolean util_filename_fill_completion(Client *c, GtkListStore *store, const cha return found; } +/** + * Returns the script result as string. + * Returned string must be freed by g_free. + */ char *util_js_result_as_string(WebKitJavascriptResult *result) { JSValueRef value; |