diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-03-02 13:30:46 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-03-02 13:32:06 +0100 |
commit | b6c297c4e4c9a9e3a09a27cd1b217e79541abb7f (patch) | |
tree | 10eb4c1c74f4afb512f94bacbb78fb2566c220b1 | |
parent | 0b5f110234256eabaa264189d9117069f2a2d144 (diff) | |
parent | a059e7404a6db799f4da0ad696e65ae9c854b4b0 (diff) |
Merge remote-tracking branch 'origin/5.15.3' into 5.15
Change-Id: I5f8aa9bb11f7035aca70d6ae3c883f9616af4235
m--------- | src/3rdparty | 0 | ||||
-rw-r--r-- | src/core/profile_adapter.cpp | 3 | ||||
-rw-r--r-- | src/core/profile_qt.cpp | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/3rdparty b/src/3rdparty -Subproject 4cb5565114c77a22dee9c337a5be1f7d8f3e463 +Subproject d9d9e606cb34b1b4ac0f44de132b1eb10763f1f diff --git a/src/core/profile_adapter.cpp b/src/core/profile_adapter.cpp index 81c4f9809..dff98717d 100644 --- a/src/core/profile_adapter.cpp +++ b/src/core/profile_adapter.cpp @@ -121,6 +121,7 @@ ProfileAdapter::ProfileAdapter(const QString &storageName): ProfileAdapter::~ProfileAdapter() { + content::BrowserContext::NotifyWillBeDestroyed(m_profile.data()); while (!m_webContentsAdapterClients.isEmpty()) { m_webContentsAdapterClients.first()->releaseProfile(); } @@ -131,7 +132,9 @@ ProfileAdapter::~ProfileAdapter() } #if QT_CONFIG(ssl) delete m_clientCertificateStore; + m_clientCertificateStore = nullptr; #endif + WebEngineContext::flushMessages(); } void ProfileAdapter::setStorageName(const QString &storageName) diff --git a/src/core/profile_qt.cpp b/src/core/profile_qt.cpp index dac6658e2..36303605f 100644 --- a/src/core/profile_qt.cpp +++ b/src/core/profile_qt.cpp @@ -111,8 +111,6 @@ ProfileQt::~ProfileQt() { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); m_prefServiceAdapter.commit(); - content::BrowserContext::NotifyWillBeDestroyed(this); - WebEngineContext::flushMessages(); BrowserContextDependencyManager::GetInstance()->DestroyBrowserContextServices(this); ShutdownStoragePartitions(); m_profileIOData->shutdownOnUIThread(); |