Closed Bug 1024764 Opened 11 years ago Closed 11 years ago

context-menu does not show when right clicking form element

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: jamie, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.76.4 (KHTML, like Gecko) Version/7.0.4 Safari/537.76.4 Steps to reproduce: Create an add-on with a contextual menu item. (I used 1Password.) Right click on a form element such as an <input type="text"> Actual results: context-menu entry is not present in context menu Expected results: context-menu specified in add-on should be visible in contextual menu. When right clicking on the page outside the form element, the context-menu item is present. Seems there is a different menu used for the context menu of the inputs that does not display add-on context-menus.
if an addon uses the PageContext, either explicitly or implicitly (as it's the default), the context menu item is only available when you click on the "page" itself, or more specifically, on any non-interactive element: https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/context-menu#Specifying_Contexts as 1Password source is obfuscated, i can't really verify that is what they are doing (not without undue effort), but i believe this is how it's supposed to work. in other words, this bug is thus WORKSFORME most likely.
If this uses the PageContext then this is working as intended.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.