Closed Bug 2002958 Opened 4 months ago Closed 4 months ago

The keyboard focus is lost when accessing a settings subpage

Categories

(Firefox :: Settings UI, defect)

Firefox 147
Desktop
All
defect

Tracking

()

VERIFIED FIXED
148 Branch
Accessibility Severity s3
Tracking Status
firefox147 --- disabled
firefox148 --- verified

People

(Reporter: ailea, Assigned: mkennedy)

References

(Blocks 2 open bugs)

Details

(Keywords: access, Whiteboard: [fxcm-settings-redesign] [srdbb] [recomp])

Attachments

(1 file)

Found in

  • 147.0a1

Affected versions

  • 147.0a1

Tested platforms

  • Affected platforms: Windows 11, macOS 15, Ubuntu 22.04
  • Unaffected platforms: none

Preconditions

  • Set pref browser.settings-redesign.enabled = true
  • Set pref browser.search.region = US

Steps to reproduce

  1. Open Settings → Privacy & Security → Payment methods.
  2. Using the keyboard, access the Manage payment methods.

Expected result

  • When the Manage payment methods subpage is opened using the keyboard, the first element of the subpage should be focused.

Actual result

  • When the Manage payment methods subpage is opened using the keyboard, the keyboard focus is lost. If the user press TAB, the back button is focused, as it should be from the start when the subpage is opened.

Regression range

  • Not a regression.

Notes

  • This behavior is present for all the settings subpages.
  • Chrome behavior is as described in the expected result here, the first element of the subpage is automatically focused.

(In reply to Alin Ilea, Desktop Test Engineering from comment #0)

  • When the Manage payment methods subpage is opened using the keyboard, the keyboard focus is lost.

Hi Alin. If you do this with a screen reader, is anything at all reported when the subpage opens? As it stands, I'm triaging this as an access s3 because there is a workaround: press tab. However, if a screen reader user hears absolutely nothing, this might be an s2 because they might not be aware that anything has happened at all and thus might not try to press the tab key.

Accessibility Severity: --- → s3
Flags: needinfo?(ailea)

Hi James,
Just tried your scenario and "Settings document list grouping general" is read by the screen reader(NVDA) when opening the Manage payment methods subpage is using the keyboard.
Just let me know if any other investigation is needed.

Flags: needinfo?(ailea)
QA Whiteboard: [QA-4484][qa-found-in-c147][S4] → [QA-4484][qa-found-in-c147][S4][qa-investig-done-c147/b146]
QA Contact: ailea
Whiteboard: [fxcm-settings-redesign] → [fxcm-settings-redesign] [srdbb] [recomp]
Assignee: nobody → mkennedy

Just a few notes regarding our resolution for this.

We've updated so that navigating to any subpage will now automatically focus the first focusable element on the page with a couple of differences depending on how you get to the page. The following describes how this resolves the original issue based on this new behavior.

  1. When accessing the Manage Payments subpage by keyboard tabbing to "Manage payment methods" and pressing spacebar (or any key to open the page) the first focusable element ("Add new payment method" button) will be automatically focused with a visible focus ring.
  2. But when accessing the Manage Payments subpage by clicking on "Manage payment methods" (or accessing the page directly in a new tab), although the first focusable element ("Add new payment method" button) will be automatically focused, it won't have a visible focus ring.

We thought this was the best approach given the circumstances, but please let us know if there are any issues and we'll revisit. Thank you for the detail and for filing!

See Also: → 2004503
Severity: -- → S3
Pushed by mkennedy@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/471dcac98cce https://hg.mozilla.org/integration/autoland/rev/bd3d1932e415 Fix initial focusing when accessing a sub page from keyboard or mouse click r=akulyk
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
Blocks: 2005325

Verified - Fixed in Nightly 148.0a1 (2025-12-11).
The Add new payment method button is automatically focused with a visible focus ring when access the manage payment methods subpage using the keyboard.
The Add new payment method button is also focused(without blue focus ring) when access the manage payment methods subpage using the mouse(click), and it automatically read by the screen reader.

Status: RESOLVED → VERIFIED
QA Whiteboard: [QA-4484][qa-found-in-c147][S4][qa-investig-done-c147/b146] → [QA-4484][qa-found-in-c147][S4][qa-ver-done-c148/b147]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: