Closed Bug 2020014 Opened 3 months ago Closed 3 months ago

Select Language combobox is autofocused on about:translations page load

Categories

(Firefox :: Translations, defect, P3)

Firefox 150
defect

Tracking

()

RESOLVED FIXED
150 Branch
Accessibility Severity s3
Tracking Status
firefox150 --- fixed

People

(Reporter: ayeddi, Assigned: nordzilla)

References

(Blocks 1 open bug, )

Details

(Keywords: access)

Attachments

(2 files, 2 obsolete files)

STR:

  1. open Firefox Nightly 150
  2. type in "about:translations" in the URL bar
  3. press Enter and observe the behavior of keyboard focus
  4. repeat steps 2-3 with a screen reader running (i.e. NVDA on WinOS) and observe the screen reader's announcement

Expected:

  1. focus should be placed, by default, to the web content (web page's container, as it is done for the about:profiles page, for instance). Autofocus is, generally, not expected.

Actual:

  1. Select language combobox is autofocused - it forces users to miss Learn more link and Detect language combobox that are placed in the focus order before the autofocused control
Priority: -- → P3

This commit removes the custom initial-focus logic from the about:translations
page, letting the page set its own default focus, starting from the top.

This is much better for assistive technology, since it ensures that screen
readers will pick up the crucial context at the top of the page, including
the top-level learn-more link.

Attachment #9549222 - Attachment is obsolete: true

This commit removes the custom initial-focus logic from the about:translations
page, letting the page set its own default focus, starting from the top.

This is much better for assistive technology, since it ensures that screen
readers will pick up the crucial context at the top of the page, including
the top-level learn-more link.

Attachment #9549232 - Attachment is obsolete: true

This commit removes the custom initial-focus logic from the about:translations
page, letting the page set its own default focus, starting from the top.

This is much better for assistive technology, since it ensures that screen
readers will pick up the crucial context at the top of the page, including
the top-level learn-more link.

Assignee: nobody → enordin
Status: NEW → ASSIGNED
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5ea15b5c53f7 https://hg.mozilla.org/integration/autoland/rev/718045fa26c6 Revert "Bug 2020014 - Remove custom about:translations initial focus logic r=ayeddi" for causing bc failures @ browser_MLSuggest_integration.js

This is part of a single backout that spanned multiple bugs.

In the patch stack, I increased the timeout when waiting for a mocked RemoteSettings model to download within our Translations tests, hoping that it might also help to reduce intermittent Translations test failures.

There are a few ml related tests that share our Remote Settings mocks. This test case happens to wait for the full duration of the timeout as part of the success path of the test case.

I've reverted the timeout change, and everything should hopefully be fine now.

I would one day like to either fully separate this code, or unify it in a way that ml doesn't rely on Translations under the hood, so that its more clear where the downstream consumers are.

Flags: needinfo?(enordin)
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: