summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-08-16macos fixupci-upgradeFlorian Bruhin
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-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.
2022-08-01Update dependenciesqutebrowser bot
2022-07-27Merge pull request #7329 from youtux/patch-1Florian Bruhin
Use pytest-bdd:master again in bleeding-edge CI runs
2022-07-27Use pytest-bdd:master againAlessio Bogon
https://github.com/pytest-dev/pytest-bdd/issues/542 should be fixed now
2022-07-18Merge pull request #7321 from qutebrowser/update-dependenciesFlorian Bruhin
Update dependencies
2022-07-18Update dependenciesqutebrowser bot
2022-07-17bleeding requirements: Back to pytest-bdd releaseFlorian Bruhin
See https://github.com/pytest-dev/pytest-bdd/issues/542 Reverts 99f65a13e77b7e756c54801cbd8cb707d5833abc
2022-07-17tests: Remove trailing periods in feature filesFlorian Bruhin
Breaks after https://github.com/pytest-dev/pytest-bdd/pull/539
2022-07-13Revert "Revert "ci: Re-add Python 3.11""Florian Bruhin
This reverts commit 70fa33f52d0530f886c1a49d25ba584e48d843cb.
2022-07-12Revert "ci: Re-add Python 3.11"Florian Bruhin
This reverts commit d1e653115b64d903e2c2014edcd5f5c4414f4805.
2022-07-12ci: Re-add Python 3.11Florian Bruhin
Fixes #7143
2022-07-12Merge pull request #7311 from qutebrowser/update-dependenciesFlorian Bruhin
Update dependencies
2022-07-12Update dependenciesqutebrowser bot
2022-07-12ci: Get libxcb-shape0 in for normal runs tooFlorian Bruhin
Those seem to fail in weird ways as well...
2022-07-12ci: Add missing libxcb-shape0Florian Bruhin
Not sure why this is needed out of the sudden...
2022-07-11qute-pass: Remove feedback lineFlorian Bruhin
Closes #7301
2022-07-11Update changelogFlorian Bruhin
2022-07-11Merge remote-tracking branch 'origin/pr/7304'Florian Bruhin
2022-07-11ci: Remove TERM=ansi againFlorian Bruhin
Doesn't seem to actually work.
2022-07-11ci: More colored outputFlorian Bruhin
2022-07-11ci: Fix wgetFlorian Bruhin
2022-07-11Merge pull request #7305 from qutebrowser/update-dependenciesFlorian Bruhin
Update dependencies
2022-07-11Update changelog URLsFlorian Bruhin
2022-07-11ci: Add actionlintFlorian Bruhin
2022-07-11Update dependenciesqutebrowser bot
2022-07-10macOS: add MHTML file type to handled fileskt programs
2022-07-06Merge pull request #7298 from gsaker/masterFlorian Bruhin
Fixed #7156: Added zoom keyboard shortcuts to quick start guide