From 6a9b75a4a057d5f7f7db11b8b287b8777dc5204e Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 7 Mar 2012 19:56:08 +0100 Subject: 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 file changed, 3 insertions(+) diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index de1595085..a58e83f50 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); -- cgit v1.2.3