NumeriusNegidius / Context-Search

A Firefox WebExtension that displays a context menu, that searches for the selected text.
https://addons.mozilla.org/firefox/addon/context-search-we/
Mozilla Public License 2.0
32 stars 9 forks source link

Is it possible to populate the main context menu? #1

Closed ZzzZombi closed 7 years ago

ZzzZombi commented 7 years ago

I'm talking about putting search engines directly in the context menu as opposed to under the "Context Search" sub-menu.

When I add just one bookmark under "Searches" it puts the engine directly in the context menu and not in CS sub-menu.

Edit: Just found this on Developer page:

If you have created more than one context menu item, then the items will be placed in a submenu. The submenu's parent will be labeled with the name of the extension. In this case, if you have also specified an icon, then the submenu's parent will get the icon, and the items themselves will not get any icon.

Chrome also does it this way. Though I don't understand, why not just let us put multiple main items to context menus.

NumeriusNegidius commented 7 years ago

Yeah, it doesn't seem possible with the current spec, unfortunately. If they add the functionality I might revisit/reopen this. Thanks for the feedback though!

theres-waldo commented 7 years ago

I filed a Firefox issue about this: https://bugzilla.mozilla.org/show_bug.cgi?id=1396346

theres-waldo commented 7 years ago

I filed a Firefox issue about this: https://bugzilla.mozilla.org/show_bug.cgi?id=1396346

Unfortunately, it was closed as a duplicate of another issue which has been marked as WONTFIX.

sigh