Age | Commit message (Collapse) | Author |
|
|
|
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
|
|
Fixes #6091
(cherry picked from commit 7bfd62ed0d087a54ab8746674ced3d66d5e650c5)
|
|
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)
|
|
(cherry picked from commit 90b598282b9777164cfaf44bd717c499d1067194)
|
|
- 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)
|
|
(cherry picked from commit 0b0a35494a20763c9b14736e2cf5efac88e11ce8)
|
|
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)
|
|
|
|
Even if the stdlib importlib.resources is available there, we require
the backport (due to the .files API).
(cherry picked from commit e0af2a23707b3fc4822fb97fb93383e60476ffe0)
|
|
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)
|
|
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)
|
|
Fixes #6083
(cherry picked from commit 0e0369397c3bf23c7d8b753399fe6995fbac3ee6)
|
|
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)
|
|
This is a regression introduced in
68b81511e5a0228cd37b2907065fd6d96aa7876f.
See #1078
Fixes #6087
(cherry picked from commit d832ce5f8de04ba94eb11738619a384c796ad300)
|
|
|
|
(cherry picked from commit 49291560ff51b6ec7b52d122a71bbf81052a690f)
|
|
(cherry picked from commit a5c53a307a37fef6f91fe0689bc1620736a4a92c)
|
|
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)
|
|
See #6065
(cherry picked from commit 38fec3726fc0aa518a3637574f7e3e0029df41d4)
|
|
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)
|
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
See #5999, #6022
|
|
|
|
See #6022, #6071
|
|
Add a test and also allow setting a deprecated alias for a command
easily.
|
|
Also don't show it for new users - this doesn't really help much if
someone just started using qutebrowser.
See #5359
|
|
See #5656, #5634
|
|
|
|
PEP 563: https://www.python.org/dev/peps/pep-0563/
See #5769
|
|
|
|
|
|
|
|
It's an alias to OSError since Python 3.3:
https://docs.python.org/3/library/exceptions.html
https://www.python.org/dev/peps/pep-3151/
|
|
See #4467
|
|
Closes #4467
|
|
See #4467
|
|
See #4467, #5832
|
|
|
|
This reverts commit 6bb2b082c94c96197daa3c161ec628fd18fd2041.
I guess storing package data in qutebrowser/ would be the proper way,
but this doesn't actually work on macOS - there, the executable name is
already "qutebrowser"...
|
|
See #4467
|
|
See #1078
|
|
|
|
See https://github.com/qutebrowser/qutebrowser/discussions/5999#discussioncomment-297309
|
|
See #6047
|