mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-16 20:20:51 +01:00
Fix crash when a resource is cancelled due to browser closing (issue #2165)
This commit is contained in:
parent
22354a9e04
commit
25a0d02077
@ -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…
x
Reference in New Issue
Block a user