| Index: chrome/browser/autocomplete/autocomplete_edit_view_mac.mm
|
| ===================================================================
|
| --- chrome/browser/autocomplete/autocomplete_edit_view_mac.mm (revision 29719)
|
| +++ chrome/browser/autocomplete/autocomplete_edit_view_mac.mm (working copy)
|
| @@ -825,6 +825,11 @@
|
| WindowOpenDisposition disposition =
|
| event_utils::WindowOpenDispositionFromNSEvent(event);
|
| edit_view_->AcceptInput(disposition, false);
|
| + // Opening a URL in a background tab should also revert the omnibox contents
|
| + // to their original state. We cannot do a blanket revert in OpenURL()
|
| + // because middle-clicks also open in a new background tab, but those should
|
| + // not revert the omnibox text.
|
| + edit_view_->RevertAll();
|
| return YES;
|
| }
|
|
|
|
|