Closed Bug 2017385 Opened 2 months ago Closed 1 month ago

Invalid selection occurs when changing select options with arrow keys

Categories

(Firefox :: Settings UI, defect, P2)

defect

Tracking

()

VERIFIED FIXED
151 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox147 --- unaffected
firefox148 --- wontfix
firefox149 --- wontfix
firefox150 --- wontfix
firefox151 --- verified

People

(Reporter: akulyk, Assigned: akulyk)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [recomp])

Attachments

(2 files)

Arrow key navigation selects separator as a value instead of skipping it in moz-select that has options with icons.

Steps to Reproduce:

  1. Go to moz-select Storybook page.
  2. Use keyboard to set focus on moz-select
  3. Use the Up/Down arrow keys to navigate through the select options (dropdown is closed).
  4. Observe behavior when navigation reaches the separator.

Expected Result:
Separators should be skipped during keyboard navigation, and selection should move directly to the next option.

Actual Result:
The separator is selected and treated as an undefined value.

Notes:
Does not appear to occur when using mouse selection.

Set release status flags based on info from the regressing bug 1969475

:mkennedy, since you are the author of the regressor, bug 1969475, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(mkennedy)
Blocks: moz-select
Assignee: nobody → akulyk
Pushed by akulyk@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d0e23b37a4e0 https://hg.mozilla.org/integration/autoland/rev/bfb0b75a7eec Invalid selection occurs when changing select options with arrow keys r=mkennedy
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

The patch landed in nightly and beta is affected.
:akulyk, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(akulyk)

There's no need to uplift this patch, as the only moz-select that has both icons and separator is used in redesigned Applications Settings section that is currently hidden behind browser.settings-redesign.enabled pref.

Flags: needinfo?(akulyk)

Confirming that this issue is no longer reproducible with Firefox 151.0a1 (2026-04-16) on Windows 11, macOS 26 and Ubuntu 24 using the steps from comment 0 or using keyboard arrow keys on the Applications sections with browser.settings-redesign.enabled:true.
Note that the Use other... option is not visually displayed when using arrow keys to change options. See bug 2032378

Status: RESOLVED → VERIFIED
Has STR: --- → yes
QA Whiteboard: [qa-ver-done-c151/b150]
QA Contact: atrif
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: