Skip to content

Commit

Permalink
Bug 1730162 - [devtools] Don't get grids from frames in LayoutActor#g…
Browse files Browse the repository at this point in the history
…etGrids when EFT is enabled. r=ochameau.

Differential Revision: https://phabricator.services.mozilla.com/D126065
  • Loading branch information
nchevobbe committed Oct 1, 2021
1 parent 4d15b11 commit ba79471
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devtools/server/actors/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,10 @@ const LayoutActor = ActorClassWithSpec(layoutSpec, {
const gridElements = node.getElementsWithGrid();
let gridActors = gridElements.map(n => new GridActor(this, n));

if (this.targetActor.ignoreSubFrames) {
return gridActors;
}

const frames = node.querySelectorAll("iframe, frame");
for (const frame of frames) {
gridActors = gridActors.concat(this.getGrids(frame.contentDocument));
Expand Down

0 comments on commit ba79471

Please sign in to comment.