Commit Graph

25361 Commits

Author SHA1 Message Date
Florian Bruhin 3dce208237 Use Python 3.12 for nightly builds 2024-12-06 20:39:58 +01:00
Florian Bruhin 5cb14d4d4b Run shellcheck over all scripts/*.sh files
See #8409
2024-12-06 20:39:34 +01:00
Florian Bruhin a7b566e7b3 Remove pytest-bdd<8 limit 2024-12-06 14:53:03 +01:00
Florian Bruhin acc06cdd39 Merge branch 'gherkin8342' 2024-12-06 14:52:08 +01:00
Florian Bruhin e2fb1fba8b Revert "Bleeding requirements: Use pytest-bdd release"
This reverts commit 26b4ec6cef.
2024-12-05 19:27:10 +01:00
Florian Bruhin aed06c5f48 Add gherkin-official changelog URL 2024-12-05 19:26:58 +01:00
Florian Bruhin 59fd7876a1 pytest-bdd 8: Fix borked tag 2024-12-05 19:15:47 +01:00
Florian Bruhin f91dc2d52d pytest-bdd 8: Adjust Python code for multiline steps 2024-12-05 16:19:46 +01:00
Florian Bruhin f4260a6e55 pytest-bdd 8: Fix comments and remaining syntax issues
Looks like inline comments are not permitted anymore.
2024-12-05 16:19:29 +01:00
Florian Bruhin a8a5068e62 pytest-bdd 8: Fix missing multiline step quoting 2024-12-05 16:13:04 +01:00
Florian Bruhin cec00266d0 pytest-bdd 8: Fix tags
Tags containing spaces aren't supported anymore, so we can't add additional skip
descriptions sadly...
2024-12-05 16:11:17 +01:00
Florian Bruhin bb462c2602 pytest-bdd 8: Fix indentations 2024-12-05 16:05:59 +01:00
Florian Bruhin f524926216 Fix tab indentation in feature files 2024-12-05 15:39:56 +01:00
Florian Bruhin 629a38d654 Upgrade to pytest-bdd 8 2024-12-05 15:36:18 +01:00
Florian Bruhin e15d266309 Merge branch 'xhr-accept-language'
# Conflicts:
#	doc/changelog.asciidoc
2024-12-05 15:08:28 +01:00
Florian Bruhin f3d280ba53 Expand comment 2024-12-05 15:04:56 +01:00
Florian Bruhin e158a480f5 Add QtWebEngine 6.8.1 Chromium security version 2024-12-04 21:17:03 +01:00
Florian Bruhin 69ac04d389 Drop macOS 12
The GHA runner is gone now: https://github.com/actions/runner-images/issues/10721

Closes #8327
2024-12-04 20:56:22 +01:00
Florian Bruhin df75956cf9 Update docs 2024-12-04 20:51:58 +01:00
Florian Bruhin a1d89a83b0 Merge remote-tracking branch 'origin/pr/8348' 2024-12-04 20:40:19 +01:00
Florian Bruhin 06501886eb
Merge pull request #8406 from qutebrowser/update-dependencies
Update dependencies
2024-12-02 04:46:24 +00:00
qutebrowser bot e6a0446a92 Update dependencies 2024-12-02 04:20:49 +00:00
toofar 40adc6696b
Merge pull request #8397 from qutebrowser/update-dependencies
Update dependencies
2024-12-01 20:29:22 +13:00
Florian Bruhin a397aa069e Also handle QtWebKit Accept-Language correctly
On QtWebKit, we only set Accept-Language in the request interceptor.
2024-11-27 18:10:00 +01:00
Florian Bruhin 0144a314ad Respect Accept-Language set via XHR
Similarly to #5998, XHR requests should be able to set their custom
Accept-Language values - and for some odd reason, stuff breaks on websites
sometimes when that's not respected.

There's no way for qutebrowser to know if a given header value is already set in
a request (i.e. whether we're adding or overriding). Thus we only really have
two options here:

1) Don't set any shared.custom_headers() for XHR requests at all.
2) Special-case Accept-Language here, because the issue usually is triggered by
the global override, but that already gets set just fine via QWebEngineProfile
anyways.

Given that 2) is the thing causing trouble in the wild and it's unclear what the
desired behavior for 1) is (e.g. for the DNT header), let's go for 2) here.
2024-11-27 17:48:03 +01:00
Florian Bruhin ddac8a16bf Simplify assert 2024-11-26 15:21:24 +01:00
qutebrowser bot 17792f87e8 Update dependencies 2024-11-25 04:20:31 +00:00
Florian Bruhin 2ba07fe490
Merge pull request #8387 from qutebrowser/update-dependencies
Update dependencies
2024-11-24 00:30:52 +00:00
Florian Bruhin 3608b2b3be Pin pytest-bdd<8
See https://github.com/qutebrowser/qutebrowser/issues/8342
2024-11-24 01:09:01 +01:00
dependabot[bot] 4b7cc881ec Bump codecov/codecov-action from 4 to 5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-24 00:06:49 +00:00
toofar 77c880544f fix test for webkit
Was getting an import error when trying to import the webengine version.
Not going to skip the tests using this step since they seemed to be
working otherwise, probably this behavior isn't needed on webkit anyway.
2024-11-23 12:15:33 +13:00
toofar 66759c7172 Check pyqt version against hex number, not str
A string comparison of version numbers relies on nice simple version
numbers with approximately the same amount of digits. Who knows what
various systems are running!

Switch to the integer format version number. It's harder to grep for
when dropping a Qt version, but hopefully we have enough "6.8"s around
it to compensate.
2024-11-23 12:15:33 +13:00
toofar 427fb47e0c add copyright header to test file
review feedback

Hopefully this is an okay header format for checkers to pick up, it's
the same as in qutebrowser/html/version.html except with the doctype
declaration above.
2024-11-23 12:15:33 +13:00
toofar 1888944a69 minimize conditional expression
review feedback

I've mixed opinions on this. I'm not convinced that ternary expressions
are more readable than an if/else block.

Also if someone passes a string into this function it'll return
"access-paste" now.
2024-11-23 11:36:14 +13:00
Aryan Dev Shourie 590a602e57 capitalized github text to maintain consistency 2024-11-22 17:01:59 +00:00
qutebrowser bot 664c554bf6 Update dependencies 2024-11-18 04:22:39 +00:00
toofar 6d9563035e Add test checking `Feature(8)` == ClipboardReadWrite
Co-Authored-By: Florian Bruhin <me@the-compiler.org>
2024-11-17 19:48:40 +13:00
toofar a085e3caa0 use `unlink(missing_ok=True)`
Combine the `if exists` and `unlink` in one step and avoid any race
conditions with the file disappearing in between them.

Co-Authored-By: Florian Bruhin <me@the-compiler.org>
2024-11-17 19:48:40 +13:00
toofar 4dd36aca04 Change check for new API to try/catch
Previously it would have crashed with an AttributeError if a user had a
PyQt of 6.8 but Qt of 6.7.

Switch to catching any AttributeError which will hopefully cover
either or both of Qt and PyQt not being a new enough version, even if
it's a bit less of an explicit check.
2024-11-17 19:48:40 +13:00
Florian Bruhin 07bd9a691a tests: Ignore irrelevant Chromium warning 2024-11-11 12:53:29 +01:00
qutebrowser bot c03d3dd6ac Update dependencies 2024-11-11 10:23:04 +00:00
Florian Bruhin af884a02c8 ci: Upgrade codecov action 2024-11-10 20:01:44 +01:00
Florian Bruhin a04126b22b hypothesis: Inherit our CI settings from hypothesis CI profile
See 13c3785854

deadline=None and suppressing the too_slow health check is already part of that.
Also fixes a hypotheses -> hypothesis typo.
2024-11-10 19:40:54 +01:00
Florian Bruhin f382a1a18f Remove pytest-benchmark filterwarning 2024-11-10 19:36:51 +01:00
Florian Bruhin c075f6650e Merge remote-tracking branch 'origin/update-dependencies' 2024-11-10 19:36:21 +01:00
toofar 57465a6768 Assert on unexpected config value when prompting
This branch gets entered if the value of a setting linked to a feature
is anything other than True, False or "ask". I think this could only
happen due to a programming error, for example when you add an entry to
`_WebEnginePermissions` that was linked to a String type setting. So I
think putting an assert here instead of a warning should be fine and
more explicit. (Or should be be `utils.Unreachable`? Or `ValueError`?)
2024-11-10 14:38:47 +13:00
Florian Bruhin 49e67c4dc9 Fix up changelog
See #7625
2024-11-07 14:58:47 +01:00
qutebrowser bot b495e78b8a Update dependencies 2024-11-04 04:20:40 +00:00
toofar 1127c0de19
Merge pull request #8359 from qutebrowser/update-dependencies
Update dependencies
2024-10-29 11:17:56 +13:00
toofar 7535207fd3 Merge remote-tracking branch 'upstream/main' into feat/68_permissions_askeverytime 2024-10-29 10:22:44 +13:00