summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-08-29Relax errors shown in the UIFlorian Bruhin
- Hide CSP error even if it's prefixed by [Report only] - Always hide errors from Greasemonkey scripts
2022-08-29Improve error message on unresolved executablesFlorian Bruhin
No more confusing 'No program defined'
2022-08-23Fix lintFlorian Bruhin
2022-08-23Fix half-finished testFlorian Bruhin
2022-08-23js: Eschew the extraenous elseFlorian Bruhin
2022-08-23js: Be more precise about webelem exceptionFlorian Bruhin
2022-08-23js: Handle stylesheets in cross-origin frames gracefullyFlorian Bruhin
Otherwise the exception gets shown since the recent message change.
2022-08-23Update changelogFlorian Bruhin
2022-08-23Merge remote-tracking branch 'origin/pr/7293'Florian Bruhin
2022-08-23Update docsFlorian Bruhin
2022-08-23Make elide position in truncated tab title configurablekt programs
2022-08-22doc: Add qute-containers to READMEFlorian Bruhin
2022-08-22Remove unused importsFlorian Bruhin
2022-08-22Revert "Ignore flask development warnings."Florian Bruhin
This reverts commit d6b7d51307e08fa64c9acd2ed02eca876a1eec6d. We switched to CherryPy for the SSL server in the previous commit, so this won't be needed anymore.
2022-08-22tests: Use CherryPy for HTTPS serverFlorian Bruhin
Not sure why we didn't do this initially, maybe it wasn't possible: https://webpy.org/cookbook/ssl This means we don't need to (ab)use the Flask development server anymore.
2022-08-22ci: Fix regex for macOS logFlorian Bruhin
The smoke test runs without debug logging, so the format is different.
2022-08-22scripts: Ignore new macOS 11 warningFlorian Bruhin
Not sure where it's coming from, but it happened after swiching CI to macOS 11, and nobody has complained about it.
2022-08-22Update docsFlorian Bruhin
2022-08-22Add --quiet for :back and :forwardFlorian Bruhin
2022-08-22Update changelog URLsFlorian Bruhin
2022-08-22Merge pull request #7355 from qutebrowser/update-dependenciesFlorian Bruhin
Update dependencies
2022-08-22Update dependenciesqutebrowser bot
2022-08-18Fix notification unit tests after GetServerInformation was addedFlorian Bruhin
2022-08-18Merge pull request #7344 from qutebrowser/update-dependenciesFlorian Bruhin
Update dependencies
2022-08-18tests: Support GetServerInformation for test notification serverFlorian Bruhin
Huge thanks to u/SomethingOfAGirl on Reddit for finding out how to make this work! See https://www.riverbankcomputing.com/pipermail/pyqt/2021-March/043724.html
2022-08-18Ignore flask development warnings.toofar
We used to dodge these by listening on 0.0.0.0. Now they are on to us and always show the warnings. Running flask in development mode here is intended, so lets not have the warnings fail the tests. Ref: https://github.com/pallets/werkzeug/issues/2480
2022-08-16ci: Drop Ubuntu 18.04, add 22.04Florian Bruhin
See https://github.com/actions/runner-images/issues/6002
2022-08-16ci: Update to macOS 11, add 12Florian Bruhin
See https://github.com/actions/runner-images/issues/5583
2022-08-15Fixup content.javascript.log_messages.excludes issuesFlorian Bruhin
2022-08-15Update changelogFlorian Bruhin
2022-08-15config: Handle config.py errors while updating mutablesFlorian Bruhin
Fixes #3580
2022-08-15config: Use a single argument for _handle_error()Florian Bruhin
Needed for the next commit. Done in both config.py and configfiles.py for consistency.
2022-08-15config: Properly convert values for list/dict commandsFlorian Bruhin
Those commands use the config interface expecting Python objects (via update_mutables), but we always used the raw user-supplied string as input. Thus far, it was very hard to trigger this bug: It would only trigger with a List or Dict config option, with a value type which does *not* accept a string type in to_py(). That means: - List / FlagList / ConfirmQuit / ShellCommand - Bool / BoolAsk - Int - Float - Dict / Padding (Notably, Perc, PercOrInt and Regex all *do* accept a string.) That leaves only a couple of candidates: - hints.selectors, but that's "no_autoconfig: true" - bindings.default, ditto - bindings.commands, but no reason to use :config-dict-* on it, especially with fixed keys Therefore, this got only uncovered now, after adding content.javascript.log_message.levels, which is a Dict with FlagList values. Note that we still don't have any config definition with an affected List type, thus currently making it impossible to test the changes for :config-list-{add,remove}. Also note the adjusted test_{dict,list}_add_invalid_value tests - they were just plain wrong. The command functions are never going to be called by a Python object from the user (only with a str). Finally, test_list_remove_no_value also needed an adjustment because the value validation now happens *before* the other validation done by the command.
2022-08-15config: Discard prior mutables before applyingFlorian Bruhin
If we only clear existing mutables *after* applying, we get into an inconsistent state if there was an error in one of the config values: The improper value lingers around in self._mutables, and then gets returned when get_mutable_obj() (or update_mutables()) gets called the next time. Reproducer: qutebrowser --debug --temp-basedir \ ':config-dict-add content.javascript.log_message.levels example.org bla' \ ':later 1000 config-dict-add content.javascript.log_message.levels example.org bla' Results in: ERROR: Invalid value 'bla' - expected a value of type list but got str. ERROR: example.org already exists in content.javascript.log_message - use --replace to overwrite! Fixes the second part of #7343. nb: As before, the mutable updating actually gets interrupted by a failing update, instead of it e.g. collecting all errors but carrying on. With this change, the remaining updates will thus also be discarded, but that does not seem to be a problem with how mutables are currently used. Ideally, we should get rid of the mutable handling entirely anyways, at least for qutebrowser internal code - see #4344.
2022-08-15Add content.javascript.log_messages.excludesFlorian Bruhin
Fixes #7342
2022-08-15Add utils.match_globsFlorian Bruhin
Needed for the next commit.
2022-08-15js: Add some newlinesFlorian Bruhin
2022-08-15Update dependenciesqutebrowser bot
2022-08-12Fix type annotationFlorian Bruhin
2022-08-12Surface internal/userscript JS errors as messagesFlorian Bruhin
Configurable via a new content.javascript.log_message setting. Closes #7173, driven by #7335.
2022-08-08Merge remote-tracking branch 'origin/pr/7337'Florian Bruhin
2022-08-08Update changelog URLsFlorian Bruhin
2022-08-08Update dependenciesqutebrowser bot
2022-08-06Re-add missing changelog URLsFlorian Bruhin
2022-08-03flake8: Reenable flake8-copyright and flake8-future-importFlorian Bruhin
Partial revert of faf04f3791e533b5b6d69282e4bf063032eca419
2022-08-03Update changelog URLsFlorian Bruhin
2022-08-01Merge pull request #7326 from qutebrowser/update-dependenciesFlorian Bruhin
Update dependencies
2022-08-01flake8: Remove broken pluginsFlorian Bruhin
https://github.com/PyCQA/flake8/issues/325 https://github.com/savoirfairelinux/flake8-copyright/pull/9 https://github.com/xZise/flake8-future-import/issues/25 https://github.com/aleGpereira/flake8-mock/issues/10
2022-08-01revert accidental .flake8 changetoofar
2022-08-01mypy: Remove no longer needed ignore commentstoofar
Came through with 0.961 -> 0.971. Not entirely sure why what change caused them not to be needed but oh well.