Bug 1635634 - do not check root document containment when calculating relations. r=mtigley

Differential Revision: https://phabricator.services.mozilla.com/D73988
This commit is contained in:
Yura Zenevich 2020-05-06 17:46:14 +00:00
Родитель 7667ce064e
Коммит 8812c997a4
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -396,11 +396,6 @@ const AccessibleActor = ActorClassWithSpec(accessibleSpec, {
const targets = [...relation.getTargets().enumerate(Ci.nsIAccessible)]; const targets = [...relation.getTargets().enumerate(Ci.nsIAccessible)];
let relationObject; let relationObject;
for (const target of targets) { for (const target of targets) {
// Target of the relation is not part of the current root document.
if (target.rootDocument !== doc.rawAccessible) {
continue;
}
let targetAcc; let targetAcc;
try { try {
targetAcc = this.walker.attachAccessible(target, doc.rawAccessible); targetAcc = this.walker.attachAccessible(target, doc.rawAccessible);