Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Cookie counter on subdomains always zero

See original GitHub issue

Describe the bug

The cookie counter on websites with a subdomain like is always zero, even when there are cookies clearly set and also deleted when leaving the sites. Manual delete doesn’t work as it shows ‘No cookies found’.

On sites without a subdomain like it works fine.

To Reproduce

Steps to reproduce the behavior:

  1. Go to
  2. Open the addon menu
  3. See ‘0 cookies’
  4. Open browser console and go to Storage Inspector

Expected behavior

The cookies should get counted properly



Your System Info (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser Info: Firefox 78.0.1
  • CookieAutoDelete Version: latest™ 3.4.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

Tibladarcommented, Jul 16, 2020

Surprisingly in my tests, testing privacy.firstparty.isolate for both true/false still shows same result that I had before.

It seems to be privacy.firstparty.isolate.use_site with privacy.firstparty.isolate enabled. You may need to clear the site’s cookies in order to see a different result.

until I understand exactly what that does.

Looking at the changeset and its ticket it seems to change the use from the old GetBaseDomain (eTLD+1) to a specific site which doesn’t ignore the used scheme like the old one. Because there’s a new string I suspect the old domain matching doesn’t work anymore.

kennethtran93commented, Jul 20, 2020

From the changeset given, it looks like it does the following if use_site is adding round brackets with schemes and ports…

+  site.AssignLiteral("(");
+  site.Append(aScheme);
+  site.Append(",");
+  site.Append(aHost);
+  if (aPort != -1) {
+    site.Append(",");
+    site.AppendInt(aPort);
+  }
+  site.AppendLiteral(")");

So here’s my findings:

privacy.firstparty.isolate.use_site setting firstPartyDomain cookie property value
Enabled (https,

Which means I now not only need to detect if firstPartyDomain (via the workaround so I don’t need to request privacy permission), I also need to check the firstPartyDomain given for a cookie…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why isn't this cookie sent to other subdomains? - Stack Overflow
In the browser dev tools, I see that the sign-in response has the cookie in the "Cookies" tab, so I know it's set....
Read more >
Cookie subdomains missing first part of subdomain for non ...
As an experiment, I've commented out the entire so no cookie domain is explicitly set by that mechanism. Having cleared ...
Read more >
Persistence with Subdomains - DevCentral
This works when the node is setting the cookie, but I'm not certain it will work with a cookie the BIG-IP is setting...
Read more >
setcookie - Manual - PHP
setcookie() defines a cookie to be sent along with the rest of the HTTP headers. Like other headers, cookies must be sent before...
Read more >
Why doesn't the CNAME record of my subdomain propagate ...
Just disabling Cloudflare proxy is not a solution. We use Cloudflare for redirects too. Please either provide a redirect functionality or at least...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found