Closed Bug 291099 Opened 20 years ago Closed 19 years ago

Using keyboard to navigate through context menus of menu items (e.g. bookmarks) skips every other item

Categories

(Core :: XUL, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: robert.strong.bugs, Assigned: neil)

References

Details

(Keywords: fixed1.8, regression, testcase, Whiteboard: [no l10n impact])

Attachments

(3 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050418 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050418 Firefox/1.0+ When using the keyboard to select bookmark context menu menuitems some menuitems are often skipped. The closest bug to this I could find is bug 266076 but that deals with accesskeys. Reproducible: Always Steps to Reproduce: 1. Click Bookmarks and context menu click a bookmark 2. Use the arrow keys to select menuitems Actual Results: Some enabled menuitems are skipped Expected Results: Each enabled menuitem is selected in turn This bug appears for all bookmarks and bookmark folder in the Bookmarks menu. It appears that if the context menu is brought up from the top of the Bookmarks Toolbar for a bookmark or bookmark folder that it is possible to select each enabled menuitem in turn using the arrow keys on the keyboard. If the bookmark or bookmark folder is inside of another bookmark folder in the Bookmarks Toolbar that this bug is exhibited.
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050419 Firefox/1.0+ Confirmed. the Items are picked seemingly at random very much depends on where the mousepointer is located
Looks to have regressed somewhere between 20050117 and 20050127. And at least what I'm seeing isn't random, it's just every other menu item gets skipped.
Keywords: regression
I noticed it wasn't random as well just after filing. It seems as if the keypress event is running twice for popups that are a contentmenu of a popup.
Attached file testcase
This does not appear to be bookmarks specific though it does affect bookmarks. Changing the summary, product, and component accordingly though I suspect the category may still be incorrect.
Component: Bookmarks → Toolbars and Toolbar Customization
Product: Firefox → Toolkit
Summary: Bookmarks context menu menuitems are inconsistently selected using keyboard → context menu menuitems are inconsistently selected using keyboard for menupopup context menu
Component: Toolbars and Toolbar Customization → Keyboard: Navigation
Product: Toolkit → Core
Version: unspecified → Trunk
Reassigning to nobody@mozilla.org since this is not bookmarks specific to get it off of Vladimir's plate.
Assignee: vladimir+bm → nobody
Aaron, could this be a regression from your bug 282438? The window is 2005-02-17-07 to 2005-02-18-07, and even though I don't know what I'm talking about, yours looks the most likely.
Component: Keyboard: Navigation → XP Toolkit/Widgets: Menus
The regression range in comment 7 is off by a month (compare comment 2). I see the bug in a 2005-01-19-08 build but not a 2005-01-18-07 build. So bug 282438 is definitely not it. Bug 167145, on the other hand, is quite a likely culprit, since it messed around with key events...
Assignee: nobody → aaronleventhal
Flags: blocking1.8b3?
Blocks: 167145
Flags: blocking1.8b4+
Flags: blocking1.8b3?
Flags: blocking1.8b3-
Whiteboard: [no l10n impact]
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050802 Firefox/1.0+ ID:2005080207 For me, the navigation moves in the opposite direction of the key i'm pressing. i.e. I press up and it moves down.
Aaron - it appears that way visually because it is skipping an item.
Attachment #191588 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #191588 - Flags: review?(neil.parkwaycc.co.uk)
Spin off bug 303404 is a crash I found while debugging this.
*** Bug 304603 has been marked as a duplicate of this bug. ***
Attachment #191588 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #191588 - Flags: superreview?(bzbarsky)
Attachment #191588 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #191588 - Flags: review?(bzbarsky)
Neil's got a patch
Assignee: aaronleventhal → neil.parkwaycc.co.uk
Attachment #191845 - Flags: superreview?(dbaron)
Attachment #191845 - Flags: review+
Attachment #191588 - Flags: superreview?(bzbarsky)
Attachment #191588 - Flags: review?(bzbarsky)
Whiteboard: [no l10n impact] → [no l10n impact][need SR dbaron]
Flags: blocking1.8b5+ → blocking1.8b5-
Attachment #191845 - Flags: superreview?(dbaron) → superreview+
Fix checked in to the trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
*** Bug 311259 has been marked as a duplicate of this bug. ***
Flags: blocking1.8rc1?
Summary: context menu menuitems are inconsistently selected using keyboard for menupopup context menu → Using keyboard to navigate through context menus of menu items (e.g. bookmarks) skips every other item
Attachment #191845 - Flags: approval1.8rc1?
Comment on attachment 191845 [details] [diff] [review] Don't attach multiple listeners I'm nervous about this change. We can't afford any regressions this late in the game. What kind of testing has been done here and what kind of risk does this patch pose?
neil, aaron, qa, have we verified that this doesn't break anything?
Keywords: qawanted
I will check this on Windows XP, but using today's Mac trunk build (Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20051011 Firefox/1.6a1), the test case doesn't work. Using today's Mac Branch build, the test case does work.
Just to clarify, when I mean the test case works, you can use the arrow keys to move up and down without skipping. (In reply to comment #20) > I will check this on Windows XP, but using today's Mac trunk build (Mozilla/5.0 > (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20051011 > Firefox/1.6a1), the test case doesn't work. Using today's Mac Branch build, the > test case does work.
This looks ok using today's Windows Trunk build (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051011 Firefox/1.6a1). If I run the test case, I can arrow through the choices with no problem. I also did some context clicking on bookmarks and didn't see any problems.
Attachment #191845 - Flags: approval1.8rc1? → approval1.8rc1+
plussing since we decide to take this patch.
Flags: blocking1.8rc1? → blocking1.8rc1+
Status: RESOLVED → VERIFIED
Keywords: qawanted
Whiteboard: [no l10n impact][need SR dbaron] → [no l10n impact]
Neil, can you get this checked into the branch soon? If not, let us know and we can find someone who can land it (maybe me :)).
Sorry, I overlooked the a=asa.
Keywords: fixed1.8
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: mconnor → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: