Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 16b4632

Browse files
committed
Revert "Fix cannot find context with specified id"
Although this commit fixes most of the problems, we don't know the implications of this change. So it's better to revert it. This reverts commit 4f95b1b.
1 parent e03efa6 commit 16b4632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/frame_session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ func (fs *FrameSession) onAttachedToTarget(event *target.EventAttachedToTarget)
785785
session := fs.page.browserCtx.conn.getSession(event.SessionID)
786786
targetID := event.TargetInfo.TargetID
787787

788-
if eti := event.TargetInfo; eti.Type == "iframe" && eti.URL != "" {
788+
if event.TargetInfo.Type == "iframe" {
789789
frame := fs.manager.getFrameByID(cdp.FrameID(targetID))
790790
if frame == nil {
791791
return

0 commit comments

Comments
 (0)