Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Clarify Floc Eligibility #85

Closed
shigeki opened this issue Apr 1, 2021 · 5 comments
Closed

Clarify Floc Eligibility #85

shigeki opened this issue Apr 1, 2021 · 5 comments

Comments

@shigeki
Copy link

shigeki commented Apr 1, 2021

I found that the following comments at FlocEligibilityObserver in chrome/browser/federated_learning/floc_eligibility_observer.h.

// computation. The history entry is eligible for floc computation if all of the
// following conditions hold:
// 1) the IP of the navigation was publicly routable.
// 2) the interest-cohort permissions policy in the main document allows the
// floc history inclusion.
// 3) either the page has an ad resource, or the document.interestCohort API is
// used in the page.

Only 2) and the first half of 3) are described in the article of the web.dev but not others.

If 1 is applied during trials, please add notes about it.
It is beneficial for users to know their internal pages are out of FLoC.

I have one question regarding 1.
The IP of the navigation seems to be derived from a socket, not a DNS record.
Are pages eligible for FLoC computation even when clients are connecting via an internal proxy to external servers?

@jkarlin
Copy link
Collaborator

jkarlin commented Apr 1, 2021

Good point. @samdutton can you add the fact that pages served from private IP addresses (e.g., intranet pages) won't be part of the floc computation to the web.dev article please?

I believe that is correct (though I have not manually verified) that pages loaded from a proxy on a private address would not be included.

@samdutton
Copy link

samdutton commented Apr 6, 2021 via email

@simonft
Copy link

simonft commented Apr 7, 2021

It might be worth calling out the second half of 3 ("... or the document.interestCohort API is used in the page") in the article as well. I've already seen someone confused when seeing a change in the cohort returned by document.interestCohort API in the browser console on a page that wouldn't otherwise update the cohort.

@samdutton
Copy link

samdutton commented Apr 7, 2021

Thanks @shigeki and @simonft — I've done PRs with updates based on your suggestions.

@shigeki
Copy link
Author

shigeki commented Apr 12, 2021

@samdutton Thanks. The documents were updates as expected.

@shigeki shigeki closed this as completed Apr 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants