From: Christian Dywan Date: Sun, 30 Jan 2011 18:25:50 +0000 (+0100) Subject: Never filter the main page itself with adblock X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e35f1718be40d0f1f9b90475ef959d9964f24ac;p=midori Never filter the main page itself with adblock Fixes: https://bugs.launchpad.net/midori/+bug/706862 --- diff --git a/extensions/adblock.c b/extensions/adblock.c index 12a68e5e..6ae7adc3 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -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)