[epiphany] Using webkit_web_view_load_request() after webkit_uri_request_set_uri() in WK2



commit 412c09da3b24d54ffc2afeef4ccab64a455f86c2
Author: Manuel Rego Casasnovas <rego igalia com>
Date:   Sat Mar 9 19:41:27 2013 +0100

    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

 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 b375979..a5346b0 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));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]