@@ -1338,6 +1338,9 @@ The <dfn method for=Attribution>saveImpression(|options|)</dfn> method steps are
1338
1338
[=obtain a site|obtaining a site=]
1339
1339
from |settings|' [=environment settings object/origin=] .
1340
1340
1. Validate the page-supplied API inputs:
1341
+ 1. If |options|.{{AttributionImpressionOptions/histogramIndex}} is
1342
+ greater than or equal to the [=implementation-defined=] [=maximum histogram size=] ,
1343
+ return [=a promise rejected with=] a {{RangeError}} in |realm|.
1341
1344
1. If |options|.{{AttributionImpressionOptions/lifetimeDays}} is 0,
1342
1345
return [=a promise rejected with=] a {{RangeError}} in |realm|.
1343
1346
1. Clamp |options|.{{AttributionImpressionOptions/lifetimeDays}} to
@@ -1452,7 +1455,7 @@ The <dfn method for=Attribution>measureConversion(|options|)</dfn> method steps
1452
1455
</pre>
1453
1456
</div>
1454
1457
1455
- <div algorithm>
1458
+ <div algorithm="validate AttributionConversionOptions" >
1456
1459
To <dfn>validate {{AttributionConversionOptions}}</dfn> |options|:
1457
1460
1458
1461
1. If <a attribute for=Attribution>aggregationServices</a> does not [=map/exist|contain=]
@@ -1462,7 +1465,9 @@ To <dfn>validate {{AttributionConversionOptions}}</dfn> |options|:
1462
1465
is less than or equal to 0 or is greater than 4294,
1463
1466
throw a {{RangeError}} .
1464
1467
1. If |options|.{{AttributionConversionOptions/histogramSize}}
1465
- is 0 or greater than an [=implementation-defined=] maximum value,
1468
+ is 0 or greater than the [=implementation-defined=] <dfn>maximum histogram size</dfn> ,
1469
+ or is greater than the <dfn ignore>maximum aggregation-service histogram size</dfn> ,
1470
+ if any, for |options|.{{AttributionConversionOptions/aggregationService}} ,
1466
1471
throw a {{RangeError}} .
1467
1472
1. Switch on the value of |options|.{{AttributionConversionOptions/logic}} :
1468
1473
<dl class="switch">
0 commit comments