https://bugs.kde.org/show_bug.cgi?id=407454

--- Comment #3 from Johannes Hirte <johannes.hi...@datenkhaos.de> ---
This can't work. s_cookieJar is declared static, but QWebEngineProfile *prof is
set as parent QObject, that will try to delete it on shutdown. Following patch
fixed it for me:

diff --git a/webenginepart/src/webenginepart.cpp
b/webenginepart/src/webenginepart.cpp
index bfd16ff4a..eaadda781 100644
--- a/webenginepart/src/webenginepart.cpp
+++ b/webenginepart/src/webenginepart.cpp
@@ -95,7 +95,7 @@ WebEnginePart::WebEnginePart(QWidget *parentWidget, QObject
*parent,
         prof->installUrlSchemeHandler("error", new
WebEnginePartErrorSchemeHandler(prof));
         prof->installUrlSchemeHandler("help", new
WebEnginePartKIOHandler(prof));
     }
-    static WebEnginePartCookieJar s_cookieJar(prof, prof);
+    static WebEnginePartCookieJar s_cookieJar(prof, nullptr);
     KAboutData about = KAboutData(QStringLiteral("webenginepart"),
                                   i18nc("Program Name", "WebEnginePart"),
                                   /*version*/ QStringLiteral("1.3.0"),

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to