Open Bug 1878954 Opened 1 year ago Updated 11 months ago

Collapse multiple concepts of "generic" role into one generic

Categories

(Core :: Disability Access APIs, task)

task

Tracking

()

People

(Reporter: nlapre, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [a11y-techdebt])

Right now, there are a fair few things we consider "generic" in Gecko. Consider the IsGeneric function, which surfaces this complexity. There are probably other places besides IsGeneric call sites that check for generic-ness.

The issue here is that there's now an ARIA "generic" role, which is a good impetus for us to collapse all of our quote-unquote generics down to a single generic classification. It would be great if IsGeneric was equivalent to checking whether the role is roles::GENERIC. Part of addressing this bug will be promoting "generic" to a real Gecko role. The other part will involve finding and addressing all of the places where we check generic-ness.

Blocks: cleana11y
Severity: S4 → --
Type: defect → task

Anna pointed out that XUL accessibles without a usable role currently return roles::NOTHING. I think this is because they fall back to LocalAccessible::NativeRole, since they aren't HyperTextAccessibles. We should probably make LocalAccessible::NativeRole return this new generic role.

Whiteboard: [a11y-techdebt]
You need to log in before you can comment on or make changes to this bug.