diff options
author | Manuel Rego Casasnovas <rego@igalia.com> | 2013-03-10 02:41:27 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2013-03-12 02:27:11 +0800 |
commit | 412c09da3b24d54ffc2afeef4ccab64a455f86c2 (patch) | |
tree | 3cc1836868b16b7b6166c1017cd36e958adbd938 /embed | |
parent | edf2a97a36e032b422bed88371e598356908b699 (diff) | |
download | gsoc2013-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
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-web-view.c | 3 |
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)); |