summaryrefslogtreecommitdiffstats
path: root/src/core/profile_adapter.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-07-02 10:28:50 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-07-02 12:13:14 +0200
commit7433e47ab1c9a2c0b2a0f1bc3a21d3c6ba36b071 (patch)
treeb8230b7803bf735a72e3b32abd201bd9ca110159 /src/core/profile_adapter.cpp
parent01f45d0b536ac2dad7493c826907ded7a76f59d6 (diff)
Cancel favicon requests explicitly
Better to do it before we invalidate the profile. Pick-to: 6.2 Change-Id: I2448bc522a973d26cb51aebe2f413bf30ca3edef Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/core/profile_adapter.cpp')
-rw-r--r--src/core/profile_adapter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/profile_adapter.cpp b/src/core/profile_adapter.cpp
index 7faeecf9b..60f74ff80 100644
--- a/src/core/profile_adapter.cpp
+++ b/src/core/profile_adapter.cpp
@@ -120,6 +120,7 @@ ProfileAdapter::ProfileAdapter(const QString &storageName):
ProfileAdapter::~ProfileAdapter()
{
+ m_cancelableTaskTracker->TryCancelAll();
content::BrowserContext::NotifyWillBeDestroyed(m_profile.data());
while (!m_webContentsAdapterClients.isEmpty()) {
m_webContentsAdapterClients.first()->releaseProfile();