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
77ca342cff
reuse: Remove some more old license headers
...
git ls-files | \
xargs grep -l "This file is part of qutebrowser" | \
xargs grep -l SPDX-License-Identifier | \
xargs sed -i '/# This file is part of qutebrowser\./,/along with qutebrowser\. If not, see <https:\/\/www\.gnu.org\/licenses\/>./d'
2023-07-23 12:15:03 +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
Florian Bruhin
ffc06e58d6
qt6: Switch most tooling/linting to Qt 6
...
Only mypy missing now...
2023-06-30 19:29:28 +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
fb50b8f829
Fix duplicate testcase after merge
2022-12-13 09:40:24 +01:00
Florian Bruhin
b4d32e04f4
Merge branch 'master' into qt6-v2
2022-12-13 09:05:32 +01:00
Florian Bruhin
20139061ae
tests: Use set comprehensions
2022-12-01 20:50:29 +01:00
Florian Bruhin
eb5c019d07
Add tests to make sure quirk files/declaration/settings match
2022-11-29 09:26:49 +01:00
Florian Bruhin
f837da40f2
qt 6: Remove old JS quirks
...
We don't support Qt 5.12 anymore, so those can go.
2022-11-29 09:21:34 +01:00
Florian Bruhin
68dbde61fd
Add a quirk for Array.at
...
Trivial to polyfill, needed by various pages in the wild,
and only natively available with Qt 6.2.
Closes #7501
Also see #7237 and 726d5e614b
(cherry picked from commit ce64e5d899 )
2022-11-29 08:57:29 +01:00
Florian Bruhin
ce64e5d899
Add a quirk for Array.at
...
Trivial to polyfill, needed by various pages in the wild,
and only natively available with Qt 6.2.
Closes #7501
Also see #7237 and 726d5e614b
2022-11-29 08:31:05 +01:00
Florian Bruhin
769ef6859f
Adjust some fixme comments
2022-08-23 18:31:42 +02:00
Florian Bruhin
ebdf248e44
WIP: Avoid linter issues with temporary Qt wrappers
2022-08-23 18:31:41 +02:00
Florian Bruhin
51f1420ef5
qt 6: Comprehensive core moves
...
According to docs, even for stuff we don't use so far
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
0877fb0d78
Run scripts/dev/rewrite_enums.py
2022-08-23 18:31:38 +02:00
Florian Bruhin
d47cfd99d7
Run scripts/dev/rewrite_qt_imports.sh
2022-08-23 18:09:11 +02:00
Florian Bruhin
aec6014242
Revert "Add LinkedIn array.at quirk"
...
This reverts commit 5e0d6dc148 .
This seems to have been fixed on LinkedIn's side in the meantime.
Also removes the associated changelog entry.
2022-06-22 09:37:26 +02:00
Florian Bruhin
5e0d6dc148
Add LinkedIn array.at quirk
...
Closes #7237
2022-06-20 17:25:52 +02:00
Florian Bruhin
4df7aedf2b
tests: Improve greasemonkey tests
2022-06-20 16:44:24 +02:00
Florian Bruhin
e5d091bbab
greasemonkey: Add some more tests
2022-06-18 15:27:59 +02:00
Florian Bruhin
21419c9ef5
greasemonkey: Don't implicitly load scripts
...
Needed for #7245 and also seems like cleaner code.
2022-06-17 17:05:17 +02:00
Florian Bruhin
b0d3c8eee3
Greasemonkey: Make sure script names are unique
...
Fixes #6353
2021-06-11 19:14:14 +02:00
Florian Bruhin
62a8124f37
Fix quirk tests
2021-04-13 11:30:31 +02:00
Lembrun
880dd82be8
Changing path.open to read_text
2021-03-12 22:29:50 +01:00
Lembrun
59e0449471
Added blank line
2021-03-11 20:19:18 +01:00
Lembrun
148d5f25ef
Created JS_DIR and moved str(css_path)
2021-03-11 20:13:34 +01:00
Lembrun
c947488dd7
Changed joinpath to /
2021-03-11 08:36:57 +01:00
Lembrun
744cd94469
Removed unused import os in tests/unit/javascript
2021-03-10 10:49:21 +01:00
Lembrun
6aa6a9d0f5
Merge branch 'master' into pathlib-/unit/javascript
2021-03-09 22:46:25 +01:00
Florian Bruhin
0a38fff4c6
Simplify test_greasemonkey via js_tester fixture
2021-03-09 18:42:19 +01:00
Lembrun
260f91de56
Replaced os.path by the pathlib equivalent in unit/javascript folder
2021-03-03 15:35:40 +01:00
Lembrun
e8b05af233
Qtbot methods changed to snake case,snake case check added
2021-02-26 22:07:08 +01:00
Florian Bruhin
1598425a05
Handle regex special chars in replaceAll polyfill
...
Fixes #6206
See #6047 and #6208
2021-02-24 21:32:53 +01:00
Florian Bruhin
a9bcb39cd7
Add unit tests for JS quirks
2021-02-11 18:00:42 +01: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
Bryon Meinka
846825bb95
load scripts from config directory
...
fixes #5615
2020-11-29 17:12:45 -05:00
Florian Bruhin
05111e8423
old qt: Adjust greasemonkey support
2020-11-04 11:30:54 +01:00
Florian Bruhin
a4d1b88348
tests: Don't set iframe.src in test_appendchild.js
...
The test file was taken from acid3, which does actually serve documents
for those locations.
For us, those documents never were available (as we're using `setHtml`
which uses a `data` URL internally), but the test does work just fine
without them. It was intended to test `appendChild` with different tags,
see the original commit (6c241f96ed ) as
well as #2723 for details.
So far, them being there wasn't a problem, but with Qt 5.15.2 (or rather
the underlying Chromium 83), we get errors logged like this one:
"Invalid relative frame source URL (xhtml.3) within data URL.", source: (47)
So let's just not set them at all.
See #5752 .
2020-10-13 18:05:25 +02:00
Florian Bruhin
c99bf8ba32
tests: Retry setting JS HTML if loading timed out
...
Should hopefully help with flakiness on macOS...
See #5390
2020-07-28 20:40:29 +02:00
Florian Bruhin
4b9ddfb85b
tests: Simplify some open() calls
2020-06-24 10:26:46 +02:00
Jordan Cannon
76d1c436a6
Add test for greasemonkey shared window proxy
2020-03-07 07:25:24 -06:00
Florian Bruhin
9e4276db9b
Adjust copyrights for 2020
2020-01-04 18:21:17 +01:00
Florian Bruhin
7b87f6760f
Split config.stylesheet into separate module
...
This avoids circular imports such as:
urlutils -> config -> jinja -> urlutils
2019-12-20 16:54:08 +01:00
Florian Bruhin
23061dbe10
tests: Change some marks from skipif to xfail
2019-11-19 16:20:40 +01:00
Florian Bruhin
22e1b22acc
Remove unused import
2019-02-25 11:26:44 +01:00
Florian Bruhin
184e0ee44e
Rename force_document_end to needs_document_end_workaround
2019-02-25 09:57:17 +01:00
Florian Bruhin
94542c5f78
Merge branch 'greasemonkey-quirks'
2019-02-25 09:56:18 +01:00