Open Bug 1629965 Opened 5 years ago Updated 11 months ago

The two "new tab" buttons have different accessible label

Categories

(Firefox :: Tabbed Browser, defect, P3)

77 Branch
defect

Tracking

()

Accessibility Severity s4

People

(Reporter: cwendling, Unassigned, Mentored)

References

Details

(Keywords: access)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

Get the accessible name of the 2 "New tab" buttons (the one when there are "few" tabs, and the one when there are "many" tabs)

Actual results:

They have a different label. The "few" tabs one states "Open a new tab (Ctrl+T)", and the "many" tabs one states "New tab".

Expected results:

Both buttons which provide the exact same feature and apparently are only different buttons for internal reasons should have the same label to improve consistency and avoid confusion. This affects users of assistive technologies like screen readers.

See also https://bugzilla.mozilla.org/show_bug.cgi?id=1628360#c14

Keywords: access
Component: Untriaged → Tabbed Browser
Priority: -- → P3
See Also: → 1628360
Whiteboard: [access-p3]

Resetting severity to default of --.

Updating the Accessibility Team's impact assessment to conform with the new triage guidelines. See https://wiki.mozilla.org/Accessibility/Triage for descriptions of these whiteboard flags.

Whiteboard: [access-p3] → [access-s4]

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3
Accessibility Severity: --- → s4
Whiteboard: [access-s4]

:cmkm, Can you confirm with the l10n folks what the best plan is to resolve this and write it up for a potential good-first-bug contributor?

Mentor: cmeador
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(cmeador)

Would you be able to see if this still reproduces for you, Sam? I wasn't able to repro, and it sounds like this might be an a11y bug instead?

Flags: needinfo?(cmeador) → needinfo?(sfoster)

For the not-many-tabs case, we see #tabs-newtab-button
For the many tab (tab strip overflowed) case, we see #new-tab-button
Both seem to produce the same tooltip, but I'm not sure that is the same as the accessible name.

In the tabs-newtab-button case, that element has a .ariaLabel of "Open a new tab (Ctrl+T)". It has no dataset.l10nId, but sets this label programatically in the MozBrowserTabs init function.

In the case of new-tab-button, it has .ariaLabel of null and .label of "New Tab", via the tabs-toolbar-new-tab l10nId.

I'm afraid I don't know the history of why these 2 buttons are implemented so differently. But yes, the difference does seem to exist, and should be easy enough to fix - we just need to decide which treatment to apply to both buttons.

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