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

Unified Diff: content/browser/tab_contents/navigation_controller.cc

Issue 7491096: Fix regression with back-button not working on prerendered and instant pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a swap Created 9 years, 4 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/tab_contents/navigation_controller.cc
diff --git a/content/browser/tab_contents/navigation_controller.cc b/content/browser/tab_contents/navigation_controller.cc
index e29ecc31ded29d91e7b56219710a56d94a821cfe..05e3de491d97ea174bc8375d14fe03430905dd91 100644
--- a/content/browser/tab_contents/navigation_controller.cc
+++ b/content/browser/tab_contents/navigation_controller.cc
@@ -931,6 +931,9 @@ void NavigationController::CopyStateFromAndPrune(NavigationController* source,
if (last_committed_entry_index_ != -1)
last_committed_entry_index_--;
}
+
+ // Send a message to active render view asking to offset messages.
+ tab_contents_->ShiftHistory(entry_count() - 1);
}
void NavigationController::PruneAllButActive() {

Powered by Google App Engine
This is Rietveld 408576698