Skip to content

Conversation

@karlseguin
Copy link
Collaborator

I don't know if FrameId is related to an <iframe>, and whether each Page has 1 implicit "frame". But, playwright seems to treat frameId and targetId as interchangeable, and chrome seems to agree (at leas to some degree); chrome will return a targetId and reuse that value for the frameId.

So the simplest solution is just to remove our concept of a frameId and use targetId exclusively. This doesn't seem to cause any issues with puppeteer.

I don't know if FrameId is related to an <iframe>, and whether each Page has
1 implicit "frame". But, playwright seems to treat frameId and targetId as
interchangeable, and chrome seems to agree (at leas to some degree); chrome will
return a targetId and reuse that value for the frameId.

So the simplest solution is just to remove our concept of a frameId and use
targetId exclusively. This doesn't seem to cause any issues with puppeteer.
@krichprollsch krichprollsch merged commit 4802a2c into lightpanda-io:main Mar 11, 2025
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2025
@karlseguin karlseguin deleted the playwright branch March 12, 2025 04:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants