[Xfce4-commits] <midori:master> Only no adblock if main frame in provisional state

Christian Dywan noreply at xfce.org
Tue Feb 1 01:54:04 CET 2011


Updating branch refs/heads/master
         to 90e11d3713f68fece0b28cc2a1bda3dde8aa3303 (commit)
       from 2d3aab8d8a7f7cdde75c2d8d85cfead955b30030 (commit)

commit 90e11d3713f68fece0b28cc2a1bda3dde8aa3303
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Feb 1 01:52:39 2011 +0100

    Only no adblock if main frame in provisional state

 extensions/adblock.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/extensions/adblock.c b/extensions/adblock.c
index 6ae7adc..ff08b67 100644
--- a/extensions/adblock.c
+++ b/extensions/adblock.c
@@ -753,7 +753,8 @@ adblock_resource_request_starting_cb (WebKitWebView*         web_view,
     const char *page_uri;
 
     /* Never filter the main page itself */
-    if (web_frame == webkit_web_view_get_main_frame (web_view))
+    if (web_frame == webkit_web_view_get_main_frame (web_view)
+     && webkit_web_frame_get_load_status (web_frame) == WEBKIT_LOAD_PROVISIONAL)
         return;
 
     req_uri = webkit_network_request_get_uri (request);



More information about the Xfce4-commits mailing list