Websites telling me what I can do with my own browser so they can have their pointless cookies
Websites telling me what I can do with my own browser so they can have their pointless cookies
It's not even "Incognito" (what a misnomer too), this is a Gecko-based browser
You're viewing a single thread.
Let Mozilla know by filing a report on Webcompat.
44 0 ReplyI'll look into that. I believe web sites shouldn't have any way to detect private mode, right?
14 2 ReplyI wonder if it tries to save a cookie then read it back? I don't really know how any of this works but that sounds like a way to detect it that's fairly infallible.
9 0 ReplyWriting a cookie and reading it back should work just fine even in incognito mode. It just gets deleted once incognito is closed.
13 1 ReplyThere are ways to detect private browsing by querying browser features or behaviours that are different in private browsing.
For example, in Firefox calling
Navigator.serviceworker
returnsundefined
if private browsing is enabled.Check out this script for ways to detect this in popular browsers:
https://github.com/Joe12387/detectIncognito/blob/main/src/detectIncognito.ts
2 0 Reply
Maybe incognito enforces CSP more strictly.
1 0 Reply