Index: content/renderer/render_frame_impl.cc |
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc |
index b9c3fc7b761494e886b4fb26ddbaa5bc0b7d4ead..06ccc58a40cf531fc86a9987f39f66b508bc1cdc 100644 |
--- a/content/renderer/render_frame_impl.cc |
+++ b/content/renderer/render_frame_impl.cc |
@@ -2531,7 +2531,8 @@ void RenderFrameImpl::didCommitProvisionalLoad( |
// UpdateSessionHistory and update page_id_ even in this case, so that |
// the current entry gets a state update and so that we don't send a |
// state update to the wrong entry when we swap back in. |
- if (GetLoadingUrl() != GURL(kSwappedOutURL)) { |
+ if (GetLoadingUrl() != GURL(kSwappedOutURL) && |
+ !navigation_state->should_replace_current_entry()) { |
// Advance our offset in session history, applying the length limit. |
// There is now no forward history. |
render_view_->history_list_offset_++; |