Closed
Bug 1364401
Opened 7 years ago
Closed 7 years ago
Create a Custom Menu API
Categories
(WebExtensions :: Untriaged, defect)
WebExtensions
Untriaged
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1364404
People
(Reporter: core, Unassigned)
References
Details
(Whiteboard: [design-decision-needed] triaged)
Attachments
(1 file)
(deleted),
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0 Build ID: 20170413192749 Steps to reproduce: Note: This "bug" is created as a result of Bug 1344573 being way too broad. So please don't close this as a duplicate! Use-case: An add-on wants to use certain shortcuts or gestures to show a special menu containing only entries from the add-on. The menu needs to be positioned in window coordinates, so it can pop up where the mouse-gesture (or similar) ends. Actual results: The API doesn't exist (or is missing functionality) Expected results: I'd like to see the possibility to create a custom popup menu similar to the context menu and place it freely in window-coordinates. The menu would behave like the context menu except that it shows the add-on icon and title on the top part of the menu (instead of the navigation buttons), as seen on the screenshot (so the user knows which add-on the menu belongs to). It would be nice if (unlike the context-menu entries) icons could be specified for the menu entries. The API could be similar to the context menus API, but with a few additions. Or maybe that API could be extended to support this behavior.
Updated•7 years ago
|
Whiteboard: [design-decision-needed] triaged
Comment 1•7 years ago
|
||
Hi Lusito, this has been added to the agenda for the June 20 WebExtension APIs triage meeting. Would you be able to join us? Wiki: https://wiki.mozilla.org/Add-ons/Contribute/Triage#Next_Meeting Agenda: https://docs.google.com/document/d/1s2j85VfYKTDftppFU-K7pgRs6sEuMTHVXqf3RL5iYvs/edit#heading=h.y36go2at7hi1
Blocks: webextensions-additional-apis
I hope I can make it.. depends on when I can get off from work.
Updated•7 years ago
|
Flags: needinfo?(lgreco)
I have just researched the Shadow-Dom API mentioned in the web-extension triage. While it might be possible to use the shadow-dom, it seems this is not supported yet on Firefox (see bug 811542).
Comment 4•7 years ago
|
||
Yeah, I checked it too and the Shadow DOM WebAPI is currently turned off in release channel and so it is definitely not a viable option. Given that we have approved Bug 1364404, that is generically related to floating panels, I'm going to mark this as a duplicate of it, the rationale is that we can take this request into account when we will design that API (the one that will make it possible for an extension to create floating panels) and make the "floating panels API" able to support this scenario as well.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(lgreco)
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•