Open Bug 974974 Opened 10 years ago Updated 2 years ago

New Firefox menu buttons do not trigger command events

Categories

(Core :: DOM: Events, defect, P5)

26 Branch
x86_64
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: tinklern, Unassigned)

Details

Attachments

(1 file)

Attached image menubar2.png
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36

Steps to reproduce:

In an extension, attach an event listener to a window and listen for command events:
1: window.addEventListener("command", function(e){Application.console.log(e.type);}, true);
2: Use the new default firefox button to print (see attached image "menubar")
3: toggle the old menubar and use the print option there
4: Use the submenu print option in the new menu


Actual results:

In step 2 no command event is triggered at all
In step 3 the command is properly triggered (event.type:command event.target.id:cmd_print)
In step 4 the command is properly triggered (event.type:command event.target.id:cmd_print)


Expected results:

All print buttons should have triggered the command event. 

See attached image for additional clarification on which buttons do and do not trigger the event.

Further, this behavior does not seem limited to print.  The new menu does not appear to trigger ANY command events for top level items.
Component: Untriaged → DOM: Events
Product: Firefox → Core
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: