Skip to content

Commit da3cbdc

Browse files
Merge pull request #213 from apasel422/limits
Permit implementation-defined maximum sizes on list inputs
2 parents cde2cbc + a5827af commit da3cbdc

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
@@ -1354,6 +1354,10 @@ The <dfn method for=Attribution>saveImpression(|options|)</dfn> method steps are
13541354
for each value in |options|.{{AttributionImpressionOptions/conversionSites}}.
13551355
1. If any result in |conversionSites| is failure, return
13561356
[=a promise rejected with=] a {{"SyntaxError"}} {{DOMException}} in |realm|.
1357+
1. If the [=list/size=] of
1358+
|options|.{{AttributionImpressionOptions/conversionCallers}} is
1359+
greater than an [=implementation-defined=] maximum value, return
1360+
[=a promise rejected with=] a {{RangeError}} in |realm|.
13571361
1. Let |conversionCallers| be the [=set=] that is the result
13581362
of invoking [=parse a site=]
13591363
for each value in |options|.{{AttributionImpressionOptions/conversionCallers}}.
@@ -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)