From b5a7d97b68324304eb7f3edeafbe29733dcc2d6d Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Thu, 28 Jun 2012 12:40:46 +0200 Subject: ephy-web-view: fix think-o in ephy_web_view_location_changed Do not re-set the address we already have, use the location we get as a parameter, which comes from the same place (WebKit layer) than ephy_web_view_get_location used to get it from. --- embed/ephy-web-view.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'embed') diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 38fcdb95f..a24454272 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -3198,12 +3198,9 @@ ephy_web_view_location_changed (EphyWebView *view, g_free (new_address); ephy_web_view_set_title (view, EMPTY_PAGE); } else { - const char *view_address; - - /* we do this to get rid of an eventual password in the URL */ - view_address = ephy_web_view_get_address (view); - ephy_web_view_set_address (view, view_address); - ephy_web_view_set_loading_title (view, view_address, TRUE); + /* We do this to get rid of an eventual password in the URL. */ + ephy_web_view_set_address (view, location); + ephy_web_view_set_loading_title (view, location, TRUE); } ephy_web_view_set_link_message (view, NULL); -- cgit