@@ -515,8 +515,8 @@ The arguments to <a method for=PrivateAttribution>saveImpression()</a> are as fo
515
515
site.
516
516
<dt> <dfn>lifetimeDays</dfn> </dt>
517
517
<dd>
518
- A "time to live" (in days) after which the [=impression=] can no longer
519
- receive attribution.
518
+ A non-zero "time to live" (in days) after which the [=impression=] can no
519
+ longer receive attribution.
520
520
If not specified, the default is 30 days.
521
521
The [=user agent=] should impose an upper limit on the lifetime,
522
522
and silently reduce the value specified here if it exceeds that limit.
@@ -525,11 +525,17 @@ The arguments to <a method for=PrivateAttribution>saveImpression()</a> are as fo
525
525
526
526
### Operation ### {#save-impression-api-operation}
527
527
528
+ Given <a dictionary lt=PrivateAttributionImpressionOptions>|options|</a> :
529
+
528
530
1. Collect the implicit API inputs:
529
531
1. The current timestamp
530
- 2. The impression site domain
531
- 3. The iframe site domain
532
- 1. Validate the page-supplied API inputs
532
+ 1. The impression site domain
533
+ 1. The iframe site domain
534
+ 1. Validate the page-supplied API inputs:
535
+ 1. If |options|.{{PrivateAttributionImpressionOptions/lifetimeDays}} is 0,
536
+ throw a {{RangeError}} .
537
+ 1. Clamp |options|.{{PrivateAttributionImpressionOptions/lifetimeDays}} to
538
+ the [=user agent=] 's upper limit.
533
539
1. If the private attribution API is enabled, save the impression to the
534
540
[=impression store=] .
535
541
0 commit comments