gecko-dev/accessible/tests
James Teh 9d9377be5e Bug 1699339: Fire name/description change event when text in a hidden aria-labelledby/describedby subtree changes. r=eeejay,morgan
We already handled this for visible aria-labelledby/describedby subtrees based on a11y events.
However, when a subtree is hidden (whether via CSS or aria-hidden), it is completely removed from the a11y tree, so we can't use a11y events.
Instead, when a node is added to the DOM, we walk its ancestors looking for an aria-labelledby/describedby target.
We stop if the node or an ancestor has an Accessible, since that means it will be handled elsewhere.
This also limits the number of ancestors we walk for each inserted node, thus decreasing the performance impact of this change.
This doesn't catch all possible mutations in a hidden subtree (e.g. removals or direct text node changes), but this at least fixes a case in Gmail.
Given performance risks, I think it makes sense to address specific cases as they arise.

Differential Revision: https://phabricator.services.mozilla.com/D147559
2022-06-04 02:20:54 +00:00
..
browser Bug 1699339: Fire name/description change event when text in a hidden aria-labelledby/describedby subtree changes. r=eeejay,morgan 2022-06-04 02:20:54 +00:00
crashtests Bug 1724718 - skip some XUL-y tests on android, r=emilio,agi 2021-08-19 12:13:01 +00:00
mochitest Bug 1769569 - Fix remaining ESLint no-undef and no-unused-vars issues in sjs files. r=Gijs 2022-05-18 08:13:19 +00:00