aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2013-05-21 00:06:01 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2013-05-21 00:06:01 +0800
commit001b082f9d8afb3703aa0117c469bfa6e850c326 (patch)
tree922d9fd85ae9ec1ddae9ee2ee150607bf7bc6d58
parent92a0c59e302f75d46160a1f00bebdd48ebaa5372 (diff)
downloadgsoc2013-epiphany-001b082f9d8afb3703aa0117c469bfa6e850c326.tar
gsoc2013-epiphany-001b082f9d8afb3703aa0117c469bfa6e850c326.tar.gz
gsoc2013-epiphany-001b082f9d8afb3703aa0117c469bfa6e850c326.tar.bz2
gsoc2013-epiphany-001b082f9d8afb3703aa0117c469bfa6e850c326.tar.lz
gsoc2013-epiphany-001b082f9d8afb3703aa0117c469bfa6e850c326.tar.xz
gsoc2013-epiphany-001b082f9d8afb3703aa0117c469bfa6e850c326.tar.zst
gsoc2013-epiphany-001b082f9d8afb3703aa0117c469bfa6e850c326.zip
ephy-web-view: don't store page title in history when it's frozen
Otherwise we end up saving titles for error pages.
-rw-r--r--embed/ephy-web-view.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 30df94636..1b414eaf5 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -770,18 +770,19 @@ title_changed_cb (WebKitWebView *web_view,
{
const char *uri;
char *title;
- EphyHistoryService *history = EPHY_WEB_VIEW (web_view)->priv->history_service;
+ EphyWebView *webview = EPHY_WEB_VIEW (web_view);
+ EphyHistoryService *history = webview->priv->history_service;
uri = webkit_web_view_get_uri (web_view);
g_object_get (web_view, "title", &title, NULL);
- ephy_web_view_set_title (EPHY_WEB_VIEW (web_view), title);
+ ephy_web_view_set_title (webview, title);
if (!title && uri)
title = get_title_from_address (uri);
- if (uri && title)
+ if (uri && title && !ephy_web_view_is_history_frozen (webview))
ephy_history_service_set_url_title (history, uri, title, NULL, NULL, NULL);
g_free (title);