[epiphany] ephy-web-view: don't store page title in history when it's frozen
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-web-view: don't store page title in history when it's frozen
- Date: Mon, 20 May 2013 16:55:24 +0000 (UTC)
commit 001b082f9d8afb3703aa0117c469bfa6e850c326
Author: Claudio Saavedra <csaavedra igalia com>
Date: Mon May 20 19:06:01 2013 +0300
ephy-web-view: don't store page title in history when it's frozen
Otherwise we end up saving titles for error pages.
embed/ephy-web-view.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 30df946..1b414ea 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]