[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-97-g0ae84961c
paul at claws-mail.org
paul at claws-mail.org
Mon May 17 17:59:14 CEST 2021
The branch, gtk3 has been updated
via 0ae84961ce30b9049aebb1bebe3c37bd030d282e (commit)
from d6883c43702276c4040eb5692d5e00cdfec78455 (commit)
Summary of changes:
src/plugins/fancy/fancy_viewer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 0ae84961ce30b9049aebb1bebe3c37bd030d282e
Author: Steve Randall <srandall52 at sbcglobal.net>
Date: Mon May 10 18:12:42 2021 -0500
Fancy plugin: only open external links on click.
Signed-off-by: paul <paul at claws-mail.org>
diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
index 9f32868d7..92a82af70 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -459,7 +459,8 @@ navigation_policy_cb (WebKitWebView *web_view,
} else if (!strncmp(viewer->cur_link, "file://", 7) || !strcmp(viewer->cur_link, "about:blank")) {
debug_print("local navigation request ACCEPTED\n");
webkit_policy_decision_use(policy_decision);
- } else if (viewer->override_prefs_external) {
+ } else if (viewer->override_prefs_external &&
+ webkit_navigation_action_get_navigation_type(navigation_action) == WEBKIT_NAVIGATION_TYPE_LINK_CLICKED) {
debug_print("remote navigation request OPENED\n");
open_uri(viewer->cur_link, prefs_common_get_uri_cmd());
webkit_policy_decision_ignore(policy_decision);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list