Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Unified Diff: content/browser/frame_host/navigator_impl.cc

Issue 1009993002: PlzNavigate: destroy the speculative RFH on renderer-initiated navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698