[CTW] HTML radios report incorrect group position
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox108 | --- | fixed |
People
(Reporter: Jamie, Assigned: Jamie)
References
Details
(Whiteboard: [ctw-m3])
Attachments
(2 files)
For HTML radios, we need to use the name attribute to determine group position. Local HTMLRadioButtonAccessible has specific code to handle this. For the cache, we use the normal group position code, which doesn't know how to handle HTML radios.
We can use MEMBER_OF (as implemented in bug 1787284) to facilitate this.
Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
For HTML radios, we need to group using the name attribute.
AccGroupInfo doesn't know how to do this, but that's what we were using previously for cached RemoteAccessible.
MEMBER_OF knows how to do this, so we now use that.
In future, we should probably cache this somehow, but we're not doing this for LocalAccessible, so it's not a regression at least.
The tests for this previously worked with the cache enabled, but only due to a happy accident.
The radios were grouped in such a way that the AccGroupInfo code gave the expected result.
The tests have now been updated to exercise the new code (and they fail without the C++ part of this patch if the cache is enabled).
Comment 4•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/70b7637ba679
https://hg.mozilla.org/mozilla-central/rev/ea167174ee2f
Description
•