Commit 0aef0dd1 authored by Nicolas Chevobbe's avatar Nicolas Chevobbe
Browse files

Bug 1730170 - [devtools] Fix inspector search when EFT is enabled. r=bomsy.

We were getting results of nodes in iframes twice: from the iframe target
as well as from the top-level target.

Differential Revision: https://phabricator.services.mozilla.com/D126067
parent b4dad3bd
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -96,6 +96,13 @@ WalkerIndex.prototype = {
    while (documentWalker.nextNode()) {
      const node = documentWalker.currentNode;

      if (
        this.walker.targetActor.ignoreSubFrames &&
        node.ownerDocument !== this.doc
      ) {
        continue;
      }

      if (node.nodeType === 1) {
        // For each element node, we get the tagname and all attributes names
        // and values