From: Christian Dywan Date: Thu, 7 Apr 2011 20:10:21 +0000 (+0200) Subject: Disable DNS prefetching in private browsing mode X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42fa621cd9bb1ea0dcf7cf4df9b13dc21eca2859;p=midori Disable DNS prefetching in private browsing mode --- diff --git a/midori/main.c b/midori/main.c index 4b5a4ce6..22db9958 100644 --- a/midori/main.c +++ b/midori/main.c @@ -2067,6 +2067,11 @@ main (int argc, #if WEBKIT_CHECK_VERSION (1, 1, 2) g_object_set (settings, "enable-private-browsing", TRUE, NULL); #endif + /* Arguably DNS prefetching is or isn't a privacy concern. For the + * lack of more fine-grained control we'll go the safe route. */ + #if WEBKIT_CHECK_VERSION (1, 3, 13) + g_object_set (settings, "enable-dns-prefetching", FALSE, NULL); + #endif midori_browser_set_action_visible (browser, "Tools", FALSE); midori_browser_set_action_visible (browser, "ClearPrivateData", FALSE); }