From cc0d81345ba8502636d6f83a1c09091313843a78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Forysiuk?= Date: Tue, 24 Jul 2012 22:12:40 +0200 Subject: [PATCH] Don't bother with adblocked items when saving pages with resources --- midori/midori-browser.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 62d5061a..5115bcf4 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1073,6 +1073,11 @@ midori_browser_save_resources (MidoriView* view, { WebKitWebResource* resource = WEBKIT_WEB_RESOURCE (list->data); GString* data = webkit_web_resource_get_data (resource); + + /* Resource could be adblocked, skip it in that case */ + if (!g_strcmp0 (webkit_web_resource_get_uri (resource), "about:blank")) + continue; + /* FIXME: mime type fallback should respect the resource's type */ gchar* sub_filename = midori_browser_get_filename_suggestion_for_uri ( view, webkit_web_resource_get_uri (resource));