commit a7dcfcc817d6ea1747488fcbf8b0172177fd6c26
parent b4914fedd20acd4b9370821c3e164fa2ebb746f7
Author: Christoph Lohmann <20h@r-36.net>
Date: Fri, 21 Apr 2017 21:33:08 +0200
Allow to configure web audio extension to JS.
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -50,6 +50,8 @@ static Bool enablemediastream = FALSE; /* Allow access to local video
* and audio input devices. */
static Bool enablemediasource = FALSE; /* Allow JS to generate media
* streams. */
+static Bool enablewebaudio = FALSE; /* Allow JS to generate wav
+ * streams. */
static Bool dnsprefetching = FALSE; /* DNS prefetching is insecure,
* so disabled. */
static Bool offlineappcache = FALSE; /* Allow offline web application
diff --git a/surf.c b/surf.c
@@ -1092,6 +1092,8 @@ newclient(void)
g_object_set(G_OBJECT(settings),
"enable-spell-checking", enablespellchecking, NULL);
g_object_set(G_OBJECT(settings),
+ "enable-webaudio", enablewebaudio, NULL);
+ g_object_set(G_OBJECT(settings),
"enable-developer-extras", enableinspector, NULL);
g_object_set(G_OBJECT(settings),
"enable-default-context-menu", kioskmode ^ 1, NULL);