From 5217cbfc70c585681e973a065e20c35d2606137d Mon Sep 17 00:00:00 2001
From: Ben Woolley <tautolog@gmail.com>
Date: Tue, 24 Mar 2015 00:01:12 -0700
Subject: [PATCH 04/13] Disable useless webkit features that could harm
 privacy.

---
 surf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/surf.c b/surf.c
index 6c84071..cbc5315 100644
--- a/surf.c
+++ b/surf.c
@@ -924,6 +924,9 @@ newclient(void) {
 
 	settings = webkit_web_view_get_settings(c->view);
 	g_object_set(G_OBJECT(settings), "html5-local-storage-database-path", dbfolder, NULL);
+	g_object_set(G_OBJECT(settings), "enable-running-of-insecure-content", 0, NULL);
+	g_object_set(G_OBJECT(settings), "enable-offline-web-application-cache", 0, NULL);
+	g_object_set(G_OBJECT(settings), "enable-dns-prefetching", 0, NULL);
 
 	if(!(ua = getenv("SURF_USERAGENT")))
 		ua = useragent;
-- 
2.2.2

