[evolution/wip/webkit2] EWebView - Clicking on image wrapped in link won't open the link in the external browser



commit 8a033737f97316011ffae2fbb419f81b34445e3d
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Jul 13 12:15:51 2016 +0200

    EWebView - Clicking on image wrapped in link won't open the link in the external browser

 e-util/e-web-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 4af68b0..ee58676 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -600,7 +600,8 @@ web_view_decide_policy_cb (EWebView *web_view,
        WebKitURIRequest *request;
        const gchar *uri, *view_uri;
 
-       if (type != WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION)
+       if (type != WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION &&
+           type != WEBKIT_POLICY_DECISION_TYPE_NEW_WINDOW_ACTION)
                return FALSE;
 
        navigation_decision = WEBKIT_NAVIGATION_POLICY_DECISION (decision);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]