summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-27 19:39:54 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-27 19:39:54 +0000
commitaacfcc78f2fc853bb8eecb33afb30e19a6b34e90 (patch)
treee3e01634369a802254f40838ce49bf5eb78e2977
parentea0269b4343fa25cc5d8f72c8542ea14185354d6 (diff)
downloadchromium_src-aacfcc78f2fc853bb8eecb33afb30e19a6b34e90.zip
chromium_src-aacfcc78f2fc853bb8eecb33afb30e19a6b34e90.tar.gz
chromium_src-aacfcc78f2fc853bb8eecb33afb30e19a6b34e90.tar.bz2
Don't lose omnibox edits when dragging tabs out. Patch by Yuzo Fujishima (see http://codereview.chromium.org/115558 ), r=beng.
BUG=10632 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17012 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/browser.cc3
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);