Never filter the main page itself with adblock
Fixes: https://bugs.launchpad.net/midori/+bug/706862
This commit is contained in:
parent
aeccc9e9ac
commit
2e35f1718b
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue