[epiphany] ephy-embed: do not add the homepage (about:blank) to the history



commit 6a9b75a4a057d5f7f7db11b8b287b8777dc5204e
Author: Xan Lopez <xan igalia com>
Date:   Wed Mar 7 19:56:08 2012 +0100

    ephy-embed: do not add the homepage (about:blank) to the history
    
    Don't do it when it's loaded automatically through NewTab or
    NewWindow, but do it if the user actually types the URI.

 embed/ephy-embed.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index de15950..a58e83f 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -331,6 +331,9 @@ load_status_changed_cb (WebKitWebView *view,
 
     restore_zoom_level (embed, uri);
 
+    if (ephy_web_view_is_loading_homepage (EPHY_WEB_VIEW (view)))
+      return;
+
     /* TODO: move the normaliztion down to the history service? */
     if (g_str_has_prefix (uri, EPHY_ABOUT_SCHEME))
       history_uri = g_strdup_printf ("about:%s", uri + EPHY_ABOUT_SCHEME_LEN + 1);



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