Index: content/browser/frame_host/frame_tree_node.cc |
diff --git a/content/browser/frame_host/frame_tree_node.cc b/content/browser/frame_host/frame_tree_node.cc |
index a67de695a205b85c456d5c8f63254140222ec10f..d9b9dbf90dc6edb55462404170e8489af9ca6097 100644 |
--- a/content/browser/frame_host/frame_tree_node.cc |
+++ b/content/browser/frame_host/frame_tree_node.cc |
@@ -363,9 +363,10 @@ void FrameTreeNode::CreatedNavigationRequest( |
navigation_request_ = std::move(navigation_request); |
render_manager()->DidCreateNavigationRequest(navigation_request_.get()); |
- // TODO(fdegans): Check if this is a same-document navigation and set the |
- // proper argument. |
- DidStartLoading(true, was_previously_loading); |
+ bool to_different_document = !FrameMsg_Navigate_Type::IsSameDocument( |
+ navigation_request_->common_params().navigation_type); |
+ |
+ DidStartLoading(to_different_document, was_previously_loading); |
} |
void FrameTreeNode::ResetNavigationRequest(bool keep_state) { |