diff options
author | Kirill Burtsev <kirill.burtsev@qt.io> | 2019-10-17 18:04:51 +0200 |
---|---|---|
committer | Kirill Burtsev <kirill.burtsev@qt.io> | 2019-10-23 10:30:27 +0000 |
commit | 49e660a9e8e47c9cd81bb38f2b74575e7de50aca (patch) | |
tree | 8ef41171f208c9b769e509318e2a598e465e79c4 /LICENSE.GPL3-EXCEPT | |
parent | 9bba6cf6ebdb1f174312d447711f3a9a2d33fbe2 (diff) |
Track request interceptor destroy and update profile io data accordingly
On destroy profile level interceptor is cleaned through QPointer
in ProfileAdapter but not in ProfileIOData where it is stored as
a raw pointer and used by NetworkDelegateQt.
Track 'destroyed' signal and clean it from ProfileIOData,
which resolves these issues after interceptor is deleted
without explicitly being reset in profile:
- for deprecated 'setRequestInterceptor': one of possible
access violation in NetworkDelegateQt::OnBeforeURLRequest
- for setUrlRequestInterceptor: sending URLRequestNotification
for every url request after interceptor is deleted
Fixes: QTBUG-79156
Change-Id: Ie2dd3f0909bc45748278c5f97c5c2701742591b5
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'LICENSE.GPL3-EXCEPT')
0 files changed, 0 insertions, 0 deletions