Index: chrome/browser/ui/omnibox/omnibox_edit_model.cc |
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc |
index 6ffa9fd189e8c1b00ca98208fe7b2acb21fe46fd..85f147e9af525720c8ff08efa3631e47523170e1 100644 |
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc |
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc |
@@ -637,7 +637,7 @@ void OmniboxEditModel::OpenMatch(const AutocompleteMatch& match, |
match.fill_into_edit.length() - match.inline_autocomplete_offset; |
} |
- if (disposition == CURRENT_TAB) { |
+ if ((disposition == CURRENT_TAB) && delegate_->CurrentPageExists()) { |
// If we know the destination is being opened in the current tab, |
// we can easily get the tab ID. (If it's being opened in a new |
// tab, we don't know the tab ID yet.) |