diff options
author | Jüri Valdmann <juri.valdmann@qt.io> | 2018-03-01 15:46:51 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2018-03-08 14:41:13 +0000 |
commit | 0e94374ae00236ab94036e9aefb5a5abdf7d14e1 (patch) | |
tree | d6fc46c589391a1e06ab811cd6dd572da5bf1a13 /src/core/web_contents_delegate_qt.cpp | |
parent | a03fb5fc7ac03c35739324d63eb29da756e1e908 (diff) |
Avoid use-after-free of ProtocolHandlerRegistry
Change-Id: Ib84a80472a93f53f3675cb8c2db6fa377322b86b
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/web_contents_delegate_qt.cpp')
-rw-r--r-- | src/core/web_contents_delegate_qt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/web_contents_delegate_qt.cpp b/src/core/web_contents_delegate_qt.cpp index bec4d5d2f..2cbb9e477 100644 --- a/src/core/web_contents_delegate_qt.cpp +++ b/src/core/web_contents_delegate_qt.cpp @@ -655,7 +655,7 @@ void WebContentsDelegateQt::RegisterProtocolHandler(content::WebContents *webCon return; QSharedPointer<RegisterProtocolHandlerPermissionController> controller( - new RegisterProtocolHandlerPermissionControllerImpl(registry, handler)); + new RegisterProtocolHandlerPermissionControllerImpl(webContents, handler)); m_viewClient->runRegisterProtocolHandlerPermissionRequest(std::move(controller)); } |