diff options
author | Xan Lopez <xan@igalia.com> | 2012-06-27 01:36:26 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-06-27 01:38:29 +0800 |
commit | e41411e1077d18b0ba1c0abda97298cf1f9b8304 (patch) | |
tree | 03ab396ed8aeb4679c74cb9f93a115d3f3df7627 | |
parent | 7b1568bac6362d79a5afaab1da90c46d0b36afd2 (diff) | |
download | gsoc2013-epiphany-e41411e1077d18b0ba1c0abda97298cf1f9b8304.tar gsoc2013-epiphany-e41411e1077d18b0ba1c0abda97298cf1f9b8304.tar.gz gsoc2013-epiphany-e41411e1077d18b0ba1c0abda97298cf1f9b8304.tar.bz2 gsoc2013-epiphany-e41411e1077d18b0ba1c0abda97298cf1f9b8304.tar.lz gsoc2013-epiphany-e41411e1077d18b0ba1c0abda97298cf1f9b8304.tar.xz gsoc2013-epiphany-e41411e1077d18b0ba1c0abda97298cf1f9b8304.tar.zst gsoc2013-epiphany-e41411e1077d18b0ba1c0abda97298cf1f9b8304.zip |
ephy-web-view: stop using notify::uri in WebKit2
In WebKit2 notify::uri will come with the requested URI even
before/during the STARTED status, so we cannot use it in the same way
as we were using it in WebKit1, where the semantincs were different.
-rw-r--r-- | embed/ephy-web-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index dd13195b7..a1e7b7331 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -1188,6 +1188,9 @@ 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; @@ -1201,6 +1204,7 @@ uri_changed_cb (WebKitWebView *web_view, ephy_web_view_set_address (EPHY_WEB_VIEW (web_view), uri); g_free (uri); +#endif } #ifdef HAVE_WEBKIT2 |