mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix crash when a resource is cancelled due to browser closing (issue #2165)
This commit is contained in:
committed by
Marshall Greenblatt
parent
e5ad5a8fcd
commit
96f9108343
@@ -53,6 +53,8 @@ void SendExecuteMimeTypeHandlerEvent(
|
||||
web_contents = content::WebContents::FromRenderFrameHost(
|
||||
content::RenderFrameHost::FromID(render_process_id, render_frame_id));
|
||||
}
|
||||
if (!web_contents)
|
||||
return;
|
||||
|
||||
CefRefPtr<CefBrowserHostImpl> browser =
|
||||
CefBrowserHostImpl::GetBrowserForContents(web_contents);
|
||||
|
Reference in New Issue
Block a user