Skip to content
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

Update explanation of Clear Site Data in README.md #77

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,13 @@ User agents need not perform this normalization on the domains in their static l
# Clearing Site Data on Set Transitions
Sites can change which First-Party Set they are a member of. We need to pay attention to these transitions so that they don’t link user identities across all the FPSs they’ve historically been in. In particular, we must ensure that a domain cannot transfer a user identifier from one First-Party Set to another when it changes its set membership.

In order to achieve this, site data needs to be cleared on certain transitions. The clearing should behave like [`Clear-Site-Data: "*"`](https://www.w3.org/TR/clear-site-data/#grammardef-), which includes cookies, storage, cache, as well as execution contexts (documents, workers, etc.). We don’t differentiate between different types of site data because:
In order to achieve this, the browser would need to clear site data of all domains that had certain set transitions, including data that is partitioned. The data type includes cookies, storage, cache, as well as execution contexts (documents, workers, etc.). We don’t differentiate between different types of site data because:

* A user identifier could be stored in any of these storage types.
* Clearing just a few of the types would break sites that expect different types of data to be consistent with each other.

When FPS membership changes for a certain site, we believe it’s important and safe to clear its unpartitioned data and all third-party resources partitioned with this site being the top-level. Otherwise this site could store its data in a partition of another site that is not part of the FPS and reclaim it after clearing. We are still discussing whether to clear all this site’s data partitioned by other top-levels [#87](https://github.com/privacycg/first-party-sets/issues/87).

Since member sites can only add/remove themselves to/from FPSs with the consent from the owner, we look at first-party set changes as a site changing its FPS owner.

If a site’s owner changed:
Expand Down