Commit 96f91083 authored by Andrew Warnick's avatar Andrew Warnick Committed by Marshall Greenblatt

Fix crash when a resource is cancelled due to browser closing (issue #2165)

parent e5ad5a8f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment