From 69f122c39844128bd2714180feb092db3de5a31a Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Thu, 25 Jun 2015 17:33:34 +0200 Subject: Fix crash when navigating an adopted window If the original opener has been closed, the factory client might point at a wrong object. To avoid that we can update it when we get the real client. It does not matter for CreateRenderWidgetHostViewQtDelegate which object it is called on. Change-Id: I7161e7436fca45c41f51cab8983d9c7214f11047 Reviewed-by: Jocelyn Turcotte (Woboq GmbH) --- src/core/web_contents_view_qt.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/core/web_contents_view_qt.cpp b/src/core/web_contents_view_qt.cpp index 932170634..af0c1fe38 100644 --- a/src/core/web_contents_view_qt.cpp +++ b/src/core/web_contents_view_qt.cpp @@ -50,6 +50,7 @@ namespace QtWebEngineCore { void WebContentsViewQt::initialize(WebContentsAdapterClient* client) { m_client = client; + m_factoryClient = client; // Check if a RWHV was created before the initialization. if (m_webContents->GetRenderWidgetHostView()) -- cgit v1.2.3