Describe the bug
Seems to be a error message that pops up each time a Cookie is cleaned. It reads:
"Type Error for Parameter options (Error Processing Hostname. 0 Error Invalid hostname ) for BrowsingData.RemoveLocalStorage"
No idea what it means, and it randomly started happening a few hours ago. I've taken the settings and reset them, using the 'Default' button, but that doesn't seem to work, along with no idea how programing or coding works, I can't understand what the error means other than maybe Firefox broke something with how hostnames work, or removed BrowsingData.RemoveLocalStorage, whatever that is.
I have no idea where this 'Console Output' is, or where to get it to post it here.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For there to not be an error showing up.
Screenshots
Add screenshots to help explain your problem, notably the settings and any related errors. For showing cookie counts, it would be helpful to also include a screenshot of the Storage Inspector that you can access through Development Tools (F12) WHILE on that tab/site.
Your System Info (please complete the following information):
Additional context
Add any other context about the problem here.

Messing with the browser some more, turning on Notifcations, it seems no matter what website I'm on, when I click Clean I also delete from some site named "c" Just c not c.com or something just 'c'. I think that is causing it, but I have no idea what this 'c' is. Firefox hasn't updated today, as far as I've noticed, nor has Cookie AutoDelete, so no idea where this 'c' site is coming from. It even just pops up randomly while I haven't switch tabs or cleaned up cookies manually with the button, so no idea what it is.
I'm having the same issue. It just started earlier today. Every time I close a tab, it get the error popup.
This is Firefox 75 (64-bit), Cookie AutoDelete 3.2.0, on Linux.
Good to know I'm not alone and that it isn't a virus or something.
Can either of you screenshot the CAD settings?
I've also got this on Linux
Firefox Developer Edition 76.0b7
Cookie AutoDelete 3.2.0

I don't think cleaning localStorage was working properly in previous versions, hence errors weren't showing up...
If anybody is tech-savvy enough to go into about:devtools-toolbox?type=extension&id=CookieAutoDelete%40kennydo.com, clear the console (via the trash icon), then manually hit clean / clean, include open tabs and screenshot whatever the console displays for me?
I'll post logs in a sec.
I had deactivated localstorage cleanup before your comment and I'm pretty sure that it's fine with this option disabled.
Error: "Type error for parameter options (Error processing hostnames.0: Error: Invalid hostname ) for browsingData.removeLocalStorage."
otherBrowsingDataCleanup moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
l moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
l moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
otherBrowsingDataCleanup moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
cleanCookiesOperation moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
promise callback*s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
Array(3) [ "", "redom.js.org", "www.cyanogenmods.org" ]
common-background-popup-setting.bundle.js:31:26004
cleanCookiesOperation moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
c moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
(Async: promise callback)
s moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
a moz-extension://f3056d5d-286d-4f45-bb60-5012e4b11f6e/bundles/common-background-popup-setting.bundle.js:31
Well the error appears to be an empty hostname in array.... I'll see what debug I can do on my end.
The only thing I can think of is a cookie with an empty domain.
I can filter out the cookies with no domain set whatsoever... I'll need to look into what those cookies are with no domains...
Out of curiosity, if you look into the Cookies and Site Data portion of the Firefox preferences under privacy, is there a row that doesn't have a domain listed but has cookies/storage?
Ok. This was apparently an old issue that was fixed previously to which I broke it again... whoops.
Cookie API requires a hostname to clear any cookie. This means that I cannot remove cookies with no hostname (or was set using whitespace). Those cookies you'll need to remove on your own through the Firefox preferences area.
I'll go ahead and amend a patch to exclude cookies with no hostnames.
Just to add, a workaround in the interim that works for me is to add the entry c to my whitelist.
@kennethtran93 is it possible that the empty domains are local files? There was one row that had (local file) instead of a domain. There was no row with a blank domain.
@jcuenod seems right.
I got the same error pop up and looked the cleanup log. It shows that it is trying to clean a cookie that is on local file. The domain it shows on the log is the root directory name, like file:///usr/whatever/file.html shows usr
...Can somebody tell me how local files with no webserver can even run javascript to set cookies and use localstorage? Or am I missing something here...
Local html files can have inline js but they can also reference scripts from anywhere else (including, for example, a CDN)
After a bit of digging, CAD doesn't handle file:// protocols at all, thus cookies and localstorage pertaining to those aren't cleared yet. When parsing the url through new URL(), the hostname is undefined.
Not that websites can track via local files anyway...or could they...
@kennethtran93 is it possible that the empty domains are local files? There was one row that had
(local file)instead of a domain. There was no row with a blank domain.
Same here: No row(s) with blank domain but the following row with cookies from local files (screenshot in German):

In my case, these "local" cookies have names like POPUPCHECK, SJECT15, AMCV_[HASH]%40AdobeOrg or simply a hash value.
After deleting the above row, the CAD error message is gone!
Yup. We don't handle any file:// protocols at this time. I'll find a way to silence that error, but keep in mind that they won't be deleted through CAD.
Just found out that cookies for file:// protocol set via document.cookie is silently ignored on Google Chrome. Seems it depends on how browsers handle them.
Small update - cookies from file:// will be attempted for cleanup, but not for localstorage (they will be silenced).
Those will still need to be removed manually as the only way to clean those is manually or when the tab is still open (as a script needs to be executed on that tab).
a beta with tons of console debug info will be made available soon.
Please try the builds posted in PR #713 and let me know.
This build attempts to blindly remove the domain and its common siblings (i.e. example.com will also be cleared for www.example.com and .example.com (the dot in front)). In Chrome it also has the addition of appending http and https in front of the ones listed above.
Debug mode is also available, though only if you're comfortable with reading the output from the browser extension console (devtools).
I've disabled cleaning localstorage on file protocols as the API throws errors on URL's with file:// protocols. The only way to clean those is to use the clean localstorage button on the popup in that tab, or to toggle the localstorage option in settings (this will clear the localstorage for all domains though).
In the event empty hostnames does get passed through it should already be silenced for the normal user.
I stumbled over this issue and installing the #713 build as temporary addon obviously seems to solve the issue for me. Thanks for fixing and your extensive communication, @kennethtran93 !
I stumbled over this issue and installing the #713 build as temporary addon obviously seems to solve the issue for me. Thanks for fixing and your extensive communication, @kennethtran93 !
@bentolor Thank you for the test confirmation!
Most helpful comment
Ok. This was apparently an old issue that was fixed previously to which I broke it again... whoops.
Cookie API requires a hostname to clear any cookie. This means that I cannot remove cookies with no hostname (or was set using whitespace). Those cookies you'll need to remove on your own through the Firefox preferences area.
I'll go ahead and amend a patch to exclude cookies with no hostnames.