[Feature]: Allow launching in incognito mode
See original GitHub issueCurrently, puppeteer.launch
opens a non-incognito context, and while one can open an incognito context via createIncognitoBrowserContext
, this seems like an unnecessary hassle, especially since an extra context was created (and remains open).
Chromium supports launching in incognito mode via -incognito
, but specifying this in puppeteer.launch
let’s Puppeteer still think that it’s a non-incognito context: isIncognito
returns false
, which may cause some problems.
It would be nice to have a documented way of doing this, via a boolean option in puppeter.launch
.
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
Browse in private - Computer - Google Chrome Help
If you don't want Google Chrome to remember your activity, you can browse the web privately in Incognito mode. On your computer, open...
Read more >How to default launch a browser in private or incognito mode.
On the Shortcut tab, in the Target text field, type -incognito at the end (A), click Apply (B), then click OK (C). Opening...
Read more >Chrome now allows creating Incognito Mode shortcut with one ...
Google Chrome allows you to create a shortcut that will open a new Incognito window directly with one click. Starting in Chrome Canary...
Read more >How to Always Launch Chrome in Incognito Mode
Launching Chrome always in Incognito mode on Windows is quite straightforward. You must create a desktop shortcut by adding a simple command ...
Read more >How to Always Launch any Web Browser in Private Browsing ...
Incognito mode or private browsing is one of the several privacy-focused features on most modern web browsers. It allows users to surf the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@OrKoN Don’t you mean “assumes that the default browser context is *non-*incognito” ?
I think it’s actually a bug in Puppeteer which assumes that the default browser context is non-incognito. It should probably derive it from the actual running browser context. The entire
isIncognito
check in Puppeteer does not look very robust.