surf

Surf web browser.
git clone git://r-36.net/surf
Log | Files | Refs | README | LICENSE

commit cc571bc0562c0dc27a54e2f36df60a66389bf8bc
parent c75713c06bf6f3a5a6f4c4e9d610fe35a22432c1
Author: Christoph Lohmann <20h@r-36.net>
Date:   Fri, 21 Apr 2017 21:37:58 +0200

Allow to configure the behaviour for inline media.

Diffstat:
config.def.h | 4++++
surf.c | 4++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -52,6 +52,10 @@ static Bool enablemediasource = FALSE; /* Allow JS to generate media * streams. */ static Bool enablewebaudio = FALSE; /* Allow JS to generate wav * streams. */ +static Bool inlineplayback = TRUE; /* Toggle if media should be played + * inline. */ +static Bool inlinegestures = TRUE; /* Toggle if media playbeck + * requires some click to start. */ static Bool enablewebgl = TRUE; static Bool dnsprefetching = FALSE; /* DNS prefetching is insecure, * so disabled. */ diff --git a/surf.c b/surf.c @@ -1092,6 +1092,10 @@ newclient(void) g_object_set(G_OBJECT(settings), "enable-spell-checking", enablespellchecking, NULL); g_object_set(G_OBJECT(settings), + "media-playback-allows-inline", inlineplayback, NULL); + g_object_set(G_OBJECT(settings), + "media-playback-requires-user-gesture", inlinegestures, NULL); + g_object_set(G_OBJECT(settings), "enable-webaudio", enablewebaudio, NULL); g_object_set(G_OBJECT(settings), "enable-webgl", enablewebgl, NULL);