Skip to content

Commit 9fab4e8

Browse files
Merge pull request #431 from w3c/activation-pt2
Some editorial improvements to activation text
2 parents 28b5c09 + d1a651b commit 9fab4e8

1 file changed

Lines changed: 23 additions & 19 deletions

File tree

api.bs

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,9 +1300,11 @@ integer |valueDeduction|,
13001300

13011301
### Attribution API Activation ### {#s-api-activation}
13021302

1303-
The Attribution API is like a [=transient activation-consuming API=],
1304-
with a number of differences
1305-
in terms of how activation state is tracked.
1303+
The Attribution API is roughly modeled on [=transient activation-consuming APIs=],
1304+
where [=activation triggering input event|user activation=]
1305+
temporarily makes the API available.
1306+
A number of differences distinguish this design
1307+
from [=transient activation-consuming APIs=]:
13061308

13071309
* Any [=activation triggering input event|user activation=]
13081310
makes the Attribution API available for a short period.
@@ -1316,12 +1318,16 @@ in terms of how activation state is tracked.
13161318
either <a for=Attribution>saveImpression()</a>
13171319
or <a for=Attribution>measureConversion()</a>
13181320
within an [=implementation-defined=] duration of the last activation,
1319-
enables the API.
1321+
enables the API for that site.
13201322

1321-
* Like [=transient activation=],
1322-
using the API consumes the activation.
1323+
* Each activation makes the API available to at most one site.
1324+
Similar to [=transient activation=],
1325+
where [=transient activation-consuming API|consuming the activation=]
1326+
causes other similar APIs to be unavailable
1327+
until another activation occurs,
1328+
using the API on one site makes the API unavailable to other sites.
13231329

1324-
* When activation is consumed,
1330+
* When the API is successfully used,
13251331
the API is enabled for use by all [=descendent navigables=]
13261332
of the [=top-level traversable=]'s [=active document=]
13271333
(that is, all frames on the current page)
@@ -1333,20 +1339,18 @@ in terms of how activation state is tracked.
13331339
which might include the action that initiated the navigation,
13341340
could make the API available again.
13351341

1336-
This is similar in effect to [=transient activation=].
1342+
This is broadly similar in effect to [=transient activation=].
13371343
However, attribution activation uses separate state from [=transient activation=]
1338-
and has the following notable differences:
1339-
1340-
* Attribution activation state is tracked on the [=top-level traversable=],
1341-
rather than affected {{Window}}s.
1342-
1343-
* Attribution activation persists through [=navigate|navigations=],
1344-
enabling use of the API for a short period
1345-
after loading a new page
1346-
in the case where the activation leads to navigation.
1344+
and that state is tracked differently.
1345+
Attribution activation state is tracked on the [=top-level traversable=],
1346+
rather than affected {{Window}}s.
1347+
As a result, attribution activation persists through [=navigate|navigations=],
1348+
enabling use of the API for a short period
1349+
after loading a new page
1350+
in the case where the activation leads to navigation.
13471351

13481352
Having separate state ensures that
1349-
attribution activation does not interact with other [=transient activation-consuming APIs=].
1353+
attribution activation does not interact with [=transient activation-consuming APIs=].
13501354
An API that [=consume user activation|consumes activation=]
13511355
will not prevent the Attribution API from being available;
13521356
similarly, using the Attribution API will not prevent
@@ -1371,7 +1375,7 @@ for the Attribution API:
13711375

13721376
1. The <dfn>attribution activation timestamp</dfn> is a [=moment=]
13731377
that tracks the last [=activation triggering input event|user activation=].
1374-
This value is initialized to the [=current high resolution time=].
1378+
This value is initialized to the [=unix epoch=].
13751379

13761380
Implementations also configure <dfn>attribution activation duration</dfn>
13771381
as an [=implementation-defined=] [=duration=].

0 commit comments

Comments
 (0)