]> spindle.queued.net Git - midori/commitdiff
Only no adblock if main frame in provisional state
authorChristian Dywan <christian@twotoasts.de>
Tue, 1 Feb 2011 00:52:39 +0000 (01:52 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 1 Feb 2011 00:52:39 +0000 (01:52 +0100)
extensions/adblock.c

index 6ae7adc38e37be9f47161393bd2101512880a656..ff08b672daadd7e9a763aaf8ff31b21300b46c4b 100644 (file)
@@ -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);