summaryrefslogtreecommitdiff
path: root/qutebrowser
AgeCommit message (Collapse)Author
2021-02-04Release v2.0.2v2.0.2Florian 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-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-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-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-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-28Add a warning if QTWEBENGINE_CHROMIUM_FLAGS is setFlorian Bruhin
See #6065 (cherry picked from commit 38fec3726fc0aa518a3637574f7e3e0029df41d4)
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-28Release v2.0.0v2.0.0Florian Bruhin
2021-01-27Update user agent completionsFlorian Bruhin
2021-01-27Use commands for 'S.' bindingsFlorian Bruhin
2021-01-27Only show changelog after feature upgradesFlorian Bruhin
2021-01-27Show changelog after upgradesFlorian Bruhin
2021-01-27Display messages for longerFlorian Bruhin
See #5999, #6022
2021-01-27Change default text color for warnings to blackFlorian Bruhin
2021-01-27Add deprecated aliases for renamed commandsFlorian Bruhin
See #6022, #6071
2021-01-27command: Improve deprecationFlorian Bruhin
Add a test and also allow setting a deprecated alias for a command easily.
2021-01-27Update Qt 5.15 session warning againFlorian Bruhin
Also don't show it for new users - this doesn't really help much if someone just started using qutebrowser. See #5359
2021-01-27Add qt.workarounds.remove_service_workers settingFlorian Bruhin
See #5656, #5634
2021-01-26command: Only do function inspection onceFlorian Bruhin
2021-01-26Add initial support for Python 3.10 annotationsFlorian Bruhin
PEP 563: https://www.python.org/dev/peps/pep-0563/ See #5769
2021-01-26Enforce relative paths with resource_urlFlorian Bruhin
2021-01-26utils: Fix resource cache on WindowsFlorian Bruhin
2021-01-26Add :bookmark-list commandFlorian Bruhin
2021-01-26Get rid of IOErrorFlorian Bruhin
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/
2021-01-26Separate utils.read_file and read_file_binaryFlorian Bruhin
See #4467
2021-01-26Finish dropping pkg_resourcesFlorian Bruhin
Closes #4467
2021-01-26Get rid of utils.resource_filenameFlorian Bruhin
See #4467
2021-01-26Serve resource files from qute://resourceFlorian Bruhin
See #4467, #5832
2021-01-26doc: Switch URLs to httpsFlorian Bruhin
2021-01-26Revert "Remove pkg_resources special casing for PyInstaller"Florian Bruhin
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"...
2021-01-26Remove pkg_resources special casing for PyInstallerFlorian Bruhin
See #4467
2021-01-25Add 'Copy URL' to download context menuFlorian Bruhin
See #1078
2021-01-25mypy: Update ignore commentsFlorian Bruhin
2021-01-22Support Super as modifier nameFlorian Bruhin
See https://github.com/qutebrowser/qutebrowser/discussions/5999#discussioncomment-297309
2021-01-22Add String.replaceAll polyfillFlorian Bruhin
See #6047