summaryrefslogtreecommitdiffstats
path: root/src/core/web_contents_delegate_qt.cpp
diff options
context:
space:
mode:
authorJüri Valdmann <juri.valdmann@qt.io>2018-03-01 15:46:51 +0100
committerKai Koehne <kai.koehne@qt.io>2018-03-08 14:41:13 +0000
commit0e94374ae00236ab94036e9aefb5a5abdf7d14e1 (patch)
treed6fc46c589391a1e06ab811cd6dd572da5bf1a13 /src/core/web_contents_delegate_qt.cpp
parenta03fb5fc7ac03c35739324d63eb29da756e1e908 (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.cpp2
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));
}