This allows WebExtensions to open the contextmenu.
Using nsIDOMWindowUtils::sendMouseEvent works
(In reply to Andy McKay [:andym] from comment #1) > Is there a reason you'd want to do this? The point of a context menu is that > its in context and the user has right clicked (or whatever is relevant) to > trigger that flow. I need it for a WebExtension.
(In reply to kernp25 from comment #2) > Using nsIDOMWindowUtils::sendMouseEvent works Can you do that in a WebExtension? Be curious to see how.
No, i mean in a normal extension you can use nsIDOMWindowUtils::sendMouseEvent to open the context menu.
To be discussed at Nov. 15, 2016 Web Extensions triage meeting.
We spoke about this in the meeting and the summary was, it didn't make sense to us for a few reasons: * a context menu should be the result of user action, such as a right click * its hard for a user to figure out why the context menu appears and what extension caused it * we couldn't think of a valid use case
Status: UNCONFIRMED → RESOLVED
Last Resolved: a year ago
Resolution: --- → WONTFIX
Whiteboard: [design-decision-needed] triaged → [design-decision-denied] triaged
Bug #1414633 has been just linked here. To allow the use-case described there while at the same time preventing API misuse (addressing all the three concerns above why this was closed as WONTFIX), please see ticket #1416030 which proposes an alternate design instead of contextMenus.open.
You need to log in before you can comment on or make changes to this bug.