diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-08-29 20:03:37 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-08-29 20:03:37 +0200 |
commit | 47ef2ca41d6f1f3981b4667105f9a1ce535beee6 (patch) | |
tree | 419222725c197293a686c0127349b5b88c078c2a | |
parent | 038361d8aa52bb8d3a9e79d03161e6ae164b2291 (diff) | |
download | qutebrowser-47ef2ca41d6f1f3981b4667105f9a1ce535beee6.tar.gz qutebrowser-47ef2ca41d6f1f3981b4667105f9a1ce535beee6.zip |
Relax errors shown in the UI
- Hide CSP error even if it's prefixed by [Report only]
- Always hide errors from Greasemonkey scripts
-rw-r--r-- | doc/help/settings.asciidoc | 5 | ||||
-rw-r--r-- | qutebrowser/config/configdata.yml | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 93c43cd8b..110a24cad 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -2415,13 +2415,13 @@ Default: - +pass:[userscript:_qute_stylesheet]+: -* +pass:[Refused to apply inline style because it violates the following Content Security Policy directive: *]+ +* +pass:[*Refused to apply inline style because it violates the following Content Security Policy directive: *]+ [[content.javascript.log_message.levels]] === content.javascript.log_message.levels Javascript message sources/levels to show in the qutebrowser UI. When a JavaScript message is logged from a location matching the glob pattern given in the key, and is from one of the levels listed as value, it's surfaced as a message in the qutebrowser UI. -By default, errors happening in qutebrowser internally or in userscripts are shown to the user. +By default, errors happening in qutebrowser internally are shown to the user. Type: <<types,Dict>> @@ -2433,6 +2433,7 @@ Default: - +pass:[userscript:*]+: * +pass:[error]+ +- +pass:[userscript:GM-*]+: empty [[content.javascript.modal_dialog]] === content.javascript.modal_dialog diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index 8a676145d..3e94fc4ed 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -950,12 +950,14 @@ content.javascript.log_message.levels: keytype: String valtype: name: FlagList + none_ok: true valid_values: - info: Show JS info as messages. - warning: Show JS warnings as messages. - error: Show JS errors as messages. default: "qute:*": ["error"] + "userscript:GM-*": [] "userscript:*": ["error"] desc: >- Javascript message sources/levels to show in the qutebrowser UI. @@ -964,8 +966,8 @@ content.javascript.log_message.levels: pattern given in the key, and is from one of the levels listed as value, it's surfaced as a message in the qutebrowser UI. - By default, errors happening in qutebrowser internally or in userscripts are - shown to the user. + By default, errors happening in qutebrowser internally are shown to the + user. content.javascript.log_message.excludes: type: @@ -977,7 +979,7 @@ content.javascript.log_message.excludes: valtype: String default: "userscript:_qute_stylesheet": - - "Refused to apply inline style because it violates the following Content + - "*Refused to apply inline style because it violates the following Content Security Policy directive: *" desc: >- Javascript messages to *not* show in the UI, despite a corresponding |