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>,
1947
1949
a positive [=structured header/integer=]. This key is optional.
1948
-
If not supplied, 30 days is saved for [=impression/Lifetime=].
1949
1950
</dd>
1950
1951
</dl>
1951
1952
@@ -1957,34 +1958,36 @@ To <dfn noexport>parse a `Save-Impression` header</dfn> given a [=header value=]
1957
1958
with <var ignore>input_bytes</var> set to |input| and
1958
1959
<var ignore>field_type</var> set to "`dictionary`".
1959
1960
1. If parsing failed, return an error.
1960
-
1. If |dict|["<code>[=save-impression/histogram-index=]</code>"] does not [=map/exist=] or
1961
-
is not an [=structured header/integer=] or is less than 0, return an error.
1962
-
1. Let |histogramIndex| be |dict|["<code>[=save-impression/histogram-index=]</code>"].
1963
-
1. Let |conversionSites| be |dict|["<code>[=save-impression/conversion-sites=]</code>"]
1964
-
[=map/with default=] an empty [=structured header/inner list=].
1965
-
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.
1966
-
1. Let |conversionCallers| be |dict|["<code>[=save-impression/conversion-callers=]</code>"]
1967
-
[=map/with default=] an empty [=structured header/inner list=].
1968
-
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.
1969
-
1. Let |matchValue| be |dict|["<code>[=save-impression/match-value=]</code>"] [=map/with default=] 0.
1970
-
1. If |matchValue| is not an [=structured header/integer=] or is less than 0, return an error.
1971
-
1. Let |lifetimeDays| be |dict|["<code>[=save-impression/lifetime-days=]</code>"] [=map/with default=] 30.
1972
-
1. If |lifetimeDays| is not an [=structured header/integer=] or is less than or equal to 0, return an error.
1973
-
1. Let |priority| be |dict|["<code>[=save-impression/priority=]</code>"] [=map/with default=] 0.
1974
-
1. If |priority| is not an [=structured header/integer=], return an error.
1975
-
1. Return a new {{AttributionImpressionOptions}} with the following items:
1961
+
1. Let |histogramIndex| be |dict|["<code>[=save-impression/histogram-index=]</code>"] [=map/with default=] `undefined`.
1962
+
1. If |histogramIndex| is not a non-negative [=structured header/integer=], return an error.
1963
+
1. Let |opts| be a new {{AttributionImpressionOptions}} with the following items:
0 commit comments