diff options
author | Xan Lopez <xan@igalia.com> | 2012-06-28 18:40:46 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-06-28 18:40:46 +0800 |
commit | b5a7d97b68324304eb7f3edeafbe29733dcc2d6d (patch) | |
tree | a4b7315585746aa20d164044ed89ba5eb99bd090 | |
parent | 9d3ed63884831f2db8956fe9a5d9d02a7291493f (diff) | |
download | gsoc2013-epiphany-b5a7d97b68324304eb7f3edeafbe29733dcc2d6d.tar gsoc2013-epiphany-b5a7d97b68324304eb7f3edeafbe29733dcc2d6d.tar.gz gsoc2013-epiphany-b5a7d97b68324304eb7f3edeafbe29733dcc2d6d.tar.bz2 gsoc2013-epiphany-b5a7d97b68324304eb7f3edeafbe29733dcc2d6d.tar.lz gsoc2013-epiphany-b5a7d97b68324304eb7f3edeafbe29733dcc2d6d.tar.xz gsoc2013-epiphany-b5a7d97b68324304eb7f3edeafbe29733dcc2d6d.tar.zst gsoc2013-epiphany-b5a7d97b68324304eb7f3edeafbe29733dcc2d6d.zip |
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.
-rw-r--r-- | embed/ephy-web-view.c | 9 |
1 files changed, 3 insertions, 6 deletions
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); |