You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Value of <a dict-member for=AttributionImpressionOptions>lifetimeDays</a>,
1969
1974
a positive [=structured header/integer=]. This key is optional.
1970
-
If not supplied, 30 days is saved for [=impression/Lifetime=].
1971
1975
</dd>
1972
1976
</dl>
1973
1977
@@ -1979,35 +1983,36 @@ To <dfn noexport>parse a `Save-Impression` header</dfn> given a [=header value=]
1979
1983
with <var ignore>input_bytes</var> set to |input| and
1980
1984
<var ignore>field_type</var> set to "`dictionary`".
1981
1985
1. If parsing failed, return an error.
1982
-
1. If |dict|["<code>[=save-impression/histogram-index=]</code>"] does not [=map/exist=] or
1983
-
is not an [=structured header/integer=] in the [=32-bit unsigned integer=] range, return an error.
1984
-
1. Let |histogramIndex| be |dict|["<code>[=save-impression/histogram-index=]</code>"].
1985
-
1. Let |conversionSites| be |dict|["<code>[=save-impression/conversion-sites=]</code>"]
1986
-
[=map/with default=] an empty [=structured header/inner list=].
1987
-
1. If |conversionSites| is not an [=structured header/inner list=], or if any of |conversionSites|' [=list/items=] is not a [=structured header/string=], return an error.
1988
-
1. Let |conversionCallers| be |dict|["<code>[=save-impression/conversion-callers=]</code>"]
1989
-
[=map/with default=] an empty [=structured header/inner list=].
1990
-
1. If |conversionCallers| is not an [=structured header/inner list=], or if any of |conversionCallers|' [=list/items=] is not a [=structured header/string=], return an error.
1991
-
1. Let |matchValue| be |dict|["<code>[=save-impression/match-value=]</code>"] [=map/with default=] 0.
1992
-
1. If |matchValue| is not an [=structured header/integer=] in the [=32-bit unsigned integer=] range, return an error.
1993
-
1. Let |lifetimeDays| be |dict|["<code>[=save-impression/lifetime-days=]</code>"] [=map/with default=] 30.
1994
-
1. If |lifetimeDays| is not a positive [=structured header/integer=], return an error.
1995
-
1. Clamp |lifetimeDays| to the [=32-bit unsigned integer=] range.
1996
-
1. Let |priority| be |dict|["<code>[=save-impression/priority=]</code>"] [=map/with default=] 0.
1997
-
1. If |priority| is not an [=structured header/integer=] in the [=32-bit signed integer=] range, return an error.
1998
-
1. Return a new {{AttributionImpressionOptions}} with the following items:
1986
+
1. Let |histogramIndex| be |dict|["<code>[=save-impression/histogram-index=]</code>"] [=map/with default=] `undefined`.
1987
+
1. If |histogramIndex| is not an [=structured header/integer=] in the [=32-bit unsigned integer=] range, return an error.
1988
+
1. Let |opts| be a new {{AttributionImpressionOptions}} with the following items:
0 commit comments