diff options
-rw-r--r-- | embed/ephy-web-view.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 10f4ae8ff..70444bc17 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -2218,12 +2218,16 @@ load_error_cb (WebKitWebView *web_view, _ephy_web_view_set_icon_address (view, NULL); } else { - const gchar* uri; + EphyWebViewPrivate *priv = view->priv; + + if (priv->expire_address_now) { + const gchar* prev_uri; - uri = webkit_web_view_get_uri (web_view); + prev_uri = webkit_web_view_get_uri (web_view); - ephy_web_view_set_typed_address (view, NULL); - ephy_web_view_set_address (view, uri); + ephy_web_view_set_typed_address (view, NULL); + ephy_web_view_set_address (view, prev_uri); + } } return FALSE; |