diff options
-rw-r--r-- | embed/ephy-web-view.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index ffd3f68d8..83a89bf94 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -1162,15 +1162,17 @@ uri_changed_cb (WebKitWebView *web_view, GParamSpec *spec, gpointer data) { -#ifdef HAVE_WEBKIT2 - /* TODO: update adress when clicking anchor links. */ -#else char *uri; const char *current_address; g_object_get (web_view, "uri", &uri, NULL); current_address = ephy_web_view_get_address (EPHY_WEB_VIEW (web_view)); +#ifdef HAVE_WEBKIT2 + if (!EPHY_WEB_VIEW (web_view)->priv->is_loading) + return; +#endif + /* We need to check if we get URI notifications without going through the usual load process, as this can happen when changing location within a page */ @@ -1178,7 +1180,6 @@ uri_changed_cb (WebKitWebView *web_view, ephy_web_view_set_address (EPHY_WEB_VIEW (web_view), uri); g_free (uri); -#endif } #ifdef HAVE_WEBKIT2 |