[Xfce4-commits] <midori:master> Disable DNS prefetching in private browsing mode

Christian Dywan noreply at xfce.org
Thu Apr 7 22:10:01 CEST 2011


Updating branch refs/heads/master
         to 42fa621cd9bb1ea0dcf7cf4df9b13dc21eca2859 (commit)
       from e449ce87e208d38e7daeb5d4f019c2faed3a4147 (commit)

commit 42fa621cd9bb1ea0dcf7cf4df9b13dc21eca2859
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Apr 7 22:10:21 2011 +0200

    Disable DNS prefetching in private browsing mode

 midori/main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/midori/main.c b/midori/main.c
index 4b5a4ce..22db995 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);
         }



More information about the Xfce4-commits mailing list