diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-27 13:49:30 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-03-01 22:32:13 +0000 |
commit | 4dc312011bcaa2ee2cf812b5b84dc9238130e608 (patch) | |
tree | 495513b9fe73d2d1e45ea84c3e00e43e4625a5ee /src/core/profile_adapter.cpp | |
parent | 9e299978cfb40e01f2871b71129a02f4b5b7404d (diff) |
Tie client certificate stores to profiles
Move the client certificate store from being global to being tied
to individual profiles.
Change-Id: Ib21ae14c501b7d0612b84ae7535120291aeeada2
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src/core/profile_adapter.cpp')
-rw-r--r-- | src/core/profile_adapter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/profile_adapter.cpp b/src/core/profile_adapter.cpp index 8ddeb5b8f..4625d238e 100644 --- a/src/core/profile_adapter.cpp +++ b/src/core/profile_adapter.cpp @@ -110,6 +110,7 @@ ProfileAdapter::~ProfileAdapter() m_profile->GetDownloadManager(m_profile.data())->Shutdown(); m_downloadManagerDelegate.reset(); } + delete m_clientCertificateStore; Q_ASSERT(m_pageRequestInterceptors == 0); } @@ -652,4 +653,11 @@ bool ProfileAdapter::isUsedForGlobalCertificateVerification() const return m_usedForGlobalCertificateVerification; } +QWebEngineClientCertificateStore *ProfileAdapter::clientCertificateStore() +{ + if (!m_clientCertificateStore) + m_clientCertificateStore = new QWebEngineClientCertificateStore(m_profile->m_profileIOData->clientCertificateStoreData()); + return m_clientCertificateStore; +} + } // namespace QtWebEngineCore |