Closed Bug 1730691 Opened 3 years ago Closed 3 years ago

The “Learn more” and “Not now“ Firefox Suggest modal links are not keyboard selectable

Categories

(Firefox :: Address Bar, defect, P1)

Desktop
All
defect
Points:
3

Tracking

()

VERIFIED FIXED
94 Branch
Accessibility Severity s2
Tracking Status
firefox92 --- verified
firefox93 --- verified
firefox94 --- verified

People

(Reporter: mheres, Assigned: adw)

References

Details

(Keywords: access)

Attachments

(2 files)

[Affected Versions]:

  • FIrefox Beta 93.0b4 (Build ID: 20210912185727)
  • Firefox Nightly 94.0a1 (Build ID: 20210913213224)

[Affected Platforms]:

  • Windows 10
  • Linux Mint 20
  • macOS 11.1

[Prerequisites]:

  • Have Firefox installed and opened.
  • Have the following preferences set:
    • browser.urlbar.quicksuggest.enabled = true
    • browser.urlbar.quicksuggest.scenario = online
    • browser.urlbar.quicksuggest.shouldShowOnboardingDialog = true
    • browser.urlbar.suggest.quicksuggest = false
    • browser.urlbar.suggest.quicksuggest.sponsored = false

[Steps to reproduce]:

  1. Restart the browser after setting prerequisite preferences.
  2. Dismiss the Make Firefox default message if it is displayed to trigger the Suggestions modal.
  3. Use the Tab or arrow keys to try and select “Learn more”.
  4. Use the Tab or arrow keys to try and select “Not now”.

[Expected result]:

  • “Learn more” and “Not now” are keyboard selectable.

[Actual result]:

  • “Learn more” and “Not now” can not be selected.

[Notes]:

  • There is a state where nothing seems selected, but pressing Enter will close the modal and the functionality will be as if “Allow suggestions” was chosen.
  • Attached is a screen recording of the issue.
Blocks: 1727907
Assignee: nobody → adw
Status: NEW → ASSIGNED
Points: --- → 3
Component: Disability Access → Address Bar
Priority: -- → P1

Give tabindex attributes to each focusable element and handle enter keypresses
(via the dialogaccept event) on them. The tab index ordering is:

  1. Accept button (initial focus)
  2. Settings button
  3. Learn more
  4. Not now

Also give #infoBody a tab index of -1 so it doesn't receive focus. It does
normally for some reason.

Keywords: access
Whiteboard: [access-s2]
Group: mozilla-employee-confidential
Pushed by dgottwald@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b5456abe4535 Properly support tabbing through the elements in the Firefox Suggest onboarding dialog. r=dao

For verification, please note that the arrow keys still don't work very well. There's not much we can do about it, so we'll have to live with it.

The tab key should properly move the focus through the controls, however. (You probably know already but on macOS you have to go to the Shortcuts tab of the Keyboard pane in System Preferences and enable "Use keyboard navigation to move focus between controls")

Flags: qe-verify+
Flags: in-testsuite+
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch

Comment on attachment 9241243 [details]
Bug 1730691 - Properly support tabbing through the elements in the Firefox Suggest onboarding dialog.

Beta/Release Uplift Approval Request

  • User impact if declined: Needed for important Firefox Suggest rollouts on 93 and 92
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Should be clear from comment 0; please see also comment 5
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This patch affects only the FIrefox Suggest online onboarding dialog, which will only be shown to users in the US who are enrolled in the online rollout.
  • String changes made/needed:
Attachment #9241243 - Flags: approval-mozilla-release?
Attachment #9241243 - Flags: approval-mozilla-beta?

I have verified that the issue is no longer reproducible on Firefox 94. "Learn more" and "Not now" can now be selected using the Tab key (and sometimes the arrow keys). Tested using Firefox Nightly 94.0a1 (Build ID: 20210916125444) on Windows 10, macOS 11.1 and Linux Mint 20.

Status: RESOLVED → VERIFIED

Comment on attachment 9241243 [details]
Bug 1730691 - Properly support tabbing through the elements in the Firefox Suggest onboarding dialog.

Needed for experiments targeting Fx92. Approved for 93.0b6.

Attachment #9241243 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Depends on: 1731058
QA Whiteboard: [qa-triaged]

I have verified that the issue is no longer reproducible on Firefox 93. "Learn more" and "Not now" can now be selected using the Tab key. Tested using Firefox Beta 93.0b6 (Build ID: 20210916185649) on Windows 10, macOS 11.1 and Linux Mint 20.

Comment on attachment 9241243 [details]
Bug 1730691 - Properly support tabbing through the elements in the Firefox Suggest onboarding dialog.

Approved for 92.0.1.

Attachment #9241243 - Flags: approval-mozilla-release? → approval-mozilla-release+
  • I have verified this issue using the Candidate 92.0.1 build (Build ID: 20210920202613) on Windows 10 x64, macOS 10.15.7 and Linux Ubuntu 20.04 x64.

  • The "Learn more" and "Not now" can now be selected using the Tab key (and sometimes the arrow keys).

Flags: qe-verify+
Accessibility Severity: --- → s2
Whiteboard: [access-s2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: