Add items to the browser's menu system.

This API is modeled on Chrome's "contextMenus" API, which enables Chrome extensions to add items to the browser's context menu. The browser.menus API adds a few features to Chrome's API, most notably the ability to add items to the browser's "Tools" menu as well as the context menu.

Before Firefox 55 this API was also originally named contextMenus, and that name has been retained as an alias, so you can use contextMenus to write code that works in Firefox and also in other browsers.

To use this API you need to have the "menus"  permission (or "contextMenus" for the alias).

Document Tags and Contributors

 Contributors to this page: wbamberg, zombie, Rob W, reblws, andrewtruongmoz, abbycar, andymckay-github
 Last updated by: wbamberg,