Skip to content

Commit

Permalink
Bug 1730170 - [devtools] Fix inspector search when EFT is enabled. r=…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
nchevobbe committed Oct 1, 2021
1 parent ba79471 commit b12c503
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions devtools/server/actors/utils/walker-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b12c503

Please sign in to comment.