diff options
author | Jüri Valdmann <juri.valdmann@qt.io> | 2018-06-05 12:59:54 +0200 |
---|---|---|
committer | Jüri Valdmann <juri.valdmann@qt.io> | 2018-06-06 12:49:48 +0000 |
commit | e66cfdc60da206d2f25429574fa8db59e240dbda (patch) | |
tree | c326ba6126a6e895f51376dbead9efb6ab470de7 /src/core/net/cookie_monster_delegate_qt.h | |
parent | 542c5b698cb9586aac48cc4dda66a6a2f98c905e (diff) |
Fix use-after-free of QWebEngineCookieStorePrivate
After cfddf26f7 tst_qwebenginecookiestore is crashing for me due to
onDeleteCallbackResult being invoked after QWebEngineCookieStorePrivate has been
already destroyed.
Change-Id: I890c15ed789a0e7410b5577ab545a6021f6d6ece
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/net/cookie_monster_delegate_qt.h')
-rw-r--r-- | src/core/net/cookie_monster_delegate_qt.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/net/cookie_monster_delegate_qt.h b/src/core/net/cookie_monster_delegate_qt.h index 8aceca9c9..8717e17d0 100644 --- a/src/core/net/cookie_monster_delegate_qt.h +++ b/src/core/net/cookie_monster_delegate_qt.h @@ -95,6 +95,14 @@ private: void DeleteCookieOnIOThread(const GURL& url, const std::string& cookie_name); void DeleteSessionCookiesOnIOThread(net::CookieMonster::DeleteCallback callback); void DeleteAllOnIOThread(net::CookieMonster::DeleteCallback callback); + + void GetAllCookiesCallbackOnIOThread(qint64 callbackId, const net::CookieList &cookies); + void SetCookieCallbackOnIOThread(qint64 callbackId, bool success); + void DeleteCookiesCallbackOnIOThread(qint64 callbackId, uint numCookies); + + void GetAllCookiesCallbackOnUIThread(qint64 callbackId, const QByteArray &cookies); + void SetCookieCallbackOnUIThread(qint64 callbackId, bool success); + void DeleteCookiesCallbackOnUIThread(qint64 callbackId, uint numCookies); }; } |