omnibox
Type | Object |
---|---|
Mandatory | No |
Example |
|
Use the omnibox
key to define an omnibox keyword for your extension.
When the user types this keyword into the browser's address bar, followed by a space, then any subsequent characters will be sent to the extension using the omnibox
API. The extension will then be able to populate the address bar's drop-down suggestions list with its own suggestions.
If two or more extensions define the same keyword, then the extension that was installed last gets to control the keyword. Any previously installed extensions that defined the same keyword will no longer be able to use the omnibox
API.
Example
"omnibox": {
"keyword": "mdn"
}
Browser compatibility
Report problems with this compatibility data on GitHubwebextensions-desktop | webextensions-mobile | |||||
---|---|---|---|---|---|---|
omnibox | ChromeFull supportYes | EdgeFull support79 | FirefoxFull support52 | OperaFull supportYes | SafariNo supportNo | Firefox for AndroidNo supportNo |
key | ChromeFull supportYes | EdgeFull support79 | FirefoxFull support52 | OperaFull supportYes | SafariNo supportNo | Firefox for AndroidNo supportNo |
Legend
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.