diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 1b1a3cc03..de3c12d53 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -26,6 +26,7 @@ Added - New setting `ui -> smooth-scrolling`. - New setting `content -> webgl` to enable/disable https://www.khronos.org/webgl/[WebGL]. - New setting `content -> css-regions` to enable/disable support for http://dev.w3.org/csswg/css-regions/[CSS Regions]. +- New setting `content -> hyperlink-auditing` to enable/disable support for https://html.spec.whatwg.org/multipage/semantics.html#hyperlink-auditing[hyperlink auditing]. Changed ~~~~~~~ diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index b82f2ff4e..62763e6d7 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -137,6 +137,7 @@ |<>|Enables or disables plugins in Web pages. |<>|Enables or disables WebGL. |<>|Enable or disable support for CSS regions. +|<>|Enable or disable hyperlink auditing (). |<>|Allow websites to request geolocations. |<>|Allow websites to show notifications. |<>|Whether JavaScript programs can open new windows. @@ -1174,6 +1175,17 @@ Valid values: Default: +pass:[true]+ +[[content-hyperlink-auditing]] +=== hyperlink-auditing +Enable or disable hyperlink auditing (). + +Valid values: + + * +true+ + * +false+ + +Default: +pass:[false]+ + [[content-geolocation]] === geolocation Allow websites to request geolocations. diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index 2cac44d99..9011170c0 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -617,6 +617,10 @@ def data(readonly=False): SettingValue(typ.Bool(), 'true'), "Enable or disable support for CSS regions."), + ('hyperlink-auditing', + SettingValue(typ.Bool(), 'false'), + "Enable or disable hyperlink auditing ()."), + ('geolocation', SettingValue(typ.BoolAsk(), 'ask'), "Allow websites to request geolocations."), diff --git a/qutebrowser/config/websettings.py b/qutebrowser/config/websettings.py index 8de55aed7..b89fbd3c5 100644 --- a/qutebrowser/config/websettings.py +++ b/qutebrowser/config/websettings.py @@ -258,6 +258,8 @@ MAPPINGS = { Attribute(QWebSettings.WebGLEnabled), 'css-regions': Attribute(QWebSettings.CSSRegionsEnabled), + 'hyperlink-auditing': + Attribute(QWebSettings.HyperlinkAuditingEnabled), 'local-content-can-access-remote-urls': Attribute(QWebSettings.LocalContentCanAccessRemoteUrls), 'local-content-can-access-file-urls':