]> spindle.queued.net Git - midori/commitdiff
Never filter the main page itself with adblock
authorChristian Dywan <christian@twotoasts.de>
Sun, 30 Jan 2011 18:25:50 +0000 (19:25 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 30 Jan 2011 18:25:50 +0000 (19:25 +0100)
Fixes: https://bugs.launchpad.net/midori/+bug/706862
extensions/adblock.c

index 12a68e5edcdbbab9674e2697ae9bcab58b0c16a8..6ae7adc38e37be9f47161393bd2101512880a656 100644 (file)
@@ -752,6 +752,10 @@ adblock_resource_request_starting_cb (WebKitWebView*         web_view,
     const gchar* req_uri;
     const char *page_uri;
 
+    /* Never filter the main page itself */
+    if (web_frame == webkit_web_view_get_main_frame (web_view))
+        return;
+
     req_uri = webkit_network_request_get_uri (request);
 
     if (!req_uri)