зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1730162 - [devtools] Don't get grids from frames in LayoutActor#getGrids when EFT is enabled. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D126065
This commit is contained in:
Родитель
552d9edc73
Коммит
eac369edb3
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче