Index: content/browser/frame_host/render_frame_host_manager.cc |
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc |
index 5e0872c30b7469b44c38154fefdba2631c72a852..679ad4144dc0f9ec94b8ce9706781a4f070da65a 100644 |
--- a/content/browser/frame_host/render_frame_host_manager.cc |
+++ b/content/browser/frame_host/render_frame_host_manager.cc |
@@ -581,6 +581,14 @@ void RenderFrameHostManager::CommitNavigation( |
const NavigationBeforeCommitInfo& info) { |
CHECK(CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableBrowserSideNavigation)); |
+ DCHECK(navigation_request_.get()); |
+ // Ignores navigation commits if the request ID doesn't match the current |
+ // active request. |
+ if (navigation_request_->navigation_request_id() != |
+ info.navigation_request_id) { |
+ return; |
+ } |
+ |
// Pick the right RenderFrameHost to commit the navigation. |
SiteInstance* current_instance = render_frame_host_->GetSiteInstance(); |
// TODO(clamy): Replace the default values by the right ones. This may require |