[epiphany] ephy-window: Fix decide_navigation_policy check for web schemes



commit 46b6774f3867c8b76cfc3cb59296667fe6000bc3
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Thu Sep 3 16:22:29 2020 +0200

    ephy-window: Fix decide_navigation_policy check for web schemes
    
    Fix check for recursive epiphany prevention so that we can open system
    supported web schemes.
    
    Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/1324

 src/ephy-window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 57b327745..d6adfb24e 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2109,7 +2109,7 @@ decide_navigation_policy (WebKitWebView            *web_view,
     if (soup_uri) {
       g_autoptr (GAppInfo) app_info = g_app_info_get_default_for_uri_scheme (soup_uri->scheme);
 
-      if (app_info && g_str_has_prefix (g_app_info_get_id (app_info), "org.gnome.Epiphany")) {
+      if (app_info && !g_str_has_prefix (g_app_info_get_id (app_info), "org.gnome.Epiphany")) {
         g_autoptr (GError) error = NULL;
 
         gtk_show_uri_on_window (GTK_WINDOW (window), uri, GDK_CURRENT_TIME, &error);


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