diff options
-rw-r--r-- | chrome/browser/browser.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 9050f19..1cc6f0b 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -1571,6 +1571,9 @@ void Browser::TabClosingAt(TabContents* contents, int index) { } void Browser::TabDetachedAt(TabContents* contents, int index) { + // Save what the user's currently typing. + window_->GetLocationBar()->SaveStateToContents(contents); + contents->set_delegate(NULL); if (!tabstrip_model_.closing_all()) SyncHistoryWithTabs(0); |