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

Explainer change for separate rate-limits for embedded site #1457

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

linnan-github
Copy link
Collaborator

@linnan-github linnan-github commented Oct 28, 2024

Fixes #1452


Preview | Diff

@linnan-github
Copy link
Collaborator Author

@jolynyao Could you PTAL, thanks!

@linnan-github linnan-github force-pushed the embeddedBudget branch 3 times, most recently from cbc7216 to 5144c38 Compare October 28, 2024 19:46
@jolynyao
Copy link

LGTM thanks @linnan-github!

@apasel422 apasel422 self-requested a review October 29, 2024 00:50
@@ -980,6 +980,10 @@ were reported.
In order to achieve the privacy goals listed above the API has various rate limits, which can be found [here](https://github.com/WICG/attribution-reporting-api/blob/main/params/chromium-params.md) for Chromium.
Note: Browsers may choose to allow separate rate limits for the embedded site
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is embedded site standard terminology? If so, let's link to a definition of it. Otherwise, let's explain further. Same for the spec changes.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, IIUC the spec changes aren't limited to rate limits. Rather, they effectively replace the context origin in all uses across the entire spec.

For sources, this includes "max pending sources per source origin" and "max destinations covered by unexpired sources", which aren't explicitly considered "rate limits."

It also includes the source site in verbose debug report bodies.

For aggregatable reports, it affects the effective attribution destination and therefore "max aggregatable attribution reports per attribution destination".

IMO we should make it explicit that the context origin is entirely replaced, not just for rate-limit purposes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used “rate limits” to cover those limits as well. The destination limit is also discussed in this section, so I think it’s fine. I can mention storage limit explicitly if you feel strongly.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The aforementioned limits aren't rate limits, as they do not expire after a specific window, and they are mentioned in different parts of the spec and explainer.

@@ -1832,6 +1832,8 @@ To <dfn>check if cookie-based debugging is allowed</dfn> given a
To obtain the <dfn export for=node>context origin</dfn> of a [=node=] |node|, return |node|'s [=node navigable=]'s
[=navigable/top-level traversable=]'s [=navigable/active document=]'s [=origin=].

Note: The user agent MAY return the embedded origin for specific use cases.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this belongs in a note. We can instead phrase it as:

1. Optionally, return the embedded origin if it exists.
2. Return |node|'s ...

And then explain the reasoning or what an embedded origin is in the note.

@@ -980,6 +980,10 @@ were reported.
In order to achieve the privacy goals listed above the API has various rate limits, which can be found [here](https://github.com/WICG/attribution-reporting-api/blob/main/params/chromium-params.md) for Chromium.
Note: Browsers may choose to allow separate rate limits for the embedded site
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason the explainer uses embedded site but the spec uses embedded origin?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’s just because the explainer mentions “top-level site” in that section, whereas the spec change is where we get the origin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow separate privacy budgets for embedded domains
3 participants