Skip to content
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

feat: support running Puppeteer in extensions #12459

Merged
merged 2 commits into from
May 21, 2024
Merged

feat: support running Puppeteer in extensions #12459

merged 2 commits into from
May 21, 2024

Conversation

OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented May 17, 2024

This PR adds documentation for running Puppeteer inside a Chrome extension using chrome.debugger for communication with CDP.

It also marks the ExtensionTransport public.

It also changes how Puppeteer stringifies JS functions: if CSP prevents the use of new Function() we assume the function is serializable.

@OrKoN OrKoN force-pushed the orkon/extensions branch 3 times, most recently from 41e1082 to 417d691 Compare May 21, 2024 09:36
Copy link
Collaborator

@Lightning00Blade Lightning00Blade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

examples/puppeteer-in-extension/background.js Outdated Show resolved Hide resolved
@OrKoN OrKoN merged commit 3c6f01a into main May 21, 2024
37 checks passed
@OrKoN OrKoN deleted the orkon/extensions branch May 21, 2024 10:41
@release-please release-please bot mentioned this pull request May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants