Closed Bug 1396346 Opened 8 years ago Closed 8 years ago

Allow a WebExtension to add multiple top-level context menu items

Categories

(WebExtensions :: Untriaged, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1294429

People

(Reporter: botond, Unassigned)

Details

According to the contextMenu API documentation [1]: "If you have created more than one context menu item, then the items will be placed in a submenu." This implies that an extension cannot add multiple top-level context menu items. I think this should be allowed. This ability was used e.g. by the Context Search X legacy add-on [2], to allow you to select multiple search engines to have top-level items in the context menu. This allowed using any of these search engines on a selected piece of text with a single click in the context menu. Not being able to do this in a WebExtension is preventing a WebExt version of Context Search from having feature parity with the legacy version [3]. [1] https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/contextMenus [2] https://addons.mozilla.org/en-US/firefox/addon/context-search-x/ [3] https://github.com/NumeriusNegidius/Context-Search/issues/1
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.