Added configuration for 'enable-*-of-insecure-content' (#44).
authorDaniel Carl <danielcarl@gmx.de>
Sat, 6 Jul 2013 20:00:06 +0000 (22:00 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 6 Jul 2013 20:00:06 +0000 (22:00 +0200)
src/config.h
src/setting.c

index 6601d37..c6d035d 100644 (file)
@@ -144,6 +144,10 @@ const char *default_config[] = {
     "set download-path=",
     "set history-max-items=2000",
     "set editor-command=x-terminal-emulator -e vi %s",
+#if WEBKIT_CHECK_VERSION(2, 0, 0)
+    "set insecure-content-show=off",
+    "set insecure-content-run=off",
+#endif
     NULL
 };
 
index 6ba6c8d..88df890 100644 (file)
@@ -66,6 +66,10 @@ static Setting default_settings[] = {
     {"sansfont", "sans-serif-font-family", TYPE_CHAR, webkit, {0}},
     {"seriffont", "serif-font-family", TYPE_CHAR, webkit, {0}},
     {"useragent", "user-agent", TYPE_CHAR, webkit, {0}},
+#if WEBKIT_CHECK_VERSION(2, 0, 0)
+    {"insecure-content-show", "enable-display-of-insecure-content", TYPE_BOOLEAN, webkit, {0}},
+    {"insecure-content-run", "enable-running-of-insecure-content", TYPE_BOOLEAN, webkit, {0}},
+#endif
 
     /* internal variables */
     {NULL, "stylesheet", TYPE_BOOLEAN, user_style, {0}},