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>,
1973
1975
a positive [=structured header/integer=]. This key is optional.
1974
-
If not supplied, 30 days is saved for [=impression/Lifetime=].
1975
1976
</dd>
1976
1977
</dl>
1977
1978
@@ -1983,35 +1984,36 @@ To <dfn noexport>parse a `Save-Impression` header</dfn> given a [=header value=]
1983
1984
with <var ignore>input_bytes</var> set to |input| and
1984
1985
<var ignore>field_type</var> set to "`dictionary`".
1985
1986
1. If parsing failed, return an error.
1986
-
1. If |dict|["<code>[=save-impression/histogram-index=]</code>"] does not [=map/exist=] or
1987
-
is not an [=structured header/integer=] in the [=32-bit unsigned integer=] range, return an error.
1988
-
1. Let |histogramIndex| be |dict|["<code>[=save-impression/histogram-index=]</code>"].
1989
-
1. Let |conversionSites| be |dict|["<code>[=save-impression/conversion-sites=]</code>"]
1990
-
[=map/with default=] an empty [=structured header/inner list=].
1991
-
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.
1992
-
1. Let |conversionCallers| be |dict|["<code>[=save-impression/conversion-callers=]</code>"]
1993
-
[=map/with default=] an empty [=structured header/inner list=].
1994
-
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.
1995
-
1. Let |matchValue| be |dict|["<code>[=save-impression/match-value=]</code>"] [=map/with default=] 0.
1996
-
1. If |matchValue| is not an [=structured header/integer=] in the [=32-bit unsigned integer=] range, return an error.
1997
-
1. Let |lifetimeDays| be |dict|["<code>[=save-impression/lifetime-days=]</code>"] [=map/with default=] 30.
1998
-
1. If |lifetimeDays| is not a positive [=structured header/integer=], return an error.
1999
-
1. Clamp |lifetimeDays| to the [=32-bit unsigned integer=] range.
2000
-
1. Let |priority| be |dict|["<code>[=save-impression/priority=]</code>"] [=map/with default=] 0.
2001
-
1. If |priority| is not an [=structured header/integer=] in the [=32-bit signed integer=] range, return an error.
2002
-
1. Return a new {{AttributionImpressionOptions}} with the following items:
1987
+
1. Let |histogramIndex| be |dict|["<code>[=save-impression/histogram-index=]</code>"] [=map/with default=] `undefined`.
1988
+
1. If |histogramIndex| is not an [=structured header/integer=] in the [=32-bit unsigned integer=] range, return an error.
1989
+
1. Let |opts| be a new {{AttributionImpressionOptions}} with the following items:
0 commit comments