W3cubDocs

/Web Extensions

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

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
ACTION_MENU_TOP_LEVEL_LIMIT
Yes
14
55
48
?
Yes
14
?
?
No
?
?
?

Note: This API is based on Chromium's chrome.contextMenus API. This documentation is derived from context_menus.json in the Chromium code.

© 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/menus/ACTION_MENU_TOP_LEVEL_LIMIT