Open Bug 1503876 Opened 6 years ago Updated 18 days ago

Modal dialogs on the New Tab Page allow keyboard to focus visually grayed out controls behind the dialog

Categories

(Firefox :: New Tab Page, defect, P3)

defect

Tracking

()

Accessibility Severity s3
Tracking Status
firefox63 --- wontfix
firefox64 --- wontfix
firefox65 --- wontfix
firefox66 --- fix-optional
firefox120 --- affected

People

(Reporter: cmuresan, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: access, Whiteboard: [hnt])

Attachments

(6 files)

[Affected versions]: - Nightly v65.0a1, Build ID 20181030224027 - Beta 64 - Release 63 [Affected Platforms]: - All Windows - All Mac - All Linux [Steps to reproduce]: 1. Open the browser with a clean new profile and open a new tab. 2. Click the "..." Top Site section button. 3. Press "Tab" once and then "Enter". 4. Press "Tab" again and observe the behavior. [Expected results]: - The first field is focused. [Actual results]: - A different element underneath is focused. [Notes]: - The "Cancel" and "Save" buttons are also unreachable with keyboard only navigation. - The issue is also reproducible with the "Add Search Engine" pop up and the "Cancel" and "Add" buttons are unreachable with keyboard only navigation. - Attached a screen recording of the issue.
Adding an additional screen recording.
Iteration: --- → 65.3 (Nov 30)
Keywords: access
Priority: -- → P2
Iteration: 65.3 (Nov 30) → ---
Priority: P2 → P3
Component: Activity Streams: Newtab → New Tab Page
Severity: normal → S3

The issue is still present in today's Firefox 120 Nightly: the keyboard focus is still leaving the modal dialog Edit shortcut on the New Tab Page that is not an expected behavior for modal dialog pattern.

Another issue with the dialog is the lack of an accessible name for the dialog container.

It looks like (per the gifs attached) that the original behavior was similar, just the focus would not even land on the dialog at first and the focus was likely passing through the background controls instead.

The focus of the keyboard should be restricted to the modal dialog until this dialog is dismissed. Then the focus should return to the triggering element. In this case, to the ... control for the shortcut that was used to open the dialog.

The same issue applies to the Settings modal dialog on the New Tab.

These issues would cause a keyboard users to loose the keyboard focus (because it is barely seen when the rest of the page is grayed out) and not know what the position of their keyboard focus is, in fact. Also, it may cause users to activate some control by a mistake and spend time returning back to the previous page and location within the page, which would affect more users with limited mobility and users of alternative input devices such as switch controls etc.

Accessibility Severity: --- → s3
Summary: The buttons and fields from the "Add Top Site" and "Add Search Engine" menus are unreachable via keyboard only navigation → Modal dialogs on the New Tab Page allow keyboard to focus visually grayed out controls behind the dialog
Blocks: 1891109
Whiteboard: [hnt]

Steps to solve modals with this issue:

  1. Convert modal to use HNT reusable Modal component
  2. Implement the same focus trap method that was implemented on TopicSelection.jsx.
Duplicate of this bug: 1886987
Blocks: 1876160
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: