Chromium Code Reviews| Index: content/browser/frame_host/navigator_impl.cc |
| diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc |
| index 9a211eee80eb1e22f74bb54b107430243be72bcc..c8fd97d6c1874f95de2dd973a97d562fa0e760ea 100644 |
| --- a/content/browser/frame_host/navigator_impl.cc |
| +++ b/content/browser/frame_host/navigator_impl.cc |
| @@ -650,8 +650,9 @@ void NavigatorImpl::OnBeginNavigation( |
| } |
| // In all other cases the current navigation, if any, is canceled and a new |
| - // NavigationRequest is created and stored in the map. Actual cancellation |
| - // happens when the existing request map entry is replaced and destroyed. |
| + // NavigationRequest is created and stored in the map. |
| + if (ongoing_navigation_request) |
| + CancelNavigation(frame_tree_node); |
|
nasko
2015/03/16 18:48:37
nit: Blank line after this new CancelNavigation ca
carlosk
2015/03/17 14:42:59
Don't we need to do the same in NavigatorImpl::Req
clamy
2015/03/18 13:55:55
Done.
clamy
2015/03/18 13:55:55
Done.
|
| scoped_ptr<NavigationRequest> navigation_request = |
| NavigationRequest::CreateRendererInitiated( |
| frame_tree_node, common_params, begin_params, body, |