commit 1f521e3badd2f8818e935015a32b2a4096829a1a
parent d970bbd60ab7b531a775a109dfd8c6b48d698a03
Author: Christoph Lohmann <20h@r-36.net>
Date: Fri, 21 Apr 2017 21:04:51 +0200
Allow to toggle the Mediastream API.
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/config.def.h b/config.def.h
@@ -40,6 +40,8 @@ static Bool enablestyle = TRUE;
static Bool enablehtml5db = TRUE;
static Bool enablehtml5local = TRUE;
static Bool enablejava = FALSE; /* Toggle if <applet> is allowed. */
+static Bool enablemediastream = FALSE; /* Allow access to local video
+ * and audio input devices. */
static Bool loadimages = TRUE;
static Bool hidebackground = FALSE;
static Bool allowgeolocation = TRUE;
diff --git a/surf.c b/surf.c
@@ -1103,7 +1103,9 @@ newclient(void)
g_object_set(G_OBJECT(settings),
"enable-html5-local-storage", enablehtml5local, NULL);
g_object_set(G_OBJECT(settings),
- "-storage", enablejava, NULL);
+ "enable-java-applet", enablejava, NULL);
+ g_object_set(G_OBJECT(settings),
+ "enable-media-stream", enablemediastream, NULL);
if (enablestyle)
setstyle(c, getstyle("about:blank"));