tests: Work around Qt 6.10 permission persistence bug
https://bugreports.qt.io/browse/QTBUG-140194 https://github.com/qutebrowser/qutebrowser/issues/8694#issuecomment-3274635002
This commit is contained in:
parent
75239be8b6
commit
1f4ca40f78
|
|
@ -49,11 +49,14 @@ def fresh_instance(quteproc):
|
||||||
# Qt6.8 by default will remember feature grants or denies. When we are
|
# Qt6.8 by default will remember feature grants or denies. When we are
|
||||||
# on PyQt6.8 we disable that with the new API, otherwise restart the
|
# on PyQt6.8 we disable that with the new API, otherwise restart the
|
||||||
# browser to make it forget previous prompts.
|
# browser to make it forget previous prompts.
|
||||||
|
#
|
||||||
|
# Qt 6.10 Beta 4 accidentally persists some permissions;
|
||||||
|
# WORKAROUND for https://bugreports.qt.io/browse/QTBUG-140194
|
||||||
if (
|
if (
|
||||||
qtutils.version_check("6.8", compiled=False)
|
qtutils.version_check("6.8", compiled=False)
|
||||||
and PYQT_WEBENGINE_VERSION
|
and PYQT_WEBENGINE_VERSION
|
||||||
and PYQT_WEBENGINE_VERSION < 0x60800
|
and PYQT_WEBENGINE_VERSION < 0x60800
|
||||||
):
|
) or qtutils.version_check("6.10", compiled=False, exact=True):
|
||||||
quteproc.terminate()
|
quteproc.terminate()
|
||||||
quteproc.start()
|
quteproc.start()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue