Skip to content

Commit 0951051

Browse files
committed
Fix crash on meet.google.com
This site crashes after 0185f41 when it tries to use the Hangouts extension. Background WebContent of this extension (and future guest views) doesn't have a corresponding WebContentsAdapterClient. Change-Id: I2028372a176a7194bf037093f9364d942bef969a Reviewed-by: Peter Varga <[email protected]> Reviewed-by: Allan Sandfeld Jensen <[email protected]>
1 parent 1905b33 commit 0951051

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/net/proxying_url_loader_factory_qt.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ QWebEngineUrlRequestInterceptor* InterceptedRequest::getPageInterceptor()
236236
{
237237
if (auto wc = webContents()) {
238238
auto view = static_cast<content::WebContentsImpl *>(wc)->GetView();
239-
WebContentsAdapterClient *client = WebContentsViewQt::from(view)->client();
240-
return client->webContentsAdapter()->requestInterceptor();
239+
if (WebContentsAdapterClient *client = WebContentsViewQt::from(view)->client())
240+
return client->webContentsAdapter()->requestInterceptor();
241241
}
242242
return nullptr;
243243
}

0 commit comments

Comments
 (0)