question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature]: Allow launching in incognito mode

See original GitHub issue

Currently, 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:open
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
stevenwdvcommented, Sep 2, 2022

@OrKoN Don’t you mean “assumes that the default browser context is *non-*incognito” ?

1reaction
OrKoNcommented, Sep 2, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found