Commit Graph

20 Commits

Author SHA1 Message Date
Florian Bruhin a1af49e252 Fix lint/tests 2023-08-08 15:08:00 +02:00
Florian Bruhin 585c4fbaa9 interceptor: Make sure redirect target URL is valid
Catches issues with invalid URLs early instead of later in the code (e.g. when
the brave adblocker runs on the URL).

Hopefully helps catch issues with broken config.py hacks calling redirect().
2023-08-08 14:18:24 +02:00
Florian Bruhin 0718b25796 reuse: Initial copyright text update for myself
git ls-files | \
    xargs sed -Ei 's/Copyright [0-9]{4}(-[0-9]{4}) Florian Bruhin \(The Compiler\) <mail@qutebrowser\.org>/SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>/'
2023-07-23 12:49:05 +02:00
Florian Bruhin b2aaba6043 reuse: Adjust most license headers
git ls-files | xargs grep -l "is free software"  | xargs reuse annotate --license="GPL-3.0-or-later" --skip-unrecognised
2023-07-23 12:11:07 +02:00
Philipp Albrecht d9e8b638bf Remove vim modelines
We're deprecating vim modelines in favor of `.editorconfig`.

Removing vim modelines could be done using two one-liners. Most of the vim modelines
were followed by an empty line, so this one-liner took care of these ones:

```sh
rg '^# vim: .+\n\n' -l | xargs sed -i '/^# vim: /,+1d'
```

Then some of the vim modelines were followed by a pylint configuration line, so running
this one-liner afterwards took care of that:

```sh
rg '^# vim:' -l | xargs sed -i '/^# vim: /d'
```
2023-06-30 11:03:06 +02:00
Florian Bruhin 437caf4516 qt 6: Fix getting enum members in tests 2022-08-23 18:31:41 +02:00
Florian Bruhin d387b1a108 tests: Adjust most imports 2022-08-23 18:31:40 +02:00
Florian Bruhin d47cfd99d7 Run scripts/dev/rewrite_qt_imports.sh 2022-08-23 18:09:11 +02:00
Florian Bruhin 1a4fff1a42 doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
Florian Bruhin 222f1f19a1 Bump copyright years
Closes #6015
2021-01-20 20:06:19 +01:00
Florian Bruhin bcb8b5dd70 old qt: Remove unused imports 2020-11-04 18:30:04 +01:00
Florian Bruhin 9f9d4d7b5b old qt: Remove various test workarounds 2020-11-04 18:30:04 +01:00
Florian Bruhin 9e4276db9b Adjust copyrights for 2020 2020-01-04 18:21:17 +01:00
Florian Bruhin 18696e69de Fix test_resource_type_values with Qt 5.7 2019-12-20 12:17:38 +01:00
Florian Bruhin 6ecae98d97 Qt 5.14: Add interceptors.ResourceType.Preload(Main|Sub)Frame
This requires the dict to be built dynamically because only newer PyQt versions
define those keys.

See
2019-12-20 11:29:39 +01:00
Jay Kamat 0962c39a55
Start enum index at 0 2019-03-14 07:32:45 -07:00
Jay Kamat ce42efeb16
Merge branch 'jay/resource-type' of github.com:jgkamat/qutebrowser into jay/resource-type 2019-03-04 19:19:33 -08:00
Jay Kamat 533885919c
Convert ResourceTypes to a lowercase enum 2019-03-04 19:18:31 -08:00
Jay Kamat 21890903dc Update copyright 2019-02-27 08:25:41 -08:00
Jay Kamat 761e7c6ba1
Convert enum to class style and add simple test for interceptor map 2019-01-16 23:39:12 -08:00