|
|
@@ -134,12 +134,11 @@ this.frameTree = this.frameTree || (() => {
|
|
|
const framesData = [];
|
|
|
frameElements.forEach((frameElement, frameIndex) => {
|
|
|
const windowId = parentWindowId + WINDOW_ID_SEPARATOR + frameIndex;
|
|
|
- const frameWindow = frameElement.contentWindow;
|
|
|
const frameDoc = frameElement.contentDocument;
|
|
|
if (frameDoc) {
|
|
|
try {
|
|
|
processFrames(frameDoc.querySelectorAll(FRAMES_CSS_SELECTOR), options, windowId, sessionId);
|
|
|
- framesData.push(getFrameData(frameDoc, frameWindow, windowId, options));
|
|
|
+ framesData.push(getFrameData(frameDoc, frameElement.contentWindow, windowId, options));
|
|
|
} catch (error) {
|
|
|
framesData.push({ windowId, processed: true });
|
|
|
}
|