aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-06-05 04:16:19 +0800
committerXan Lopez <xan@src.gnome.org>2008-06-05 04:16:19 +0800
commit5296c935bf1faa6da9c4893060b2642e9a69962b (patch)
tree9963c02ac59cfb0a08e26733e4e9d6850b43e9a7 /embed
parent282547494197ff2750eb98eb8c75f8f5ff7a196c (diff)
downloadgsoc2013-epiphany-5296c935bf1faa6da9c4893060b2642e9a69962b.tar
gsoc2013-epiphany-5296c935bf1faa6da9c4893060b2642e9a69962b.tar.gz
gsoc2013-epiphany-5296c935bf1faa6da9c4893060b2642e9a69962b.tar.bz2
gsoc2013-epiphany-5296c935bf1faa6da9c4893060b2642e9a69962b.tar.lz
gsoc2013-epiphany-5296c935bf1faa6da9c4893060b2642e9a69962b.tar.xz
gsoc2013-epiphany-5296c935bf1faa6da9c4893060b2642e9a69962b.tar.zst
gsoc2013-epiphany-5296c935bf1faa6da9c4893060b2642e9a69962b.zip
Add pages to ephy history on load-committed.
On load-started there's no guarantee that the page actually exists. svn path=/trunk/; revision=8272
Diffstat (limited to 'embed')
-rw-r--r--embed/webkit/webkit-embed.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c
index 43d839d1b..f902d9a76 100644
--- a/embed/webkit/webkit-embed.c
+++ b/embed/webkit/webkit-embed.c
@@ -218,6 +218,11 @@ webkit_embed_load_committed_cb (WebKitWebView *web_view,
const gchar* uri = webkit_web_frame_get_uri(web_frame);
ephy_base_embed_location_changed (EPHY_BASE_EMBED (embed),
uri);
+
+ ephy_history_add_page (WEBKIT_EMBED (embed)->priv->history,
+ uri,
+ FALSE,
+ FALSE);
}
static void
@@ -228,12 +233,6 @@ webkit_embed_load_started_cb (WebKitWebView *web_view,
WebKitEmbed *wembed = WEBKIT_EMBED (embed);
wembed->priv->load_state = WEBKIT_EMBED_LOAD_STARTED;
- if (wembed->priv->loading_uri)
- ephy_history_add_page (wembed->priv->history,
- wembed->priv->loading_uri,
- FALSE,
- FALSE);
-
update_load_state (wembed, web_view);
}