Chromium Code Reviews| 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() { |