News for hackers. Stuff that matters.

Ask HN: Why Google cookies are exempted when blocking third-party cookies?

I disabled third-party cookies option in my chrome browser and yet cookies are being set from google.com and accounts.google.com domain to other sites like upwork.com.

see screenshot: https://i.imgur.com/zEm2r4Y.png

To see for yourself, disable third party cookies in chrome browser -> open upwork.com -> see cookies info.

As per my understanding third-party cookies are those created by domains other than the one the user is visiting at the time. So, why google.com domain cookies are being set on upwork.com?

Update: This issue doesn't happen in Firefox.

( 36 comments | 82 points | on HN )
Re:Ask HN: Why Google cookies are exempted when blocking thi... by Animats on Friday May 07, 2021 @03:52PM (#27080164)
Because Google doesn't want you to do that.[1]

Use Firefox. The Web works just fine with all Google tracking blocked.

[1] https://fossbytes.com/chrome-doesnt-delete-google-cookies/

Re:Ask HN: Why Google cookies are exempted when blocking thi... by jakub_g on Friday May 07, 2021 @04:02PM (#27080277)
To be devil's advocate, if someone wants to clear all cookies and still be logged in to Google: it's like eating a cake and having a cake (well, cookie). In Chrome, being logged in to google.com and logged in to Chrome are tightly linked. (If you don't like that, don't use Chrome).

(Of course Google could do the other thing and say "ok since you clear all cookies, we log you out of Chrome, so you lose sync etc." but it's probably _not_ what most people want, nor what Google wants).

Re:Ask HN: Why Google cookies are exempted when blocking thi... by oh_sigh on Friday May 07, 2021 @04:48PM (#27080713)
Why can't google chrome just have a special login cookie? So you need to log in to chrome, but doing so doesn't mean you're logged into your google account.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by sneak on Friday May 07, 2021 @06:12PM (#27081435)
They used to be separate, but daddy G decided that having two separate login states for Google-the-browser and Google-the-website was too confusing for our widdle heads.

Oh well. At least it makes it dead-simple for the advertising company to track your complete browsing history.

PS: Install cookie autodelete, install uBlock origin, disable chrome login/sync entirely, and disable "enhanced" safe browsing. Block the google domains from loading globally on sites in uBlock. Also, and I cannot stress this enough: stop using gmail. It subjects not only yourself to total ad surveillance, but every single person you correspond with.

Re:Ask HN: Why Google cookies are exempted when blocking thi... by jerrygoyal on Saturday May 08, 2021 @07:49AM (#27086277)
> someone wants to clear all cookies and still be logged in to Google: it's like eating a cake and having a cake (well, cookie)

not sure if this argument is valid here because that third party cookies issue still happens in incognito mode where I'm not logged in to my Google account.

Re:Ask HN: Why Google cookies are exempted when blocking thi... by lolinder on Saturday May 08, 2021 @01:14AM (#27084090)
This is why I use Firefox + Multi-Account Containers. Google and all its services I haven't yet been able to elimiate go in its own container. Google's cookies in all other containers are third-party and so get rejected.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by deepsun on Friday May 07, 2021 @11:55PM (#27083676)
Do you know if I can use Firefox in multiple "identities". E.g. with chrome I use two windows with different colored themes, one for personal, one for work account. Each has their own tab history and stuff.

I like Firefox but didn't find this feature.

Re:Ask HN: Why Google cookies are exempted when blocking thi... by laci27 on Saturday May 08, 2021 @01:02AM (#27084038)
You can have multiple identities, just as you can have them in chrome without being logged in. search for Firefox Multi-Account Containers. OR https://support.mozilla.org/en-US/kb/profile-manager-create-... But you can always create a shortcut for each identity...I use this method for Brave.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by drpixie on Friday May 07, 2021 @08:00PM (#27082236)
"Don't be evil" ... Well, why not? ... Ba ha ha ha haaaaaa.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by olliej on Friday May 07, 2021 @10:42PM (#27083242)
When I joined google a few years ago the phrase “don’t be evil” was nowhere in the orientation materials or any official documents.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by livre on Friday May 07, 2021 @02:44PM (#27079368)
I can't provide an answer but I can provide a little more info about my tests.

I tried this in Microsoft Edge. They show up as blocked in that "Cookies in use" popup but when you open the inspector and go to the Application tab the cookies are there, not blocked. In Firefox's inspector in the Storage tab those domains don't show any cookies unless explicitly allowed.

Re:Ask HN: Why Google cookies are exempted when blocking thi... by magicalist on Friday May 07, 2021 @04:03PM (#27080287)
when I open upwork.com it has 6 iframes in it, including to accounts.google.com/o/oauth2... I'd imagine that's where the cookie goes, not to the parent frame.

You'd need to see which request has the cookie on it, not just which ones were set "when you viewed this page".

Re:Ask HN: Why Google cookies are exempted when blocking thi... by flowerlad on Friday May 07, 2021 @04:17PM (#27080391)
To reduce this kind of abuse I use Edge when visiting Google sites, and Chrome when visiting Microsoft sites.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by kiwijamo on Friday May 07, 2021 @06:04PM (#27081373)
One could simplify that to just Firefox for both properties.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by bashinator on Friday May 07, 2021 @08:15PM (#27082351)
But then what would you use to visit mozilla.org?
Re:Ask HN: Why Google cookies are exempted when blocking thi... by jameshush on Friday May 07, 2021 @08:16PM (#27082359)
Obviously Opera ;). Then just switch back to Chrome when you want to visit Opera's website to close the loop.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by FractalHQ on Saturday May 08, 2021 @07:38AM (#27086185)
What’s wrong with Brave
Re:Ask HN: Why Google cookies are exempted when blocking thi... by maverick74 on Monday May 10, 2021 @11:31AM (#27107125)
Interesting reading...
Re:Ask HN: Why Google cookies are exempted when blocking thi... by jakub_g on Friday May 07, 2021 @03:57PM (#27080220)
I don't know the details of the implementation, so I'm theorizing here, but the most important thing is not whether those cookies are set, but whether they can be read e.g. by other browser tabs and other origins. It could be that those cookies are temporarily set, in an isolated way, to avoid breaking things too much. IIRC, there are some heuristics in place and some cookies used for multi-domain Single-Sign-On are allowed (even in Firefox).
Re:Ask HN: Why Google cookies are exempted when blocking thi... by martini333 on Friday May 07, 2021 @04:02PM (#27080274)
Works as expected for me in Chrome 90 https://imgur.com/a/HDxsf5g
Re:Ask HN: Why Google cookies are exempted when blocking thi... by livre on Friday May 07, 2021 @06:10PM (#27081421)
That's how it appears to me on Edge but when I open the inspector and go to the Applications tab the cookies are there and haven't actually been blocked. Can you check if that's the case for you too?
Re:Ask HN: Why Google cookies are exempted when blocking thi... by martini333 on Monday May 10, 2021 @10:14AM (#27106165)
I only have cookies from the site.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by jerrygoyal on Friday May 07, 2021 @04:20PM (#27080423)
that's strange cause I also used Chrome v90 and I could still see Google cookies even in incognito mode. Could you try after disabling any ad blocker/privacy extensions.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by maverick74 on Monday May 10, 2021 @11:27AM (#27107066)
Why not use a Google Container?

https://addons.mozilla.org/en-US/firefox/addon/google-contai...

Oh... you are using Chrome!!! There's no point then. You won't be able to hide from Google no matter what you do!

Firefox + DuckDuckGo is just as good as all that "Googlish" things ;)

Re:Ask HN: Why Google cookies are exempted when blocking thi... by tacker2000 on Friday May 07, 2021 @07:18PM (#27081915)
If this bothers you, dont use Chrome, ever. Use Chromium if you really need it and dont want to use Firefox. And get rid of your google account whilst youre at it.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by vuelto on Friday May 07, 2021 @03:57PM (#27080219)
Not seeing that in Ubuntu Chromium. They actually get blocked in my case. Also Privacy Badger, cause why not... https://privacybadger.org/
Re:Ask HN: Why Google cookies are exempted when blocking thi... by IshKebab on Friday May 07, 2021 @04:21PM (#27080435)
Probably because you are logged into Chrome.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by jerrygoyal on Friday May 07, 2021 @04:27PM (#27080496)
well it's happening in incognito mode too.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by insomniacity on Friday May 07, 2021 @05:36PM (#27081126)
You trusted Google not to track you in Incognito mode?
Re:Ask HN: Why Google cookies are exempted when blocking thi... by rualca on Friday May 07, 2021 @07:22PM (#27081940)
> well it's happening in incognito mode too.

You're raising doubts regarding a browser's threat to privacy by stating an observation that depends on blind faith on the same browser not threatening privacy.

Re:Ask HN: Why Google cookies are exempted when blocking thi... by olliej on Friday May 07, 2021 @10:44PM (#27083251)
Especially when the browser is made by an advertising company
Re:Ask HN: Why Google cookies are exempted when blocking thi... by maverick74 on Monday May 10, 2021 @11:33AM (#27107158)
For those who REALLY want Chromium-based browsers (Really?!?!?!?)...

Why not use Falkon (falkon.org)?

Re:Ask HN: Why Google cookies are exempted when blocking thi... by retox on Saturday May 08, 2021 @01:03PM (#27088885)
In Chrome you can disable auto-playing videos on any site except Youtube.
Re:Ask HN: Why Google cookies are exempted when blocking thi... by unparagoned on Saturday May 08, 2021 @03:19AM (#27084751)
Use brave if you also want the benefits if a chromium browser
Re:Ask HN: Why Google cookies are exempted when blocking thi... by FractalHQ on Saturday May 08, 2021 @07:39AM (#27086193)
Why no love for Brave around here?