Bug 1566324 part 2: Respect shadow DOM for aria-activedescendant. r=eeejay
commitdc0f1ef531c0f033b96428f82060e2e542565c3f
authorJames Teh <jteh@mozilla.com>
Thu, 25 Jul 2019 20:44:18 +0000 (25 20:44 +0000)
committerJames Teh <jteh@mozilla.com>
Thu, 25 Jul 2019 20:44:18 +0000 (25 20:44 +0000)
tree5d5c658e3796bdbbe6d67aa0d882cf6a8c28bb89
parent0eb35f6d143c96ccfa7c82873fe13e11be91f194
Bug 1566324 part 2: Respect shadow DOM for aria-activedescendant. r=eeejay

Previously, the target element for aria-activedescendant was retrieved by calling GetElementById on the owner document.
This meant that aria-activedescendant inside shadow DOM looked for ids in the owner document instead of the shadow DOM.
To fix this, use IDRefsIterator::GetElem instead.

Differential Revision: https://phabricator.services.mozilla.com/D38833

--HG--
extra : moz-landing-system : lando
accessible/generic/Accessible.cpp
accessible/generic/DocAccessible.cpp
accessible/tests/mochitest/events/test_focus_aria_activedescendant.html