Ask HN: How does Google share my login information with YouTube?
Steps to reproduce:
1. Install Firefox 2. Go to google.com 3. Log in with your Google account 4. Go to youtube.com 5. You are already logged in
I would like to understand how Youtube receives my Google login information. I assume that logins on the web are based on websites, and since google.com and youtube.com are two different websites, Youtube should not be able to access my Google login.
So how does Youtube do it? If this were Chrome, I would assume that it’s some sort of Google integration, but this is Firefox, so there must be a standard web API at work here.
14 comments
[ 3.0 ms ] story [ 43.7 ms ] threadIs this considered a dark pattern?
As a Firefox user, I would prefer if the browser informed me about this. If I sign in on Google, Firefox should include this information in the “Remember password” popup. A small warning that says something like, “This login information was shared with youtube.com”.
YouTube is owned by Google so they can make both websites cooperate to share data between each other, working around the browser's same-origin policy.
- There is a limit on how many sites the login information can be shared with without notifying the user.
- If the login information is attempted to be shared with a website that is a known tracker, the process is stopped, and the user is explicitly prompted to allow this.
Both are part of Google.
I am not sure if this is the exact mechanism.. but thinking that everything is origins, domains and websites and ignoring the fact that websites can call other websites (without making it obvious to the user) and they are all interconnected is a very naive assumption.
I don’t think this is possible. When Google.com receives an HTTP request from Youtube.com, Google cannot know which user it is because the user visited Youtube.com anonymously.