diff options
author | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2016-01-15 16:47:06 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2016-01-28 16:53:12 +0000 |
commit | 64da0f73b2f8a2f936113fd556c9477cea441ded (patch) | |
tree | 8b30dbde7120d758eba444234806bc7e26909f1d /tests/auto/widgets/qwebengineprofile/qwebengineprofile.pro | |
parent | 97c17e70cf984839c6e95d8f09a55f8d1e61b42e (diff) |
Fix crash on exit for view-owned QWebEngineUrlSchemeHandler objects
For view-owned URL scheme handlers the destructor would remove the
handler and then trigger URLRequestContextGetterQt::generateStorage.
This would access the browser context from the IO thread while it
already has been destroyed on the browser thread.
Increment the ref count for the browser context before every call
of generateStorage, and decrement it when generateStorage is
finished.
Task-number: QTBUG-50160
Change-Id: Id8b1505891ec56e93bf9d47f33bb8bc3304eb55a
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'tests/auto/widgets/qwebengineprofile/qwebengineprofile.pro')
0 files changed, 0 insertions, 0 deletions