From ea7fb86706baa76f9ac57b314a8a9d9bbe48c168 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 22 Nov 2023 22:08:24 +0100 Subject: tests: Also disable PaintHoldingCrossOrigin for unit tests See https://bugreports.qt.io/browse/QTBUG-112017 and #5390 --- tests/conftest.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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') -- cgit v1.2.3-54-g00ecf