Updating branch refs/heads/master to 2e35f1718be40d0f1f9b90475ef959d9964f24ac (commit) from aeccc9e9ac22bb9fe2be164b58fdd0150bad9ecf (commit)
commit 2e35f1718be40d0f1f9b90475ef959d9964f24ac Author: Christian Dywan <christ...@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) _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits