| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index bbb37ff56f0fc551a406d65870a410df7911929f..60737ae6c7d2ec57f16d8c4df35564a98574afa2 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -1547,6 +1547,11 @@ void Browser::BeforeUnloadFired(WebContents* web_contents,
|
| }
|
|
|
| bool Browser::ShouldFocusLocationBarByDefault(WebContents* source) {
|
| + // Navigations in background tabs shouldn't change the focus state of the
|
| + // omnibox, since it's associated with the foreground tab.
|
| + if (source != tab_strip_model_->GetActiveWebContents())
|
| + return false;
|
| +
|
| const content::NavigationEntry* entry =
|
| source->GetController().GetActiveEntry();
|
| if (entry) {
|
|
|