Closed Bug 1886995 Opened 1 year ago Closed 1 year ago

"Space" Key on Menulist Fails to Open Menupopup

Categories

(Toolkit :: UI Widgets, defect)

Desktop
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 611402
Accessibility Severity s3
Tracking Status
firefox124 --- affected
firefox125 --- affected
firefox126 --- affected

People

(Reporter: ilikprogramming, Unassigned)

Details

(Keywords: access)

Attachments

(1 file)

Attached video attachment

Affected Version:

  • Firefox 123.0.1 (64-bit)

Affected Platforms:

  • MacOS 14.1 (23B2073)

Steps to Reproduce:

  1. Go to "about:preferences#home"
  2. Press "Tab" key to focus on "Firefox Home (Default)"
  3. Press "Enter" to attempt to expand the menu.

Actual Results:

  • No response from the "Enter" key; the menu does not expand.
  • Conversely, clicking with the mouse successfully reveals the dropdown menu.

Expected Results:

  • Pressing "Enter" at Step 3 should trigger the dropdown expansion.

I was able to reproduce this issue on my machine macOS 13.2.1 using Fx 125.0b6, Fx 124.0 and the latest Nightly 126.0a1. I can't trigger the dropdown expansion with "Enter" key only if I use down arrow key.

Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true

Per WebAIM and W3C's documentation, and based on the behavior of the HTML <select> element (MDN), I don't think Enter should expand this <menulist> element, so I believe the current behavior is correct in that regard. The down arrow works correctly to activate the popup and show the available options.

However, the Space key should activate this element, and Space is currently not working for me in this instance--the page scrolls instead, as if the menulist wasn't focused. We might consider fixing that. Would you mind verifying this :ayeddi?

Flags: needinfo?(ayeddi)

Guessing at a priority/severity; feel free to adjust if this is a higher severity a11y bug

Severity: -- → S3
Priority: -- → P3

(In reply to Cieara Meador [:cmkm] (she/her) from comment #2)

Per WebAIM and W3C's documentation, and based on the behavior of the HTML <select> element (MDN), I don't think Enter should expand this <menulist> element, so I believe the current behavior is correct in that regard. The down arrow works correctly to activate the popup and show the available options.

However, the Space key should activate this element, and Space is currently not working for me in this instance--the page scrolls instead, as if the menulist wasn't focused. We might consider fixing that. Would you mind verifying this :ayeddi?

I've got the same results as you described, :Cieara. Tested with today's Nightly on macOS Sonoma 14.3.1 (23D60). It seems to be a component-wide issue with the XUL <menulist> across the UI, for example:

  1. In settings UI > General > Font > Size menulist
  2. In Bookmarks doorhanger on Location menulist

This is definitely a bug and would be a11y-severity=S3 if we're changing this ticket or opening a new one to address the Space key behavior of the <menulist> component.

Flags: needinfo?(ayeddi)

Tested on Win11 and the issue with Space key on <menulist> is the same. Moving it to the Toolkit > UI Widgets, since it seems to be an issue with the keypress event handling of the Menulist widget.

Updated STR:

  1. Go to about:preferences#home
  2. Press Tab key to focus on Firefox Home (Default)
  3. Press Space to attempt to expand the menupopup and observe the behavior
  4. Alternatively, Press cmd/ctrl+D to bookmark the page. Confirm the Add Bookmark panel is opened
  5. Navigate to the Bookmark panel and focus Location combobox
  6. Press Space to attempt to expand the menupopup and observe the behavior

Actual Results:

  1. On the Settings UI, the page scrolls down when the Space is pressed; the menupopup does not open.
  2. On the Bookmarks bar, nothing happens; the menupopup does not open.

Expected Results:

  1. Pressing Space key at Steps 3 and 6 opens the menupopup (similarly to what Down Arrow does, when the combobox is opened).

Note: the behavior is as expected with the web content, i.e. on MDN <select> playground, WAI Tutorial, as well as on ARIA Combobox design pattern

Severity: S3 → --
Type: task → defect
Accessibility Severity: --- → s3
Component: Settings UI → UI Widgets
Keywords: access
OS: Unspecified → All
Priority: P3 → --
Product: Firefox → Toolkit
Hardware: Unspecified → Desktop
Summary: "Enter" Key Fails to Activate Dropdown for "Firefox Home (Default)" in about:preferences#home → "Space" Key on Menulist Fails to Open Menupopup

Duping to bug 611402 which I moved to UI Widgets. This appears to have been the case for at least 15 years

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 611402
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: