diff --git a/spec.bs b/spec.bs index 4438c97..c5e115b 100644 --- a/spec.bs +++ b/spec.bs @@ -412,7 +412,7 @@ items: :: A [=string=] or null : filtering ID max bytes (default: [=default filtering ID max bytes=]) :: A positive integer -: requested max contributions (default: null) +: max contributions (default: null) :: A positive integer or null @@ -578,7 +578,7 @@ steps. They return a [=boolean=]: not null, return true. 1. If |preSpecifiedParams|' [=pre-specified report parameters/filtering ID max bytes=] is not the [=default filtering ID max bytes=], return true. -1. If |preSpecifiedParams|' [=pre-specified report parameters/requested max +1. If |preSpecifiedParams|' [=pre-specified report parameters/max contributions=] is not null, return true. 1. Return false. @@ -699,9 +699,9 @@ scope given a [=pre-specified report parameters=] |params| and a filtering ID max bytes=]. 1. [=Assert=]: |filteringIdMaxBytes| is [=set/contained=] in the [=valid filtering ID max bytes range=] -1. Let |requestedMaxContributions| be |params|' [=pre-specified report - parameters/requested max contributions=]. -1. [=Assert=]: |requestedMaxContributions| is null or greater than zero. +1. Let |maxContributions| be |params|' [=pre-specified report parameters/max + contributions=]. +1. [=Assert=]: |maxContributions| is null or greater than zero. 1. [=map/Set=] [=pre-specified report parameters map=][|batchingScope|] to |params|. @@ -849,13 +849,13 @@ They return a [=moment=]. To determine the max contributions given a [=pre-specified report parameters=] |preSpecifiedParams| and a [=context type=] |api|, perform the following steps. They return a positive integer. -1. Let |requestedMaxContributions| be |preSpecifiedParams|' [=pre-specified - report parameters/requested max contributions=]. -1. If |requestedMaxContributions| is null, return [=default maxContributions by +1. Let |maxContributions| be |preSpecifiedParams|' [=pre-specified report + parameters/max contributions=]. +1. If |maxContributions| is null, return [=default maxContributions by API=][|api|]. -1. If |requestedMaxContributions| is greater than [=maximum maxContributions=], - return [=maximum maxContributions=]. -1. Return |requestedMaxContributions|. +1. If |maxContributions| is greater than [=maximum maxContributions=], return + [=maximum maxContributions=]. +1. Return |maxContributions|. @@ -1297,9 +1297,9 @@ by a randomized amount of time to make it difficult to determine whether a report was sent or not from any particular event. In the case that a [=pre-specified report parameters/context ID=] is supplied, a non-default [=pre-specified report parameters/filtering ID max bytes=] is specified, or a -[=pre-specified report parameters/requested max contributions=] is specified, -the API makes the number of reports sent deterministic (sending 'null reports' -if necessary — each containing only a contribution with a value of 0 in the +[=pre-specified report parameters/max contributions=] is specified, the API +makes the number of reports sent deterministic (sending 'null reports' if +necessary — each containing only a contribution with a value of 0 in the payload). Additional mitigations may also be possible in the future, e.g. adding noise to the report count.