Index: content/browser/devtools/render_frame_devtools_agent_host.cc |
diff --git a/content/browser/devtools/render_frame_devtools_agent_host.cc b/content/browser/devtools/render_frame_devtools_agent_host.cc |
index e5d64bff2495b7f09f841a5510aeccd5034d340d..478d1f0fb6b08056be7f2beb6cc04e58c718fef4 100644 |
--- a/content/browser/devtools/render_frame_devtools_agent_host.cc |
+++ b/content/browser/devtools/render_frame_devtools_agent_host.cc |
@@ -657,8 +657,8 @@ void RenderFrameDevToolsAgentHost::DidFinishNavigation( |
} |
if (session()) |
protocol::TargetHandler::FromSession(session())->UpdateServiceWorkers(); |
- } else if (pending_ && |
- pending_->host() == navigation_handle->GetRenderFrameHost()) { |
+ } else if (pending_ && pending_->host()->GetFrameTreeNodeId() == |
+ navigation_handle->GetFrameTreeNodeId()) { |
DiscardPending(); |
} |
DCHECK(CheckConsistency()); |