[Xfce4-commits] <midori:master> Never filter the main page itself with adblock
Christian Dywan
noreply at xfce.org
Sun Jan 30 19:28:01 CET 2011
Updating branch refs/heads/master
to 2e35f1718be40d0f1f9b90475ef959d9964f24ac (commit)
from aeccc9e9ac22bb9fe2be164b58fdd0150bad9ecf (commit)
commit 2e35f1718be40d0f1f9b90475ef959d9964f24ac
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Jan 30 19:25:50 2011 +0100
Never filter the main page itself with adblock
Fixes: https://bugs.launchpad.net/midori/+bug/706862
extensions/adblock.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/extensions/adblock.c b/extensions/adblock.c
index 12a68e5..6ae7adc 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)
More information about the Xfce4-commits
mailing list