From: Paweł Forysiuk Date: Tue, 24 Jul 2012 20:12:40 +0000 (+0200) Subject: Don't bother with adblocked items when saving pages with resources X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc0d81345ba8502636d6f83a1c09091313843a78;p=midori Don't bother with adblocked items when saving pages with resources --- 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));