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

[Bug]: Extensions in headless #8173

Closed
JiriValasek opened this issue Mar 29, 2022 · 7 comments
Closed

[Bug]: Extensions in headless #8173

JiriValasek opened this issue Mar 29, 2022 · 7 comments

Comments

@JiriValasek
Copy link

Bug description

Dear puppeteer makers,

I'm not sure if it's really a big, but would it be possible to use the --headless=chrome switch instead of --headless, which supports extensions in headless mode.

Puppeteer version

13.1.3

Node.js version

16.13.2

npm version

8.1.3

What operating system are you seeing the problem on?

Linux

Relevant log output

No response

@OrKoN
Copy link
Collaborator

OrKoN commented Apr 22, 2022

It's more of a feature request. The new headless mode is kind of experimental for Puppeteer as not all tests pass yet. I am adding the support here #8260.

@Kikobeats
Copy link
Contributor

@OrKoN It's hard to know what 'chrome' implies without checking the PR.

I think this sentence should be added at documentation just to clarify:

'chrome' means to support extensions in headless mode.

@OrKoN
Copy link
Collaborator

OrKoN commented Jul 7, 2022

'chrome' does not only means extensions, it means that the same Chrome browser implementation runs in the headless mode. The old headless was a custom browser implementation, that's why it didn't have extensions and other Chrome features. We will make the documents more clear once it is more stable!

@mxr
Copy link

mxr commented Sep 6, 2022

Is there anywhere I can learn more about the differences between --headless and --headless=chrome, specifically performance differences? I was only able to find these docs which don't mention --headless=chrome

@OrKoN
Copy link
Collaborator

OrKoN commented Sep 7, 2022

@mxr it's not publicly documented yet but I am told some public documentation is coming in the next months. In general, the performance of the new headless should be the same as the performance of the headful browser.

@OrKoN OrKoN added the confirmed label Sep 7, 2022
@mxr
Copy link

mxr commented Sep 7, 2022

Thanks!

@Lightning00Blade
Copy link
Collaborator

Puppeteer already has the option for utilizing headless: 'new', and has documentation for it here - https://pptr.dev/guides/chrome-extensions
Announcement - https://developer.chrome.com/docs/chromium/new-headless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants