summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-03-17Qt 6.5: Skip elf testsFlorian Bruhin
The ELF file structure changed in a way that it seems impossible to support reliably. Given that we have an API to get the version nowadays, let's not bother with this. We might need to figure this out for PySide6 support, but not now. See #7624, #3625
2023-03-17scripts: Patch relative links for correct doc generationFlorian Bruhin
In doc/help/index.asciidoc, we have links like this: * link:../quickstart{outfilesuffix}[Quick start guide] That is correct in e.g. the GitHub file structure, as those files are stored in e.g. doc/quickstart.asciidoc indeed. It's *no* longer true when we view the built files via qute://help, however: There, this turns into a flat file structure, with those pages being at qute://help/index.html and qute://help/quickstart.html, respectively. It looks like QtWebEngine < 6.5 did just ignore the <a href="../quicktart.html"> and pointed from qute://help/index.html to qute://help/quickstart.html anyways, weirdly. With QtWebEngine 6.5, however, this is now interpreted as a link pointing to qute://quickstart.html instead, which is clearly wrong. Until we have a less messy doc generation (probably as part of #345), let's just patch the link to be correct. See #7624
2023-03-17Update settings docsFlorian Bruhin
2023-03-17Qt 6.5: Always use new dark mode values for newer Qt'sFlorian Bruhin
I don't quite understand why the value changed from #00000 to #121212 there with Qt 6.3, but it looks like the change is here to stay. Instead of keeping #000000 the default and adding an override for every new Qt release, let's just switch over and add an override for the old versions (5.15 and 6.2), so this won't break again for every new release. See #7624
2023-03-17tests: Ignore more Qt 6.5 / debug build messagesFlorian Bruhin
See #7624
2023-03-15Override QTabBar text eildingtoofar
The fontMetrics().elidedText(...) call is copied from the base QTabBar implementation of initStyleOption(). But here we are calling it with a text_rect from our custom style class. In Qt6 QStyleSheetStyle no longer calls into our custom Style class for the SE_TabBarTabText SubElement so it ends up getting a text width from QCommonStyle which is wrong for vertical tabs (`QCommonStylePrivate::tabLayout()` seems to transpose the rect, maybe it thinks vertical tabs should have the text running vertically too). Also resolves the issue that when tabs.title.alignment is set to center the leftmost character or two of titles wouldn't be visible when tabs where small enough that the text got elided. Not 100% sure why but presumably it wasn't picking up the padding etc logic in our custom style class. In the test I don't test the exact elided text when we don't have much room because it might differ based on what monospace font is picked up in the tests. So the amount elided might change. Also in the not-elided one I'm only testing endswith() because the index should be at the start of the string which I don't really care about. Fixes: #7313 Fixes: #7205
2023-03-14tox: Install doc requirements for tests tooFlorian Bruhin
Needed so that tests generating :help docs run properly. Follow-up to af176f749fd7f5521d3978e268a1fad169ac2bd4 and bbdc83f638ed1a8e263a3efac0da8a901c1a1420 (cherry picked from commit 3d56f57e502ffaad40936f19f44083a2b63f0690)
2023-03-14tox: Install doc requirements for tests tooFlorian Bruhin
Needed so that tests generating :help docs run properly. Follow-up to af176f749fd7f5521d3978e268a1fad169ac2bd4 and bbdc83f638ed1a8e263a3efac0da8a901c1a1420
2023-03-14PDF.js: Update to newer API to avoid deprecation warningsFlorian Bruhin
A quick tour through the PDF.js API: v1.0.1040 introduced the ability to pass an object to PDFView.open() instead of passing an URL: https://github.com/mozilla/pdf.js/pull/5254 v1.6.210 (?) renamed PDFView to PDFViewerApplication: ffa276a1826a95bf1f80b15f48cfbf2b9cfe6dad v3.3.122 made it mandatory to pass an object (and also made originalURL optional when doing so): https://github.com/mozilla/pdf.js/pull/15972 We should probably properly get rid of old version support at some point (see #7619), but until then, I *think* this approach should work with older versions still. Fixes #7618 (cherry picked from commit 924a7a5907124a0a33e2cc9454e389b7a2634244)
2023-03-14PDF.js: Update to newer API to avoid deprecation warningsFlorian Bruhin
A quick tour through the PDF.js API: v1.0.1040 introduced the ability to pass an object to PDFView.open() instead of passing an URL: https://github.com/mozilla/pdf.js/pull/5254 v1.6.210 (?) renamed PDFView to PDFViewerApplication: ffa276a1826a95bf1f80b15f48cfbf2b9cfe6dad v3.3.122 made it mandatory to pass an object (and also made originalURL optional when doing so): https://github.com/mozilla/pdf.js/pull/15972 We should probably properly get rid of old version support at some point (see #7619), but until then, I *think* this approach should work with older versions still. Fixes #7618
2023-03-14ci: Fix syntaxFlorian Bruhin
2023-03-14ci: Switch branches for qt 6 imageFlorian Bruhin
Follow-up to 9d9a7b3b841cc38c9cb4d8665a0a1d11dff24d3b hopefully fixing CI on master
2023-03-14lint: Disable B028 for testsFlorian Bruhin
2023-03-14Revert "lint: add stacklevel kwarg to warnings"Florian Bruhin
This reverts commit 47be6f3aeb886cf10f85158af18b13906fc68704. This doesn't really make sense in test files, as the warning would point inside some internal pytest code, which is not helpful. Instead, let's just disable the corresponding flake8 warning in tests.
2023-03-14CI: generate archlinux-webengine-qt6 docker imagetoofar
I'm not 100% sure we need this. But there is an existing test matrix that I want to active for now. We can review all the configuration later I guess?
2023-03-14CI: generate archlinux-webengine-qt6 docker imagetoofar
I'm not 100% sure we need this. But there is an existing test matrix that I want to active for now. We can review all the configuration later I guess?
2023-03-13Release v2.5.4Florian Bruhin
2023-03-13Update docs/changelogtoofar
2023-03-13Merge pull request #7612 from novel/novel-fix-sqlite-quotestoofar
browser: history: fix queries for when DQS disabled SQLite in FreeBSD no longer support double quotes around values in SQL queries. ref: #7596
2023-03-12browser: history: fix queries for when DQS disabledRoman Bogorodskiy
Recently the FreeBSD port of sqlite has DQS feature disabled by default. Without this feature enabled, it's not allowed to use double quotes for string literals. As such quoting is used in the history.py module, qutebrowser fails to work on such configurations. The fix is to use single quotes instead. ref: #7596
2023-03-06Merge pull request #7600 from qutebrowser/update-dependenciestoofar
Update dependencies
2023-03-06Update dependenciesqutebrowser bot
2023-03-05Merge pull request #7593 from qutebrowser/update-dependenciestoofar
Update dependencies
2023-03-05Remove pep517 changelog entrytoofar
It got split to pyproject-hooks and build. Most of our requirements switched a while ago, pyorama was the last to do so. ref: #7593
2023-02-27Update dependenciesqutebrowser bot
2023-02-26Merge pull request #7588 from qutebrowser/update-dependenciestoofar
Update dependencies
2023-02-26lint: add stacklevel kwarg to warningstoofar
flake8-bugbear B028 No explicit stacklevel keyword argument found. The warn method from the warnings module uses a stacklevel of 1 by default. This will only show a stack trace for the line on which the warn method is called. It is therefore recommended to use a stacklevel of 2 or greater to provide more information to the user. Semgrep helped: semgrep --lang=py -e 'warnings.warn($ARG)' --replacement 'warnings.warn($ARG, stacklevel=2)' $FILES -a semgrep --lang=py -e 'warnings.warn($ARG1, $ARG2)' --replacement 'warnings.warn($ARG1, $ARG2, stacklevel=2)' $FILES -a Although it did lose the f-string on one of them.
2023-02-20Update dependenciesqutebrowser bot
2023-02-17Release v2.5.3Florian Bruhin
2023-02-17Update user agent completionsFlorian Bruhin
2023-02-14Add missing return after PAC parsing exceptionFlorian Bruhin
Otherwise, 'pacscript' in the line below would cause a NameError
2023-02-14Update changelog URLsFlorian Bruhin
2023-02-14mypy: Remove now-unneeded ignoresFlorian Bruhin
2023-02-13Update dependenciesqutebrowser bot
2023-02-07Merge pull request #7576 from qutebrowser/update-dependenciestoofar
Update dependencies
2023-02-06Merge pull request #7577 from ↵Florian Bruhin
qutebrowser/dependabot/github_actions/docker/build-push-action-4 build(deps): bump docker/build-push-action from 3 to 4
2023-02-06build(deps): bump docker/build-push-action from 3 to 4dependabot[bot]
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v3...v4) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2023-02-06pylint: Enable new extensionsFlorian Bruhin
See https://pylint.pycqa.org/en/latest/whatsnew/2/2.16/index.html#extensions
2023-02-06Update changelog URLsFlorian Bruhin
2023-02-06lint: pointless-exception-statementtoofar
It does actually raise an AssertionError as a side effect
2023-02-06lint: superfluous-parens and useless-suppressiontoofar
Unnecessary parens after '=' keyword
2023-02-06lint: consider-using-augmented-assigntoofar
Not a huge fan of this suggestion. I don't think it adds anything apart from a reliance on a language feature that isn't used much in this codebase. I don't want to have to explain to inexperienced devs that they have to play a bit of code golf instead of focussing on what actually matters.
2023-02-06lint: no-else-raisetoofar
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it
2023-02-06lint: broad-exception-raisedtoofar
Mostly pretty lazy fixes. Most of the places in the tests we were already matching on error message, a couple of places we weren't. The tick-tock one was the only one that wasn't being used right where it was raised. Some of them I just changed to RuntimeError because it was shorter than adding the pylint directive.
2023-02-06Update dependenciesqutebrowser bot
2023-02-05Merge pull request #7567 from qutebrowser/update-dependenciestoofar
Update dependencies
2023-02-05unpin astroidtoofar
Looks like the upstream bug is fixed now. I didn't run recompile-requirements because it requires py3.7 for the pylint file and I don't have that. The robot will run overnight anyway (and pick up a new pylint release) ref: 085a7956ebf728e94
2023-02-03update changelog for sphinxcontrib-applehelp againtoofar
2023-01-30Update dependenciesqutebrowser bot
2023-01-29Fix missing raw string prefixFlorian Bruhin