aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-03-08 02:56:08 +0800
committerXan Lopez <xan@igalia.com>2012-03-08 02:57:21 +0800
commit6a9b75a4a057d5f7f7db11b8b287b8777dc5204e (patch)
tree8dda993edaf332eee86422cdf27a91e3b3671cb8
parent603a9503df75635a63a5dc42454a9a61bcc518c2 (diff)
downloadgsoc2013-epiphany-6a9b75a4a057d5f7f7db11b8b287b8777dc5204e.tar
gsoc2013-epiphany-6a9b75a4a057d5f7f7db11b8b287b8777dc5204e.tar.gz
gsoc2013-epiphany-6a9b75a4a057d5f7f7db11b8b287b8777dc5204e.tar.bz2
gsoc2013-epiphany-6a9b75a4a057d5f7f7db11b8b287b8777dc5204e.tar.lz
gsoc2013-epiphany-6a9b75a4a057d5f7f7db11b8b287b8777dc5204e.tar.xz
gsoc2013-epiphany-6a9b75a4a057d5f7f7db11b8b287b8777dc5204e.tar.zst
gsoc2013-epiphany-6a9b75a4a057d5f7f7db11b8b287b8777dc5204e.zip
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.
-rw-r--r--embed/ephy-embed.c3
1 files changed, 3 insertions, 0 deletions
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);