Fix crash when a resource is cancelled due to browser closing (issue #2165)
This commit is contained in:
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);
|
||||
|
|
Loading…
Reference in New Issue