omnibox.OnInputEnteredDisposition

The omnibox.OnInputEnteredDisposition type describes how the extension should handle a user selection from the suggestions in the address bar's drop-down list.

It's passed into the omnibox.onInputEntered event listener, along with the selection itself.

Type

Values of this type are strings. They may take any one of the following values:

"currentTab"
Open the selection in the current tab.
"newForegroundTab"
Open the selection in a new tab, and bring this new tab into the foreground.
"newBackgroundTab"
Open the selection in a new background tab, keeping the current tab in the foreground.

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
OnInputEnteredDisposition
Yes
79
52
?
Yes
No
?
?
No
?
?
?

Note: This API is based on Chromium's chrome.omnibox API.

Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/omnibox/OnInputEnteredDisposition