Closed Bug 1953335 Opened 1 year ago Closed 2 days ago

All tabs menu: Tab groups do not indicate that they are collapsed for accessibility

Categories

(Firefox :: Tabbed Browser, defect, P2)

Desktop
All
defect
Points:
1

Tracking

()

RESOLVED FIXED
163 Branch
Accessibility Severity s3
Tracking Status
firefox163 --- fixed

People

(Reporter: Jamie, Assigned: dgraham)

References

(Blocks 1 open bug)

Details

(Keywords: access, Whiteboard: [fidefe-tabgrps])

Attachments

(1 external file)

STR (with NVDA):

  1. Open tabs for example.com and mozilla.org.
  2. Add mozilla.org to a tab group called test.
  3. Collapse the test tab group.
  4. Press the List all tabs button.
  5. Press down arrow until you reach the test tab group.
    • Expected: NVDA says "test button collapsed"
    • Actual: NVDA says "test button", but gives no indication that it is collapsed.

This makes it impossible for a screen reader user to tell that a tab group is collapsed when using the All tabs menu.

The severity field is not set for this bug.
:jswinarton, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jswinarton)
Severity: -- → S3
Priority: -- → P2
Whiteboard: [fidefe-tabgrps]
Points: --- → 1
Flags: needinfo?(jswinarton)
Assignee: nobody → dgraham

Changes:

  • The tab group row has aria-expanded
  • Each tab group's rows are wrapped in a role="group" labelled by the
    tab group row. I added this so it's clear which tabs are being
    expanded or collapsed
  • The tab group row has an aria-description of "<name> — Tab Group",
    matching what the tab strip uses for group labels
  • Moves involving grouped tabs fall back to the existing _refreshDOM()
    rebuild instead of duplicating _populateDOM()'s wrapper logic in
    _addTab()

Notes on test coverage:

  • New test_allTabsViewGroupA11y checks the wrapper's role, label and
    contents, and aria-expanded before and after collapsing
  • Existing browser_tab_manager_drag.js tests cover dropping onto
    grouped rows and the rebuild after a move
  • browser_tab_manager_close.js is updated because the group row is no
    longer a direct child of the list

VoiceOver notes (macOS; I haven't tested NVDA yet but will be doing that once the patch is posted)

  • The tab group row is announced with its name and its expanded or
    collapsed state, which is what this bug asks for
  • VoiceOver doesn't announce containing group names when moving focus
    with Tab or arrows. The Synced Tabs panel uses the same pattern and
    behaves the same way, and the accessibility tree exposes the group
    with the right name
  • VoiceOver reports "5 items" for a group of 2 tabs, because each row's
    tab and close buttons are exposed separately. Exposing each tab row as a single item containing its close button, as in the tab strip and
    History, would fix this and make the relationship clearer. I'm
    considering that out of scope here
Pushed by dgraham@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/465f3eb051f9 https://hg.mozilla.org/integration/autoland/rev/386eb925ead9 Expose collapsed state and grouping of tab groups in the all tabs menu. r=tabbrowser-reviewers,jswinarton,sthompson,fluent-reviewers,flod
Status: NEW → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: