Skip to content

Commit 51fa4ec

Browse files
Remove aggregatable report limit when trigger context ID is non-null (#1475)
* Remove aggregatable report limit when trigger context ID is non-null * Remove change to attribution rate limit handling * Increment report count if trigger context ID present * Amend AGGREGATE.md * Remove aggregatable report limit when trigger context ID is non-null * Remove change to attribution rate limit handling * Remove aggregatable report limit when trigger context ID is non-null
1 parent b066f8b commit 51fa4ec

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

AGGREGATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,9 @@ As the trigger context ID in the aggregatable report explicitly reveals the
505505
association between the report and the trigger, these reports can be sent
506506
immediately without delay.
507507

508+
When a trigger context ID is provided, the aggregatable report will not count
509+
towards the limit of aggregatable reports per source, nor be limited by it.
510+
508511
Note: This is an [alternative](https://github.com/WICG/attribution-reporting-api/blob/main/report_verification.md#could-we-just-tag-reports-with-a-trigger_id-instead-of-using-anonymous-tokens)
509512
considered for [report verification](https://github.com/WICG/attribution-reporting-api/blob/main/report_verification.md),
510513
and achieves all of the higher priority [security goals](https://github.com/WICG/attribution-reporting-api/blob/main/report_verification.md#security-goals).

index.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4274,7 +4274,7 @@ To <dfn>trigger aggregatable attribution</dfn> given an [=attribution trigger=]
42744274
1. If the result of running [=check if attribution should be blocked by rate limits=]
42754275
with |trigger|, |sourceToAttribute|, and |rateLimitRecord| is not null,
42764276
return it.
4277-
1. If |sourceToAttribute|'s [=attribution source/number of aggregatable attribution reports=] value is equal to [=max aggregatable reports per source=][0], then:
4277+
1. If |sourceToAttribute|'s [=attribution source/number of aggregatable attribution reports=] value is equal to [=max aggregatable reports per source=][0] and |trigger|'s [=attribution trigger/trigger context ID=] is null, then:
42784278
1. Return the [=triggering result=] ("<code>[=triggering status/dropped=]</code>",
42794279
("<code>[=trigger debug data type/trigger-aggregate-excessive-reports=]</code>", null)).
42804280
1. If the result of running [=check if an attribution source can create aggregatable contributions=]
@@ -4287,14 +4287,14 @@ To <dfn>trigger aggregatable attribution</dfn> given an [=attribution trigger=]
42874287
1. Return the [=triggering result=] ("<code>[=triggering status/dropped=]</code>",
42884288
("<code>[=trigger debug data type/trigger-aggregate-insufficient-named-budget=]</code>", null)).
42894289
1. [=set/Append=] |report| to the [=aggregatable attribution report cache=].
4290-
1. Increment |sourceToAttribute|'s [=attribution source/number of aggregatable attribution reports=] value by 1.
4290+
1. If |trigger|'s [=attribution trigger/trigger context ID=] is null, increment |sourceToAttribute|'s [=attribution source/number of aggregatable attribution reports=] value by 1.
42914291
1. Decrement |sourceToAttribute|'s [=attribution source/remaining aggregatable attribution budget=] value by
42924292
|report|'s [=aggregatable attribution report/required aggregatable budget=].
42934293
1. If |matchedBudgetName| is not null and |sourceToAttribute|'s [=attribution source/remaining named budgets=][|matchedBudgetName|] [=map/exists=]:
42944294
1. Decrement |sourceToAttribute|'s [=attribution source/remaining named budgets=][|matchedBudgetName|] value by
42954295
|report|'s [=aggregatable attribution report/required aggregatable budget=].
42964296
1. If |matchedDedupKey| is not null, [=list/append=] it to |sourceToAttribute|'s [=attribution source/aggregatable dedup keys=].
4297-
1. [=set/Append=] |rateLimitRecord| to the [=attribution rate-limit cache=].
4297+
1. If |trigger|'s [=attribution trigger/trigger context ID=] is null, [=set/append=] |rateLimitRecord| to the [=attribution rate-limit cache=].
42984298
1. Run [=generate null attribution reports=] with |trigger| and |report|.
42994299
1. If the result of [=checking if attribution debugging can be enabled=]
43004300
with |report|'s [=aggregatable attribution report/attribution debug info=] is true,

0 commit comments

Comments
 (0)