3 ms·
indexedDB is the short answer. Whilst Mozilla has made efforts to make it harder, there is still a bunch of things that don't work the same way in private mode,
by shakna 6y ago
indexedDB is the short answer. Whilst Mozilla has made efforts to make it harder, there is still a bunch of things that don't work the same way in private mode, which can provide a best guess as to whether you're in private mode.
indexedDB isn't implemented in Firefox's private mode. [0]
So if you can guess that it is Firefox, and can't use indexedDB, then you can guess that you're in private mode.
[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1639542 https://bugzilla.mozilla.org/show_bug.cgi?id=1639542
- MaxBarraclough 6y agoDoes Chromium do the same thing? The page is able to detect incognito mode in Chromium Edge. The page even uses the browser-specific terminology, private mode for Firefox, incognito mode for Chromium Edge.
- shakna 6y agoNo, indexedDB not working is a Firefox-specific thing. But there are other differences you can look for under Chrome, the simplest of which is that navigator.storage is smaller whilst incognito mode is active. And under Safari you can just check if localStorage actually stores things.