Closed Bug 1773930 Opened 2 years ago Closed 2 years ago

[CTW] Expose xml-roles on cached RemoteAccessible

Categories

(Core :: Disability Access APIs, task)

task

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: Jamie, Assigned: Jamie)

References

(Blocks 1 open bug)

Details

(Whiteboard: [ctw-m2])

Attachments

(1 file)

Clients need the xml-roles object attribute to get access to the raw ARIA role for cases where Role() doesn't return sufficient information; e.g. landmarks. In most cases, we can just derive this from the role map index, which we already send. However, the role attribute is technically a list of tokens, so it could include multiple roles or roles unknown to Gecko.

This also changes LocalAccessible::Attributes to ignore the edge case of an empty role attribute when calculating xml-roles.
This is consistent with how we handle the role attribute elsewhere (see aria::GetRoleMapIndex) and makes it easier to handle this consistently between local and remote.

Pushed by jteh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b0aa1d65dad5 Expose xml-roles object attribute on cached RemoteAccessible. r=morgan
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: