[epiphany] window: Don't depend on WebKit trunk



commit 4aebee0e41d5c9e71340d9da7d2afb4ed5822a26
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Tue Oct 24 13:07:39 2017 -0500

    window: Don't depend on WebKit trunk
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788845

 src/ephy-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 5c6883f..ffdc29a 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1980,6 +1980,7 @@ decide_navigation_policy (WebKitWebView            *web_view,
       } else if (!ephy_embed_shell_uri_looks_related_to_app (ephy_embed_shell_get_default (),
                                                              ephy_web_view_get_last_committed_address 
(EPHY_WEB_VIEW (web_view)))) {
         return FALSE;
+#if WEBKIT_CHECK_VERSION(2, 19, 1)
       } else if (webkit_navigation_action_is_redirect (navigation_action)) {
         EphyHeaderBar *header_bar;
         EphyTitleWidget *title_widget;
@@ -1996,6 +1997,7 @@ decide_navigation_policy (WebKitWebView            *web_view,
         title_widget = ephy_header_bar_get_title_widget (header_bar);
         g_object_notify (G_OBJECT (title_widget), "address");
         return FALSE;
+#endif
       }
 
       /* This does not look like a part of the application itself, so open it in a new tab


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