Closed Bug 1390456 Opened 7 years ago Closed 7 years ago

"contextmenu" event cannot be fired on browser_action's popup

Categories

(WebExtensions :: Frontend, defect)

56 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1381344

People

(Reporter: sin, Unassigned)

Details

Attachments

(2 files)

1.50 KB, application/x-zip-compressed
Details
1.47 KB, application/zip
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 Build ID: 20170810180547 Steps to reproduce: Version: 57.0a1, Build ID: 20170814100258, OS: Windows_NT 10.0 Version: 56.0b2, Build ID: 20170810180547, OS: Windows_NT 10.0 1. Install TestContextmenuEvent.zip. 2. Click a toolbar button. Right click on "Test Contextmenu Event" in popup. 3. Check Browser Console. If "contextmenu" event was fired, a log was output. Actual results: "contextmenu" event wasn't fired. Expected results: "contextmenu" event was fired. Google Chrome fire "contextmenu" event by this javascript.
Attached file popup-click-tester.zip
The extension listens to both the click and the contextmenu events and prints the relevant button when it gets a click event. Chrome will fire the click event for left (opt.value = “left 0 1”) and middle click (opt.value = “middle 1 2”) and the contextmenu event for right click. It will also show a context menu. Firefox 55 - fire only click event for left click and contextmenu event for right click. Firefox 56b, 57a - fire only click event for left click.
This seems to be a dupe of 1381344, since the event fires when you move the popup to the overflow menu.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: