commit ee7bf0c1b8e86154a30baa94a90c05f21d3d9f58
parent bc405ff7a2c80ddd1c2bfdee3785692837603d36
Author: Christoph Lohmann <20h@r-36.net>
Date: Wed, 19 Apr 2017 18:43:35 +0200
Disable potential insecure features of webkit.
Taken from surf-isolated by Ben Woolley <tautolog@gmail.com>.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/surf.c b/surf.c
@@ -1044,6 +1044,11 @@ 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;
g_object_set(G_OBJECT(settings), "user-agent", ua, NULL);