diff options
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 53b5c31..145c600 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -685,6 +685,11 @@ void Browser::Reload() { return; } + // Forcibly reset the location bar, since otherwise it won't discard any + // ongoing user edits, since it doesn't realize this is a user-initiated + // action. + window_->GetLocationBar()->Revert(); + // As this is caused by a user action, give the focus to the page. current_tab->Focus(); current_tab->controller().Reload(true); |