Skip to content

Commit 3174dd6

Browse files
committed
Permit implementation-defined maximum sizes on list inputs
Without commiting to minimum values for those maximums. - AttributionImpressionOptions.conversionCallers - AttributionConversionOptions.matchValue - AttributionConversionOptions.impressionSites - AttributionConversionOptions.impressionCallers
1 parent cde2cbc commit 3174dd6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

api.bs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,10 @@ The <dfn method for=Attribution>saveImpression(|options|)</dfn> method steps are
13491349
|options|.{{AttributionImpressionOptions/conversionSites}} is
13501350
greater than an [=implementation-defined=] maximum value, return
13511351
[=a promise rejected with=] a {{RangeError}} in |realm|.
1352+
1. If the [=list/size=] of
1353+
|options|.{{AttributionImpressionOptions/conversionCallers}} is
1354+
greater than an [=implementation-defined=] maximum value, return
1355+
[=a promise rejected with=] a {{RangeError}} in |realm|.
13521356
1. Let |conversionSites| be the [=set=] that is the result
13531357
of invoking [=parse a site=]
13541358
for each value in |options|.{{AttributionImpressionOptions/conversionSites}}.
@@ -1482,12 +1486,21 @@ To <dfn>validate {{AttributionConversionOptions}}</dfn> |options|:
14821486
1. Let |lookback| be |options|.{{AttributionConversionOptions/lookbackDays}} [=days=]
14831487
if it [=map/exists=], the [=implementation-defined=] maximum otherwise.
14841488
1. If |lookback| is 0 [=days=], throw a {{RangeError}}.
1489+
1. If the [=list/size=] of
1490+
|options|.{{AttributionConversionOptions/matchValue}} is
1491+
greater than an [=implementation-defined=] maximum value, throw a {{RangeError}}.
14851492
1. Let |matchValue| be the result of running [=set/create|creating a set=] with
14861493
|options|.{{AttributionConversionOptions/matchValue}}.
1494+
1. If the [=list/size=] of
1495+
|options|.{{AttributionConversionOptions/impressionSites}} is
1496+
greater than an [=implementation-defined=] maximum value, throw a {{RangeError}}.
14871497
1. Let |impressionSites| be the [=set=] that is the result
14881498
of invoking [=parse a site=]
14891499
for each value in |options|.{{AttributionConversionOptions/impressionSites}}.
14901500
1. If any result in |impressionSites| is failure, throw a {{"SyntaxError"}} {{DOMException}}.
1501+
1. If the [=list/size=] of
1502+
|options|.{{AttributionConversionOptions/impressionCallers}} is
1503+
greater than an [=implementation-defined=] maximum value, throw a {{RangeError}}.
14911504
1. Let |impressionCallers| be the [=set=] that is the result
14921505
of invoking [=parse a site=]
14931506
for each value in |options|.{{AttributionConversionOptions/impressionCallers}}.

0 commit comments

Comments
 (0)