Never filter the main page itself with adblock

Fixes: https://bugs.launchpad.net/midori/+bug/706862
This commit is contained in:
Christian Dywan 2011-01-30 19:25:50 +01:00
parent aeccc9e9ac
commit 2e35f1718b

View file

@ -752,6 +752,10 @@ adblock_resource_request_starting_cb (WebKitWebView* web_view,
const gchar* req_uri; const gchar* req_uri;
const char *page_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); req_uri = webkit_network_request_get_uri (request);
if (!req_uri) if (!req_uri)