menus.ACTION_MENU_TOP_LEVEL_LIMIT
The maximum number of top level extension items that can be added to a menu item whose ContextType
is "browser_action" or "page_action". Any items beyond this limit will be ignored.
Its value is 6
on Firefox and Chrome.
For compatibility with other browsers, Firefox makes this property available via the contextMenus
namespace as well as the menus
namespace.
Browser compatibility
Report problems with this compatibility data on GitHubwebextensions-desktop | webextensions-mobile | |||||
---|---|---|---|---|---|---|
ACTION_MENU_TOP_LEVEL_LIMIT | ChromeFull supportYes
| EdgeFull support14
| FirefoxFull support55
| OperaFull supportYes
| SafariFull support14
| Firefox for AndroidNo supportNo |
Legend
- Full support
- Full support
- No support
- No support
- Uses a non-standard name.
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.
Acknowledgements
This API is based on Chromium's chrome.contextMenus
API. This documentation is derived from context_menus.json
in the Chromium code.