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] support 'private mode' In Firefox

See original GitHub issue

Hello all,

First, we’ve been using Playwright to test all three supported browser platforms, and it’s been working well. I did discover something with Firefox though that was a bit confusing and believe warrants a question.

I have a project utilizing indexedDB and was testing it with Playwright using newContext. All tests passed without issue. But, we had a reported bug that our project failed in Firefox’s “private mode”. After some debugging, it seems accessing indexedDB in Firefox’s private mode is denied, causing our code to fail.

Since we were running our tests with firefox.newContext(), we believed it was running the tests against the browser’s version of private mode or “incognito” (since the API docs hint at this). But, that doesn’t seem to be entirely accurate as our Firefox tests passed in Playwright with newContext, but failed in manual testing in Firefox’s private mode.

Question: Is it true that newContext is similar to, but not actually, private mode/incognito?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pavelfeldmancommented, May 26, 2020

We can recycle this issue. Not saying we are going to do it, but let it be on file.

1reaction
pavelfeldmancommented, Apr 3, 2020

Yes, that is true! Also, a great discovery.

The idea behind the newContext is that it gives you a fresh isolated browser profile. But it aims at simulating a regular profile behavior, not an incognito one. Support for the browserType.newContext({private: true}) would be a fair feature request. Not saying that we will rush into implementing it while there are enough things to fix in the regular profile, but if it gets enough traction, we’ll definitely look at it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incognito browser: What it really means - Mozilla
Firefox calls it private browsing, Chrome calls it incognito mode. Both let you browse the web without saving your browsing history.
Read more >
Privacy online just got easier with the new Firefox release
Today's new features on Firefox: · Private Browsing mode has a new shortcut button so you can pin it to your desktop ·...
Read more >
Extensions in Private Browsing | Firefox Help - Mozilla Support
Firefox lets you decide which extensions are allowed to run in private windows. Additionally, an extension is not enabled for private browsing by...
Read more >
Private Browsing on Firefox for Android - Mozilla Support
Firefox for Android lets you open sites in private browsing tabs, so you can search and browse without the browser saving any history....
Read more >
Firefox's Private Browsing mode upleveled for you
How we upgraded Private Browsing mode · Total Cookie Protection – Stop cookie tracking with separate cookie jars · Smart Block – Ensuring...
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