summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-04Release v2.0.2v2.0.2Florian Bruhin
2021-02-04Update changelog from masterFlorian Bruhin
2021-02-03Only warn about autoconfig for the top-level config.pyFlorian Bruhin
If we are e.g. loading a secondary file via config.source() before config.load_autoconfig(False) has been called in the main one, we don't care about the warning. Neither should :config-source fail if we started with the warning for the main config. Fixes #6099
2021-02-03Accept --enable-webengine-inspector againFlorian Bruhin
Fixes #6091 (cherry picked from commit 7bfd62ed0d087a54ab8746674ced3d66d5e650c5)
2021-02-03Adjust tests for hints.leave_on_mode changeFlorian Bruhin
(cherry picked from commit 985c711e49d9503e52964766fceda78802aae656)
2021-02-03Handle a single empty startup argumentFlorian Bruhin
When using open_url_in_instance.sh, it runs qutebrowser passing a single empty argument to it. This doesn't properly open a new window, but opens a window without any tabs instead. Interacting with that will then lead to a RegistryUnavailableError. We now special-case that behavior, though there might be a more involved proper fix for "" handling needed at a later point. Fixes #6122 (cherry picked from commit e42e1230a10823d1fb94db6075d0cdfbff612c06)
2021-02-03Prevent crash on non-UTF-8 hint dictionarySara Johnsson
(cherry picked from commit 90b598282b9777164cfaf44bd717c499d1067194)
2021-02-03Adopt tests from master branchFlorian Bruhin
2021-02-03Improve rebuilding of history databaseFlorian Bruhin
- Re-add the force_rebuild key which we need internally again. This partially reverts changes from: * cd0000f728459f208c4cf69f29b603fbcab6ffb4 * 1a9b59fcfa73d1505834d8461ee166f07fb201cd * 93ecd8f72f108743948f0d1881055ff2337058ec - Instead of checking self.completion to figure out whether we need to rebuild anything, check 'self' (i.e. the History table, not the CompletionHistory table). If something went wrong during the last rebuild, the CompletionHistory might still be empty, but History is what actually matters to figure out whether to rebuild. - Set force_rebuild while rebuilding the history, so that a possible interruption of the process (e.g. by a killed process or crash) results in another rebuild from scratch. - Bump up the user version again, so that we re-add force_rebuild to the database. This also forces another rebuild which helps with possible inconsistent data when someone interrupted the earlier rebuild for v2.0.0. Fixes #6111 (cherry picked from commit 2b47bd01dbc15a02911989a190e2ef956aeedf27)
2021-02-03pdfjs is in the official repositories, no more in the AUREnrico Maria De Angelis
(cherry picked from commit 0b0a35494a20763c9b14736e2cf5efac88e11ce8)
2021-02-02Set persistent cookie policy properly when creating profileFlorian Bruhin
When initially creating a new profile, we want to set its cookie policy properly. This fixes a regression introduced in 2c81271 / 5782123. Fixes #6120 (cherry picked from commit 3a0e411210158b0ea589a50c6581127beaaa95ce)
2021-02-01Fix link to cheatsheet in help pageGuillaume Lostis
(cherry picked from commit b4b22b765e8143754a2f6023e437b7d10c915cc0)
2021-01-30Fix coverageFlorian Bruhin
2021-01-30earlyinit: Require importlib_resources on Python 3.7/3.8 tooFlorian Bruhin
Even if the stdlib importlib.resources is available there, we require the backport (due to the .files API). (cherry picked from commit e0af2a23707b3fc4822fb97fb93383e60476ffe0)
2021-01-30Also preload JavaScript quirks filesFlorian Bruhin
I thought about implementing recursive globbing for preloading, but that would also potentially preload things we don't necessarily need preloaded, such as html/doc/*.html. Fixes #6098 (cherry picked from commit 62c71975a2a1d270d77c283fb6d912be50cb929b)
2021-01-30Re-add bare sip importFlorian Bruhin
According to upstream, sip should be packaged as PyQt5.sip ever since PyQt 5.11: https://www.riverbankcomputing.com/static/Docs/PyQt5/incompatibilities.html#pyqt-v5-11 Since support for PyQt 5.11 was dropped for v2.0.0, importing from the old name was dropped in bff1b2a7d063f9093a50c8ed3ed94b777735e5d7 as well. However, some distributions (Ubuntu 20.04, most likely Debian, Guix, perhaps others?) package newer versions of PyQt5 while still using the old global "sip" package. Thus, this restores the (trivial) compatibility layer. Fixes #6082 (cherry picked from commit 41087d3adf42c48ef08f5851af43b26809753c4c)
2021-01-30earlyinit: Check for importlib_resourcesFlorian Bruhin
Fixes #6083 (cherry picked from commit 0e0369397c3bf23c7d8b753399fe6995fbac3ee6)
2021-01-30Handle KeyError for unknown resourcesFlorian Bruhin
When importlib.resources (or the importlib_resources backport) uses zipfile.Path in the Python 3.8/3.9 stdlib (rather than the zipp backport), we get KeyError rather than a FileNotFoundError if a resource does not exist. See https://bugs.python.org/issue43063. We work around this by re-raising a KeyError as FileNotFoundError. Fixes #6086 (cherry picked from commit 9313523ae144f350ce5c930e735ba9257c34067e)
2021-01-29Mark mkvenv.py as executableFlorian Bruhin
(cherry picked from commit 9a5fe232cd2c59128141261435c4b3ff7fd9be43)
2021-01-29Fix crash when right-clicking download viewFlorian Bruhin
This is a regression introduced in 68b81511e5a0228cd37b2907065fd6d96aa7876f. See #1078 Fixes #6087 (cherry picked from commit d832ce5f8de04ba94eb11738619a384c796ad300)
2021-01-28Release v2.0.1v2.0.1Florian Bruhin
2021-01-28configdata: Add nnn to completionsFlorian Bruhin
(cherry picked from commit 49291560ff51b6ec7b52d122a71bbf81052a690f)
2021-01-28Split envvar warning into functionFlorian Bruhin
(cherry picked from commit a5c53a307a37fef6f91fe0689bc1620736a4a92c)
2021-01-28Handle install of adblock library during runtimeFlorian Bruhin
The _possibly_show_missing_dependency_warning() is only shown if the "adblock" import is unavailable (i.e. None), thus we assumed that it must be either not installed or outdated. However, there's a third possible case: The library wasn't available at import time, but it *is* available when the setting changed at runtime. If that's the case, show a warning instead of an AssertionError. (cherry picked from commit d2f0cad2c7610b62c24648db5efdfa2c7410637f)
2021-01-28Update changelogFlorian Bruhin
2021-01-28Use and enforce python3 shebangs in userscriptsFlorian Bruhin
See #6080
2021-01-28Add a warning if QTWEBENGINE_CHROMIUM_FLAGS is setFlorian Bruhin
See #6065 (cherry picked from commit 38fec3726fc0aa518a3637574f7e3e0029df41d4)
2021-01-28Switch format_json userscript to /bin/sh againFlorian Bruhin
It was switched to bash in 22e4a800a1c6080d29d41eeda229bc67b7bf314b for "-o pipefail", but doesn't actually use pipes, so we might as well switch it back to sh again. (cherry picked from commit aa333512a12c42c86e3c76faf1f5606426f454f1)
2021-01-28Ignore stale adblock.py componentFlorian Bruhin
It looks like some setups (and even packages, apparently?!) still ship adblock.py despite it not being a part of the release. This then causes a NoOptionError because adblock.py tries to access content.host_blocking which doesn't exist anymore. Likely this will resolve over time - but until that's the case, let's just explicitly block that component even if it exists. (cherry picked from commit f5a409aa9f0b59f3bbb3e23bcf84e4a05c829858)
2021-01-28Fix resource globbing with Python .egg installsFlorian Bruhin
When qutebrowser is installed as an .egg (like can happen with setup.py install), importlib.resources.files(...) can return a zipfile.Path in place of a pathlib.Path. Unfortunately, those path objects don't support .glob(), nor do they support things like .relative_to() or .as_posix(). Thus, if that's the case, we need to implement our own poor globbing based on .iterdir() (which they *do* support). (cherry picked from commit 54bcdc1eefa86cc20790973d6997b60c3bba884c)
2021-01-28scripts: Also add desc suffix for installerFlorian Bruhin
(cherry picked from commit 5ac9e3c23d93936df091bca6057b2f6adc3aeb2a)
2021-01-28scripts: Actually use 32-bit Python on WindowsFlorian Bruhin
(cherry picked from commit d3b8b525b71a4ee24244e5f4fa0ab91631712abd)
2021-01-28scripts: Adjust Windows release instructionsFlorian Bruhin
(cherry picked from commit d48b455d776112d2a52b800a6b451fe3834464af)
2021-01-28Release v2.0.0v2.0.0Florian Bruhin
2021-01-28scripts: Adjust suffix for 32-bit releasesFlorian Bruhin
2021-01-28Merge pull request #6078 from qutebrowser/update-dependenciesFlorian Bruhin
Update dependencies
2021-01-28Update dependenciesqutebrowser bot
2021-01-27Fix lintFlorian Bruhin
2021-01-27tests: Fix ~ completion test on WindowsFlorian Bruhin
2021-01-27scripts: Add suffix for 32-bit artifactsFlorian Bruhin
See #6050
2021-01-27Update user agent completionsFlorian Bruhin
2021-01-27tests: Use different workaround for mimetypes issueFlorian Bruhin
2021-01-27tests: Work around mimetype issueFlorian Bruhin
2021-01-27scripts: Refactor Windows buildingFlorian Bruhin
2021-01-27Use commands for 'S.' bindingsFlorian Bruhin
2021-01-27Update changelogFlorian Bruhin
2021-01-27ci: Use Python 3.9 for Windows/macOSFlorian Bruhin
That's what we use with the newer PyInstaller releases, too.
2021-01-27tests: Run service worker workaround test on WindowsFlorian Bruhin
2021-01-27tests: Ignore DXVAVDA errorsFlorian Bruhin
2021-01-27Only show changelog after feature upgradesFlorian Bruhin