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

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: Comment change 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..1a44ae1c5718ea055b81a2469c63dc8270ef70c2 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_--;
}
+
+ // Update the history in the RenderView.
+ tab_contents_->SetHistoryLengthAndClear(entry_count() - 1);
Charlie Reis 2011/08/09 20:59:31 There's some hidden assumptions here that make me
cbentzel 2011/08/09 21:21:12 We chatted about history.back() and history.forwar
}
void NavigationController::PruneAllButActive() {

Powered by Google App Engine
This is Rietveld 408576698