diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-11-22 22:08:24 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-11-22 22:08:24 +0100 |
commit | ea7fb86706baa76f9ac57b314a8a9d9bbe48c168 (patch) | |
tree | 626a877210832f0a17502efd886f656b4ab79a5f | |
parent | 8a53e9b282749f5ff17d40366077bc8a00a1ef16 (diff) | |
download | qutebrowser-ea7fb86706baa76f9ac57b314a8a9d9bbe48c168.tar.gz qutebrowser-ea7fb86706baa76f9ac57b314a8a9d9bbe48c168.zip |
tests: Also disable PaintHoldingCrossOrigin for unit tests
See https://bugreports.qt.io/browse/QTBUG-112017 and #5390
-rw-r--r-- | tests/conftest.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 2fea48c43..9d7c5c29c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -197,7 +197,12 @@ def qapp_args(): """Make QtWebEngine unit tests run on older Qt versions + newer kernels.""" if testutils.disable_seccomp_bpf_sandbox(): return [sys.argv[0], testutils.DISABLE_SECCOMP_BPF_FLAG] - return [sys.argv[0]] + + # Disabling PaintHoldingCrossOrigin makes tests needing UI interaction with + # QtWebEngine more reliable. + # Only needed with QtWebEngine and Qt 6.5, but Qt just ignores arguments it + # doesn't know about anyways. + return [sys.argv[0], "--webEngineArgs", "--disable-features=PaintHoldingCrossOrigin"] @pytest.fixture(scope='session') |