Skip to content

Commit 4a1d718

Browse files
committed
FrameManager - Resolve IsMain = false async frames
- Previously only the main frame was updated, now all frames should resolve Discussion #44
1 parent 18d6d6f commit 4a1d718

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/PuppeteerSharp/FrameManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ private void OnFrameAttached(string frameId, string parentFrameId)
349349
var isMainFrame = string.IsNullOrEmpty(parentFrameId);
350350
var parentFrame = _frames[parentFrameId];
351351
var frame = new Frame(this, parentFrame, frameId, isMainFrame);
352-
_frames[frame.Id] = frame;
352+
_asyncFrames.AddItem(frameId, frame);
353353
FrameAttached?.Invoke(this, new FrameEventArgs(frame));
354354
}
355355
}

0 commit comments

Comments
 (0)