Closed Bug 1945420 Opened 1 year ago Closed 10 months ago

[contextual-password-manager] "Close Without Saving?" warning loses focus when Tab is pressed

Categories

(Toolkit :: Password Manager, defect, P3)

Firefox 136
Desktop
All
defect

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox136 --- disabled
firefox142 --- fixed

People

(Reporter: epopescu, Assigned: rsafaeian, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxcm-cpm-milestones-3-4])

Attachments

(1 file)

Found in

  • Nightly 136.0a1

Affected versions

  • Nightly 136.0a1

Tested platforms

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

Preconditions:

  • Set pref browser.contextual-password-manager.enabled to true in about:config
  • Enable Sidebar
  • Have several saved password records

Steps to reproduce

  1. Start editing an entry and attempt to close the sidebar without saving
  2. Press the Tab key when the "Close without saving?" warning appears
  3. Observe where the focus moves.

Expected result

  • Pressing Tab should focus the "Confirm" and "Go Back" buttons when the "Close without saving?" warning appears.

Actual result

  • Pressing Tab moves focus to the web content making it harder to navigate the warning dialog using the keyboard.

Regression range

  • N/A

Additional notes

Blocks: 1942365
Has STR: --- → yes
OS: Unspecified → All
Hardware: Unspecified → Desktop
Whiteboard: [contextual-password-manager]
Version: unspecified → Firefox 136
Whiteboard: [contextual-password-manager] → [fxcm-cpm-milestones-3-4]

I am also able to reproduce this for the duplicate notification as well, using Firefox 138.0b5.

Assignee: nobody → rsafaeian
Status: NEW → ASSIGNED
Pushed by rsafaeian@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7c354352ebc3 [contextual-password-manager] Focus "Close Without Saving?" notification after tabbing on the last button in login-form. r=mtigley,credential-management-reviewers
Severity: -- → S3
Priority: -- → P3

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:rsafaeian, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(rysafaeian)
Flags: needinfo?(mtigley)
Flags: needinfo?(rysafaeian)
Attachment #9479799 - Attachment description: Bug 1945420 - [contextual-password-manager] Focus "Close Without Saving?" notification after tabbing on the last button in login-form. r=mtigley! → Bug 1945420 - [contextual-password-manager] Focus "Close Without Saving?" notification after tabbing on the last button in login-form.
Pushed by dlee@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5dbb043f7f78 https://hg.mozilla.org/integration/autoland/rev/23a28f09bacd [contextual-password-manager] Focus "Close Without Saving?" notification after tabbing on the last button in login-form. r=mtigley,credential-management-reviewers
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
QA Whiteboard: [qa-triage-done-c143/b142][qa-ver-needed-c143/b142]
Flags: qe-verify+

There's a difference in how Tab and Shift+Tab work on and Windows when the "Close without saving?" and duplicate password notifications are shown in the Passwords panel.

  • On macOS and Ubuntu, pressing Tab can move focus to the X button (to close the panel) first, then through the notification buttons and the edit form. After reaching the edit form, the X button can only be reached again with Shift+Tab.
  • On Windows, pressing Tab moves focus through the notification buttons and edit form, but not the X button. It’s only reachable with Shift+Tab. When the duplicate warning is shown, focus first goes to the Cancel button, then to the "Go to password" button inside the notification.

Should the "X" button to close the Passwords panel be reachable using Tab while notifications are present, as it is on macOS and Ubuntu?
Please see the following recording taken on macOS 15 showing this behavior( first using Tab, then using Shift+Tab to reach the X button again). Let me know if any other details are needed. Thank you.

Flags: needinfo?(tigleym)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: