WhoRoger@lemmy.world to Mildly Infuriating@lemmy.worldEnglish · edit-21 year agoWebsites telling me what I can do with my own browser so they can have their pointless cookieslemmy.worldimagemessage-square85fedilinkarrow-up1159arrow-down14file-text
arrow-up1155arrow-down1imageWebsites telling me what I can do with my own browser so they can have their pointless cookieslemmy.worldWhoRoger@lemmy.world to Mildly Infuriating@lemmy.worldEnglish · edit-21 year agomessage-square85fedilinkfile-text
minus-squarechagall@lemmy.worldlinkfedilinkEnglisharrow-up8·1 year agoLet Mozilla know by filing a report on Webcompat.
minus-squareWhoRoger@lemmy.worldOPlinkfedilinkEnglisharrow-up5·1 year agoI’ll look into that. I believe web sites shouldn’t have any way to detect private mode, right?
minus-squareEavolution@kbin.sociallinkfedilinkarrow-up5·1 year agoI 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.
minus-squarecuriosityLynx@kbin.sociallinkfedilinkarrow-up6·1 year agoWriting a cookie and reading it back should work just fine even in incognito mode. It just gets deleted once incognito is closed.
minus-squaredekatron@lemmy.fmhy.mllinkfedilinkEnglisharrow-up1·1 year agoThere 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 returns undefined 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
minus-squareJuxtaposedJaguar@lemmy.mllinkfedilinkEnglisharrow-up1·1 year agoMaybe incognito enforces CSP more strictly.
Let Mozilla know by filing a report on Webcompat.
I’ll look into that. I believe web sites shouldn’t have any way to detect private mode, right?
I 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.
Writing a cookie and reading it back should work just fine even in incognito mode. It just gets deleted once incognito is closed.
There 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
Maybe incognito enforces CSP more strictly.