Chromium Code Reviews| 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 de1df6f7b5efef341dddfa48a57c8b324b3b1400..5cde38fb9c146cb462eecf55a63f2c22b393c99e 100644 |
| --- a/content/browser/frame_host/frame_tree_node.cc |
| +++ b/content/browser/frame_host/frame_tree_node.cc |
| @@ -383,8 +383,14 @@ void FrameTreeNode::CreatedNavigationRequest( |
| // There's no need to reset the state: there's still an ongoing load, and the |
| // RenderFrameHostManager will take care of updates to the speculative |
| // RenderFrameHost in DidCreateNavigationRequest below. |
| - if (was_previously_loading) |
| + if (was_previously_loading) { |
| + if (navigation_request_) { |
| + // Mark the old request as aborted. |
| + navigation_request_->navigation_handle()->set_net_error_code( |
|
Charlie Reis
2017/03/24 20:11:09
I'm curious if this belongs in ResetNavigationRequ
jam
2017/03/24 22:08:26
That's a good question; I didn't see any obvious p
|
| + net::ERR_ABORTED); |
| + } |
| ResetNavigationRequest(true, true); |
| + } |
| navigation_request_ = std::move(navigation_request); |
| render_manager()->DidCreateNavigationRequest(navigation_request_.get()); |