Clear navigation_handle early in RenderFrameHostImpl destructor.
This is to avoid inconsistent (half-destructed) RenderFrameHostImpl instance in WebContentsObserver::DidFinishNavigation, acessible through NavigationHandle instance. This happens in DevToolsManagerTest.ReattachOnCancelPendingNavigation, added DCHECK to RenderFrameDevToolsAgentHost. See crrev.com/2544893002 and crrev.com/2387353004 for more context. BUG=none CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2563863002 Cr-Commit-Position: refs/heads/master@{#437658}
Showing
Please register or sign in to comment