From 2e35f1718be40d0f1f9b90475ef959d9964f24ac Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 30 Jan 2011 19:25:50 +0100 Subject: [PATCH] Never filter the main page itself with adblock Fixes: https://bugs.launchpad.net/midori/+bug/706862 --- extensions/adblock.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.39.5