Closed Bug 1570852 Opened 5 years ago Closed 5 years ago

trap focus in the delete confirmation dialog

Categories

(Firefox :: about:logins, task, P2)

70 Branch
task

Tracking

()

VERIFIED FIXED
Firefox 71
Tracking Status
firefox70 --- verified
firefox71 --- verified

People

(Reporter: asa, Assigned: lnorton)

Details

(Keywords: access, Whiteboard: [passwords:management] [skyline][access-p2])

Attachments

(2 files)

Tabbing through the delete login confirmation dialog goes from the right hand button (cancel) to the left hand button (delete) to the close dialog button. That's shifting focus left and up with rather than right and down with each tab. That seems backwards from the normal flow.

Perhaps we can eliminate the redundant close dialog "x" button and trap the focus in the dialog so that tabbing simply rotates between cancel and delete.

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task

I think the order is less of a problem, in fact it's intentional. I agree about trapping focus in the dialog but I think the better solution is using our existing dialog code from the prompt service which should already do that.

Priority: -- → P2
Whiteboard: [passwords:management] [skyline]
Flags: qe-verify+
Summary: focus order backwards for delete confirmation dialog → trap focus in the delete confirmation dialog
Assignee: nobody → lnorton
Keywords: access
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/41b9eafbaced
Trap focus in delete confirmation dialog. r=jaws
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71

I have verified this issue on the latest Nightly 71.0a1 (2019-09-08) build on Windows 7 x64, Mac 10.14 and Ubuntu 16.04 x64 and I got the following results:

  • The focus is not actually stuck in the "Delete this login" dialog. After navigating through the buttons from the dialog using the "Tab" key, the focus jumps to the browser toolbar and a few elements from it can be focused. From what I understand the focus should be stuck in the "Delete this login" dialog and no other buttons should be focused.
    I have attached a screen recording with this behavior.

@Matthew, is this behavior intended?

Flags: needinfo?(MattN+bmo)
Flags: needinfo?(lnorton)
Flags: needinfo?(jaws)
Flags: needinfo?(MattN+bmo)

This behavior is intended. The webpage cannot prevent focus from moving to the browser chrome. The goal of this bug is just to prevent other buttons within the webpage from gaining focus.

Flags: needinfo?(lnorton)
Flags: needinfo?(jaws)

Thanks, Jared for clarifying this!
Based on comment 6 and comment 7 I will mark this issue as Verified - Fixed.

Status: RESOLVED → VERIFIED

Hi Lesley, is this something you'd be comfortable requesting uplift for to 70 beta?

Flags: needinfo?(lnorton)
Whiteboard: [passwords:management] [skyline] → [passwords:management] [skyline][access-p2]
Component: Password Manager → about:logins
Product: Toolkit → Firefox
Target Milestone: mozilla71 → Firefox 71
Version: unspecified → 70 Branch

I have verified this issue and is no longer reproducible on the Firefox R-C 70.0 (Build ID: 20191016161957) on Windows 10 x64, Mac 10.14, Ubuntu 16.04 x64.

  • The elements from the “about:logins” page are not focused after navigating through the buttons from the “Delete confirmation” dialog using “Tab” key.
  • The “Delete” button is automatically focused when the “Delete confirmation” dialog is opened and the “Cancel” button gets focus after pressing the “Tab” key.
Flags: qe-verify+
Flags: needinfo?(lnorton)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: