Closed Bug 1858048 Opened 2 years ago Closed 1 year ago

Don't include aria-label if we append the value as part of name computation (WPT accname/name/comp_embedded_control.html)

Categories

(Core :: Disability Access APIs, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: Jamie, Assigned: nlapre)

References

(Blocks 3 open bugs)

Details

Attachments

(2 files, 1 obsolete file)

Currently, in the case of an embedded control where we include the value in name computation, we include aria-label before the value, which violates the Acc Name spec. Fixing this will address these failing WPT tests.

Assignee: nobody → nlapre

This revision adds a utility to find a non-generic ancestor of the given
accessible, provided it matches the given predicate.

This revision is a small preparatory change to the name rule for the listbox
role. With this change, Gecko will look to the listbox value to determine its
name.

Depends on D204457

This revision changes Gecko's embedded control name computation to hew to the
relevant piece of the name computation spec (currently part "C" as of writing
this, labelled "Embedded Control"). To accomplish this, this revision moves the
call to AppendFromValue ahead of the call to Name. We use AppendFromValue to do
the embedded control computation, so it's appropriate to place it before we
check aria-label and similar. LocalAccessible::Value (and similar) contain the
necessary means to calculate the things we need, except for in the case of
listbox. So, this revision contains a carveout for listbox. Finally, this change
removes the previously-marked expected-failures from the relevant WPT meta file.

Depends on D204458

Attachment #9390936 - Attachment description: Bug 1858048 - Part 2: Give listbox role eNameFromValueRule, r?Jamie → Bug 1858048 - Part 1: Give listbox role eNameFromValueRule, r?Jamie
Attachment #9390937 - Attachment description: Bug 1858048 - Part 3: Improve embedded control name computation, r?Jamie → Bug 1858048 - Part 2: Improve embedded control name computation, r?Jamie
Attachment #9390935 - Attachment is obsolete: true
Blocks: 1885071
Pushed by nlapre@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9d3f1ecb27c9 Part 1: Give listbox role eNameFromValueRule, r=Jamie https://hg.mozilla.org/integration/autoland/rev/334938a86d41 Part 2: Improve embedded control name computation, r=Jamie
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
No longer blocks: 1885071
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: