Commit 608f2d41 authored by Marshall Greenblatt's avatar Marshall Greenblatt
Browse files

Fix CHECK failure in CefBrowserHostImpl::DidFinishNavigation (issue #2125)

parent 54647945
......@@ -2503,7 +2503,12 @@ void CefBrowserHostImpl::RenderProcessGone(base::TerminationStatus status) {
void CefBrowserHostImpl::DidFinishNavigation(
content::NavigationHandle* navigation_handle) {
// This method may be called with a nullptr RenderFrameHost (RFH) when a
// provisional load is started. It should be called again with a non-nullptr
// RFH once the provisional load is committed or if the provisional load
// fails.
if (!navigation_handle->GetRenderFrameHost())
const net::Error error_code = navigation_handle->GetNetErrorCode();
if (error_code == net::OK) {
Supports Markdown
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