Cookie-AutoDelete: [BUG] Some cookies appear to be stuck / CAD says it was deleted when it is not (FF 86+ Strict Mode / cross-site protection / dynamic first party isolation / total cookie protection)
Describe the bug
It appears as if under certain conditions CAD was not able to remove eligible cookies on Firefox, even though it tries. Even though it appears consistently in my browser profile I found it difficult to exactly reproduce it in a new browser profile. Cookies got stuck there too, but not the same.
To Reproduce
Steps to reproduce the behavior:
- Go to a Google site (google.com, youtube.com). Had it with Wikimedia cookies however too.
- Make sure you got cookies set.
- Close the tab.
- CAD should now attempt to clear the cookies in question.
Expected behavior
All eligible cookies should get removed.
Screenshots
Three attempts over four seconds
That screenshot should hopefully clearly show that CAD does determine these cookies as eligible for removal, but still fails to remove them
Your System Info
- OS: Windows 8.1
- Browser Info: Firefox 80
- CookieAutoDelete Version: 3.4.0
Additional context
To be fair, it could be that is a general Firefox issue. With https://addons.mozilla.org/firefox/addon/cookie-quick-manager/ I don’t seem to be able to delete the cookies selectively either, I need to use Firefox own built-in cookie manager.
The cookies on “accounts.youtube.com” are called CheckConnectionTempCookie
. Are there any known issues in this area?
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 11
- Comments: 67 (29 by maintainers)
An update from https://bugzilla.mozilla.org/show_bug.cgi?id=1669716 reveals that a patch to the extension API for ‘partitionKey’ (needed for cross-site protection buckets) is added for milestone Firefox 94. Once this available on Dev channel, I’ll plan some time to look into getting it working again. I can’t guarantee that I’ll have it ready before Firefox 94 is released.
The existing FPI (third party/cross-site tracking) option should still work. I’m working on the dynamic version (cross-site cookies). In the process of adding more info to the cookies so that you can select which partitioned cookie to keep/erase.
Just a heads up to all - it looks like since Firefox 94, the new dynamic partition / cross-site cookie / strict mode will not return any dynamically partitioned cookies through
getAll
without an additional attribute, so those cookies will still exist for the time being (CAD currently doesn’t know that it exists because the browsers aren’t returning them). Previously, they were being returned but couldn’t be deleted in any way (thus the constant similar cleanup logs).On the bright side, the dynamic partition / strict mode / cross-site cookies should currently contain all third-party cookies to their specific first party sites, so many third-party sites should not easily know if you visited another site with their third-party cookies.
Hey there.
For me, this problem has gone away from v94 (I’m currently on version 94.0.1x64, on Win10). I do not recall having changed any settings, one day it just went from “~598 cookies not deleted”, to always deleting everything; the only difference I noticed was the new-Firefox tab thing.
@kennethtran93 The Firefox docs have been updated which should hopefully enable you to fix this: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/cookies#storage_partitioning
Most notably:
The commit has landed in mozilla-central so should be in the next Nightly. The API is documented here.
@kennethtran93
Just to confirm, Strict Mode “Cross-site Cookies” (dFPI) gave me issues (cookies not being removed on cleanup), I switched to Custom Mode w/ “Cross-site tracking cookies” a while ago and not had a problem since.
I guess someone is pushing on bugzilla, what attention is mozilla paying? Any hope of being able to see this fixed in the short-medium term?
I view the current state of dFPI with concern, especially with this other bug.
@kennethtran93 If possible would you mind giving an update about this issue ? Because everyday this addon becomes more useless which is sucks cause the addon itself is great.
‘Total cookie protection’ (ie. dfpi) is now rolling out by default, so this issue might begin effecting more users over the coming weeks/months.
https://blog.mozilla.org/en/products/firefox/firefox-rolls-out-total-cookie-protection-by-default-to-all-users-worldwide/
Just changing the privacy setting doesn’t affect any existing cookies that was set with previous configurations. That only applies to newly created cookies and/or newly visited sites. And sometimes, a ‘turn off and on again’ would do the trick.
The ‘delete 0 cookies’ usually means that other site data is cleaned up. If you expand the clean up history log (if you enabled it), it would tell you that other browsing data types are being cleaned (even if there are none). This is because, unlike cookies, we cannot search through all the other browsing data types, so we manually set a cookie on the sites you visit so that there’s at least one cookie in there that allows us to know the domain to trigger cleanup for. The notification and logs will not account for the cookie that this webextension has set.
Just reporting in: I’m running custom mode with everything turned on and it’s given me no troubles until today. I had a lot of trouble with being half-logged-in to amazon prime video, suspected cookie issues, ran a clean, no fix, took me some time and eventually I manually cleaned the cookies from firefox’s settings and everything came good. I can only conclude that the cleanup of cookies from the addon, didn’t actually remove the cookies.
They’ve adjusted the cookie protection in strict mode to cross-site protection in 86+. This probably started setting newer and recently updated cookies to use an internal cookie value that we do not have access of.
This is just my guess, but removal of cookies with cross-site protection requires that internal value that is not provided to us. Changes to the protection would most likely only affect future cookies and not touch any existing ones. This applies both ways, so cookies created while its behavior is cross-site protection will be ignored and newly created cookies using non-cross-site protection (can use cross-site tracking protection) should be removable by webextensions.
Came in to report that I’m experiencing the same issue on 86.0.1. What tipped me off is that the number of “deleted” cookies in the popup kept growing and I was seeing the same cookies over and over.
For what its worth, i am on 87.0b3 on windows desktop. With both, privacy.firstparty.isolate enabled and disabled, there are many cookies that are not getting deleted. Including account.google.com I have highlighted a couple