Skip to content

Commit

Permalink
Merge pull request #61 from patcg/default-lifetime
Browse files Browse the repository at this point in the history
Set a default for `lifetimeDays`
  • Loading branch information
martinthomson authored Dec 23, 2024
2 parents 8d548d1 + edd3f75 commit 405eb17
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions api.bs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ dictionary PrivateAttributionImpressionOptions {
required unsigned long histogramIndex;
required unsigned long filterData;
required DOMString conversionSite;
unsigned long lifetimeDays;
unsigned long lifetimeDays = 30;
};

[SecureContext, Exposed=Window]
Expand Down Expand Up @@ -509,9 +509,10 @@ The arguments to <a method for=PrivateAttribution>saveImpression()</a> are as fo
<dt><dfn>lifetimeDays</dfn></dt>
<dd>
A "time to live" (in days) after which the [=impression=] can no longer
receive attribution. The [=user agent=] should impose an upper limit on the
lifetime, and silently reduce the value specified here if it exceeds that
limit.
receive attribution.
If not specified, the default is 30 days.
The [=user agent=] should impose an upper limit on the lifetime,
and silently reduce the value specified here if it exceeds that limit.
</dd>
</dl>

Expand Down

0 comments on commit 405eb17

Please sign in to comment.