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 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 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
5 changes: 5 additions & 0 deletions EVENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,11 @@ 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 limits, e.g. storage limit,
rate-limits, and destination limits, for the embedded site/origin for specific
use cases (for example, [AMP](https://amp.dev) pages rendered by an AMP
cache/viewer provider).

### Trigger Data

Trigger data, e.g. advertiser-side data, is extremely important for critical use
Expand Down
11 changes: 9 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1875,8 +1875,15 @@ To <dfn>check if cookie-based debugging is allowed</dfn> given a

<h3 algorithm id="obtaining-context-origin">Obtaining context origin</h3>

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=].
To obtain the <dfn export for=node>context origin</dfn> of a [=node=] |node|:

1. If applicable for [=implementation-defined=] use cases, return the embedded origin.
1. Otherwise, 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 to allow separate limits
for specific use cases. Embedded origin could be the effective top-level origin,
e.g. the origin of the website displayed in the AMP viewer.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I still don't think someone reading this is going to understand what an embedded origin is, as it's not a standard term as far as I know. An example would definitely help, but we should also avoid referring to AMP in the spec if possible. Maybe we can give a neutral example like comparing https://foo.example/ vs https://foo.example/bar.example?


<h3 id="obtaining-randomized-response">Obtaining a randomized response</h3>

Expand Down
9 changes: 6 additions & 3 deletions verbose_debugging_reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ The `body` will contain the following fields for all source debugging reports:
This will be a string if there was one such site, or a list of strings if
there were multiple.
* `source_event_id`: The source registration's `source_event_id`.
* `source_site`: The top-level site on which the source registration occurred.
* `source_site`: The top-level site, or the embedded site for specific use cases
(for example, [AMP](https://amp.dev) pages rendered by an AMP cache/viewer provider),
on which the source registration occurred.

Additionally:

Expand Down Expand Up @@ -155,8 +157,9 @@ Additionally:
* If the trigger was attributed to a source, then the `body` will also contain
the following fields:
* `source_event_id`: The source registration's `source_event_id`.
* `source_site`: The top-level site on which the source registration
occurred.
* `source_site`: The top-level site, or the embedded site for specific use cases
(for example, [AMP](https://amp.dev) pages rendered by an AMP cache/viewer provider),
on which the source registration occurred.
* `source_debug_key`: The source registration's `debug_key`, but omitted if
the source registration did not contain a valid `debug_key` or
[cookie-based debugging][] was prohibited.
Expand Down