[epiphany] ephy-web-view: do not save history visits for no-show-addresses



commit 9d8795a0919ed771bf380630a4a034e0e6d37164
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu Sep 13 18:32:33 2012 +0300

    ephy-web-view: do not save history visits for no-show-addresses
    
    We don't show these addresses in the location entry because they are
    very special to epiphany. There is no reason to store them in the
    history.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683796

 embed/ephy-web-view.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 82b8554..a621514 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2140,6 +2140,9 @@ load_changed_cb (WebKitWebView *web_view,
     loading_uri = webkit_web_view_get_uri (web_view);
     g_signal_emit_by_name (view, "new-document-now", loading_uri);
 
+    if (ephy_embed_utils_is_no_show_address (loading_uri))
+      ephy_web_view_freeze_history (view);
+
     if (priv->address == NULL || priv->address[0] == '\0')
       ephy_web_view_set_address (view, loading_uri);
 
@@ -2296,6 +2299,9 @@ load_status_cb (WebKitWebView *web_view,
 
     g_signal_emit_by_name (view, "new-document-now", loading_uri);
 
+    if (ephy_embed_utils_is_no_show_address (loading_uri))
+      ephy_web_view_freeze_history (view);
+
     if (priv->address == NULL || priv->address[0] == '\0')
       ephy_web_view_set_address (view, loading_uri);
 



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