gecko-dev/accessible
James Teh a3b482acc2 Bug 1395181 part 2: Support click handlers added to the root element. r=eeejay
Normally, we treat the body as the DOM node for a DocAccessible.
However, a click listener can be added to the root element; e.g. the html element.
We now treat a click listener added to the root element the same as if one were added to the body.

This required a change to nsAccessibilityService to use the DocAccessible when click listeners change for the root element so a cache update is pushed.
This change was made for the body also, since we weren't pushing a cache update for click listener changes on the body either.

Differential Revision: https://phabricator.services.mozilla.com/D144278
2022-04-22 23:13:36 +00:00
..