aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Rego Casasnovas <rego@igalia.com>2013-03-10 02:41:27 +0800
committerXan Lopez <xan@igalia.com>2013-03-12 02:27:11 +0800
commit412c09da3b24d54ffc2afeef4ccab64a455f86c2 (patch)
tree3cc1836868b16b7b6166c1017cd36e958adbd938
parentedf2a97a36e032b422bed88371e598356908b699 (diff)
downloadgsoc2013-epiphany-412c09da3b24d54ffc2afeef4ccab64a455f86c2.tar
gsoc2013-epiphany-412c09da3b24d54ffc2afeef4ccab64a455f86c2.tar.gz
gsoc2013-epiphany-412c09da3b24d54ffc2afeef4ccab64a455f86c2.tar.bz2
gsoc2013-epiphany-412c09da3b24d54ffc2afeef4ccab64a455f86c2.tar.lz
gsoc2013-epiphany-412c09da3b24d54ffc2afeef4ccab64a455f86c2.tar.xz
gsoc2013-epiphany-412c09da3b24d54ffc2afeef4ccab64a455f86c2.tar.zst
gsoc2013-epiphany-412c09da3b24d54ffc2afeef4ccab64a455f86c2.zip
Using webkit_web_view_load_request() after webkit_uri_request_set_uri() in WK2
As now we are able to modify the request with webkit_uri_request_set_uri() it is better to use webkit_web_view_load_request() than webkit_web_view_load_uri(). This will allow to call ephy_web_view_load_request() with a modified request. https://bugzilla.gnome.org/show_bug.cgi?id=695446
-rw-r--r--embed/ephy-web-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index b37597991..a5346b047 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2912,8 +2912,9 @@ ephy_web_view_load_request (EphyWebView *view,
effective_url = ephy_web_view_normalize_or_autosearch_url (view, url);
webkit_uri_request_set_uri (request, effective_url);
- webkit_web_view_load_uri (WEBKIT_WEB_VIEW (view), effective_url);
g_free (effective_url);
+
+ webkit_web_view_load_request (WEBKIT_WEB_VIEW (view), request);
#else
g_return_if_fail (WEBKIT_IS_NETWORK_REQUEST (request));