mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
10c08977ed
commit
3c1068d14a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user