Using Nightly build from 2016-11-25, which includes the newly implemented contextMenus on browser_action button. The browser_action default_icon displays an icon, but the contextMenu items do not.
On the MDN contextMenus page, it is stated:
If you've specified icons for your add-on using the "icons" manifest key,
context menu items will display the specified icon next to their label.
The browser will try to choose a 16x16 pixel icon for a normal display
or a 32x32 pixel icon for a high-density display.
Note that Firefox does not support icons in context menu items until version 47.
However, this doesn’t appear to work as described, and is described ambiguously to begin with.
Problems:
- manifest.json has “icons” specified, and the icons are displayed on the Add-ons Manager, but they do not appear on the contextMenu as described.
- The MDN description seems to imply that all contextMenu items will have the same icon (which seems silly).
- The MDN description does not describe any way to put a unique icon on each contextMenu item.
- Putting “icons” in chrome.contextMenus.create() causes “unexpected properties” errors.
The result is that there’s no obvious way demonstrated to put a custom icon for each menu item (as the wording half-implies). A bit confused. Is there an existing bug, or does a new one need creation? Is it not implemented, broken, planned, or implemented but not documented, or not implemented and incorrectly documented?
Any direction here would be great. Also, thank you to all the folks who worked on getting contextMenus added to browser_action and page_action the past few weeks.