Revert "Add a workaround to save cookies on exit"
This causes sqlite cookie errors from Chromium on shutdown...
See #2263
This reverts commit 8d55d093f2
.
This commit is contained in:
parent
2b6b18d7bf
commit
e487fe441e
@ -58,8 +58,6 @@ Fixed
|
||||
- Crash reports are now re-enabled when using QtWebEngine
|
||||
- Fixed crashes when closing tabs while hinting
|
||||
- Fixed starting on newer PyQt/sip versions with LibreSSL
|
||||
- Worked around a Qt bug which caused cookies newer than 30s not to be saved on
|
||||
exit with QtWebEngine.
|
||||
|
||||
v0.9.1
|
||||
------
|
||||
|
@ -26,7 +26,6 @@ Module attributes:
|
||||
|
||||
import os
|
||||
|
||||
from PyQt5.QtNetwork import QNetworkCookie
|
||||
# pylint: disable=no-name-in-module,import-error,useless-suppression
|
||||
from PyQt5.QtWebEngineWidgets import (QWebEngineSettings, QWebEngineProfile,
|
||||
QWebEngineScript)
|
||||
@ -172,11 +171,8 @@ def init(args):
|
||||
|
||||
|
||||
def shutdown():
|
||||
# WORKAROUND for https://bugreports.qt.io/browse/QTBUG-58675
|
||||
# This forces Chromium to flush its cookie store but doesn't actually
|
||||
# delete anything.
|
||||
cookie = QNetworkCookie()
|
||||
QWebEngineProfile.defaultProfile().cookieStore().deleteCookie(cookie)
|
||||
# FIXME:qtwebengine do we need to do something for a clean shutdown here?
|
||||
pass
|
||||
|
||||
|
||||
# Missing QtWebEngine attributes:
|
||||
|
Loading…
Reference in New Issue
Block a user