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

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

parent 54647945
...@@ -2503,7 +2503,12 @@ void CefBrowserHostImpl::RenderProcessGone(base::TerminationStatus status) { ...@@ -2503,7 +2503,12 @@ void CefBrowserHostImpl::RenderProcessGone(base::TerminationStatus status) {
void CefBrowserHostImpl::DidFinishNavigation( void CefBrowserHostImpl::DidFinishNavigation(
content::NavigationHandle* navigation_handle) { content::NavigationHandle* navigation_handle) {
CHECK(navigation_handle->GetRenderFrameHost()); // 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())
return;
const net::Error error_code = navigation_handle->GetNetErrorCode(); const net::Error error_code = navigation_handle->GetNetErrorCode();
if (error_code == net::OK) { if (error_code == net::OK) {
......
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