Closed Bug 2067619 Opened 3 months ago Closed 2 months ago

Don't expose selectable state for gridcells which don't have aria-selected

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: Jamie, Assigned: Jamie)

References

(Blocks 1 open bug)

Details

Attachments

(2 external files)

After bug 1894436, we (correctly) don't expose an implicit selected state for gridcells. However, we still expose the selectable state. This causes screen readers to report "not selected" even when a gridcell isn't selectable at all (because selectable + absence of selected = not selected). Spec for aria-selected undefined.

Originally reported in: https://github.com/nvaccess/nvda/issues/11986#issuecomment-5463640419

Looking very briefly (unverified), this should hopefully be as simple as changing eARIASelectable for gridcell to eARIASelectableIfDefined.

Previously, our exposure of the selectable state caused clients to treat these as "not selected".
However, this is different to "not selectable".

Assignee: nobody → jteh
Status: NEW → ASSIGNED

Selection changes fire selection events, not state change events.
Therefore, we handle aria-selected specially, rather than handling it in AttributeChangesState.
This meant that previously, a state change event wasn't fired when a change to aria-selected caused the selectable state to change.
To fix this, we now handle this case explicitly in LocalAccessible::DOMAttributeChanged.

Pushed by jteh@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/063e1805da78 https://hg.mozilla.org/integration/autoland/rev/15650dda7544 part 1: Don't expose the selectable state for a gridcell which doesn't explicitly define aria-selected. r=accessibility-platform-reviewers,eeejay https://github.com/mozilla-firefox/firefox/commit/82df3fd2f798 https://hg.mozilla.org/integration/autoland/rev/569bfb9912b0 part 2: Fire a selectable state change event when aria-selected is changed if appropriate. r=accessibility-platform-reviewers,eeejay
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
QA Whiteboard: [qa-triage-done-c158/b157]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: