-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[fix]: make page.evaluate() use main world
#1308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix]: make page.evaluate() use main world
#1308
Conversation
🦋 Changeset detectedLatest commit: 492f0a5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 files reviewed, no comments
context.addInitScript() use correct isolated worldcontext.addInitScript() use main world
context.addInitScript() use main worldpage.evaluate() use main world
|
@greptielai |
|
@cubic-dev-ai review this PR |
@seanmcguire12 I've started the AI code review. It'll take a few minutes to complete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 4 files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 issue found across 4 files
Prompt for AI agents (all 1 issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="packages/core/lib/v3/tests/context-addInitScript.spec.ts">
<violation number="1" location="packages/core/lib/v3/tests/context-addInitScript.spec.ts:127">
P2: Use a local `data:` URL (or other deterministic fixture) instead of hitting `https://example.com` so the test remains reliable offline.</violation>
</file>
Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR
why
page.evaluate()uses thev3-worldaddInitScript()what changed
page.evaluate()uses the main worldtest plan
page.evaluate()on a script added viacontext.addInitScript()