New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add HTTP header to explicitly opt out of FLoC by default #16036
Conversation
Why do we need to restrict ourselves from using a feature we don't use? |
We ourselves do not use ads or stuff, so it is unlikely our domain would be added. However, Google may change the rules in the future. Furthermore, we do sometimes include third-party content in iframes, via preview cards. In this case, I believe the preview cards could cause the instance to be added to the cohort computation data. EDIT: cf. https://github.com/WICG/floc#opting-out-of-computation this change is to not be part of the cohort computation data in any case, more than to prevent our code or included frames from getting the cohort ID |
From everything I read on the subject, if I join a Mastodon instance (that doesn't opt-out of FLoC) around a specific topic and I am using Chrome, I can be added to a Cohort that references that topic. At least this explanation presents a very similar situation:
Also, from other source:
Again, my knowledge on this is just from curious reading on the topic. |
TL;DR: Google's FLoC experiment computes a hash (SimHash) of the websites visited in the last 7 days, that hash defines a cohort, and cohorts are potentially merged with similar cohorts if the individual cohorts are too small (the decision to merge cohorts is opaque and decided by Google). According to https://web.dev/floc/, only websites in which Chrome detects usage of ads may contribute to cohorts:
This may suggest that Mastodon instances won't contribute to cohort computation as they don't use ads, but as I said above, embedded players from preview cards (e.g., YouTube player) may, and in this case I think the Mastodon instance might be tagged as “loading ads or ads-related resources” and end up contributing to cohort computation. Furthermore, Google may change those rules in later trials or in the final deployment, but the explicit opt-out mechanism is less likely to change. Therefore, I think it is safer to explicitly opt out of the whole FLoC thing to ensure Mastodon instances do not end up included in cohort computation. |
I hate that we are forced to add a wasteful header on all requests to disable a Chrome feature nobody asked for that Chrome could choose to ignore anyway. |
(note that the "ad tagging" heuristic is only used as part of the 6 month experiment, for 0.5% of chrome page loads. The current plan is for the final version of FLoC to be opt-in only on the site level) |
Fixes #16034