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

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

Issue 701953006: PlzNavigate: Speculatively spawns a renderer process for navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index f70b5808da311d3ae0d0c68be53834ef2c510cc6..fdfa5584f5fe81be53d48c404d8ac5a8da5eea88 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -1403,6 +1403,10 @@ void RenderFrameHostImpl::CommitNavigation(
// TODO(clamy): Check if we have to add security checks for the browser plugin
// guests.
+ // Get back to a clean state, in case we start a new navigation without
+ // completing a RFH swap or unload handler.
+ SetState(RenderFrameHostImpl::STATE_DEFAULT);
+
Send(new FrameMsg_CommitNavigation(
routing_id_, response->head, body->GetURL(),
common_params, commit_params));

Powered by Google App Engine
This is Rietveld 408576698