summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-03-02 13:30:46 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-03-04 13:02:58 +0100
commit5758a239ea612128a12c677bf67d33ec20cf8dc8 (patch)
treec8707d8a4e18dbbec6e5f24d660ccf18666e1ff4
parentd7321959bafdfa80d866ee25b4b9043e8be3a2d1 (diff)
parentb6c297c4e4c9a9e3a09a27cd1b217e79541abb7f (diff)
Merge "Merge remote-tracking branch 'origin/5.15.3' into 5.15"
m---------src/3rdparty0
-rw-r--r--src/core/profile_adapter.cpp3
-rw-r--r--src/core/profile_qt.cpp2
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();