Florian Bruhin 2025-09-16 10:58:47 +02:00
parent 75239be8b6
commit 1f4ca40f78
1 changed files with 4 additions and 1 deletions

View File

@ -49,11 +49,14 @@ def fresh_instance(quteproc):
# 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
# 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 (
qtutils.version_check("6.8", compiled=False)
and PYQT_WEBENGINE_VERSION
and PYQT_WEBENGINE_VERSION < 0x60800
):
) or qtutils.version_check("6.10", compiled=False, exact=True):
quteproc.terminate()
quteproc.start()