diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index ae5e0bee1..2afcc1e7d 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -24,6 +24,7 @@ Added - There are now some example userscripts in `misc/userscripts`. - New command `:scroll-px` which replaces `:scroll` for pixel-exact scrolling. - New setting `ui -> smooth-scrolling`. +- New setting `content -> webgl` to enable/disable https://www.khronos.org/webgl/[WebGL]. Changed ~~~~~~~ diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 0d92f7d2c..6c85de979 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -135,6 +135,7 @@ |<>|Whether images are automatically loaded in web pages. |<>|Enables or disables the running of JavaScript programs. |<>|Enables or disables plugins in Web pages. +|<>|Enables or disables WebGL. |<>|Allow websites to request geolocations. |<>|Allow websites to show notifications. |<>|Whether JavaScript programs can open new windows. @@ -1150,6 +1151,17 @@ Valid values: Default: +pass:[false]+ +[[content-webgl]] +=== webgl +Enables or disables WebGL. + +Valid values: + + * +true+ + * +false+ + +Default: +pass:[true]+ + [[content-geolocation]] === geolocation Allow websites to request geolocations. diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index 8e71cb465..9ed96c9b4 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -609,6 +609,10 @@ def data(readonly=False): 'Qt plugins with a mimetype such as "application/x-qt-plugin" ' "are not affected by this setting."), + ('webgl', + SettingValue(typ.Bool(), 'true'), + "Enables or disables WebGL."), + ('geolocation', SettingValue(typ.BoolAsk(), 'ask'), "Allow websites to request geolocations."), diff --git a/qutebrowser/config/websettings.py b/qutebrowser/config/websettings.py index d9ced2689..f56005abd 100644 --- a/qutebrowser/config/websettings.py +++ b/qutebrowser/config/websettings.py @@ -254,6 +254,8 @@ MAPPINGS = { # Attribute(QWebSettings.JavaEnabled), 'allow-plugins': Attribute(QWebSettings.PluginsEnabled), + 'webgl': + Attribute(QWebSettings.WebGLEnabled), 'local-content-can-access-remote-urls': Attribute(QWebSettings.LocalContentCanAccessRemoteUrls), 'local-content-can-access-file-urls':