Bug 1826517 - Follow-up: fix tests with EFT disabled.

MANUAL PUSH: Trivial orange fix for setup that we don't ship CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2023-04-10 15:08:15 +02:00
parent 10c08977ed
commit 3c1068d14a

View File

@ -681,11 +681,7 @@ class WalkerActor extends Actor {
rawParentNode(node) {
const rawNode = node instanceof NodeActor ? node.rawNode : node;
if (rawNode.nodeType === Node.DOCUMENT_NODE) {
// NOTE: This preserves previous behavior and it's needed to fix the
// issues described in bug 1826517 comment 2 (so that we don't create
// duplicate actors for the same node from different walkers).
// Maybe there's a better fix for this.
if (rawNode == this.rootDoc) {
return null;
}
return InspectorUtils.getParentForNode(rawNode, /* anonymous = */ true);