@@ -790,7 +790,7 @@ An attribution source is a [=struct=] with the following items:
790
790
791
791
<dl dfn-for="attribution source">
792
792
: <dfn>internal ID</dfn>
793
- :: A [=string =] .
793
+ :: An [=internal ID =] .
794
794
: <dfn>source origin</dfn>
795
795
:: A [=suitable origin=] .
796
796
: <dfn>event ID</dfn>
@@ -1011,7 +1011,7 @@ An attribution report is a [=struct=] with the following items:
1011
1011
: <dfn>external ID</dfn>
1012
1012
:: A UUID formatted as a [=string=] .
1013
1013
: <dfn>internal ID</dfn>
1014
- :: A [=string =] .
1014
+ :: An [=internal ID =] .
1015
1015
1016
1016
</dl>
1017
1017
@@ -1302,6 +1302,12 @@ shared among all [=environment settings objects=].
1302
1302
Note: This would ideally use <a spec=storage>storage bottles</a> to provide access to the attribution caches.
1303
1303
However attribution data is inherently cross-site, and operations on storage would need to span across all storage bottle maps.
1304
1304
1305
+ An <dfn>internal ID</dfn> is an integer.
1306
+
1307
+ To <dfn>get the next internal ID</dfn> , return an [=internal ID=] strictly
1308
+ greater than any previously returned by this algorithm. The user agent MAY reset
1309
+ this sequence when no [=attribution cache=] entry contains an [=internal ID=] .
1310
+
1305
1311
# Constants # {#constants}
1306
1312
1307
1313
<dfn>Valid source expiry range</dfn> is a 2-tuple of positive [=durations=] that controls the
@@ -2273,7 +2279,7 @@ an [=aggregation coordinator=] |aggregationCoordinator|, and a [=moment=] |now|:
2273
2279
: [=aggregatable debug report/external ID=]
2274
2280
:: The result of [=generating a random UUID=]
2275
2281
: [=aggregatable debug report/internal ID=]
2276
- :: A new unique [=string =]
2282
+ :: The result of [=getting the next internal ID =]
2277
2283
: [=aggregatable debug report/contributions=]
2278
2284
:: |contributions|
2279
2285
: [=aggregatable debug report/aggregation coordinator=]
@@ -2804,7 +2810,7 @@ To <dfn noexport>parse source-registration JSON</dfn> given a [=byte sequence=]
2804
2810
1. Let |source| be a new [=attribution source=] struct whose items are:
2805
2811
2806
2812
: [=attribution source/internal ID=]
2807
- :: A new unique [=string =]
2813
+ :: The result of [=getting the next internal ID =]
2808
2814
: [=attribution source/source origin=]
2809
2815
:: |sourceOrigin|
2810
2816
: [=attribution source/event ID=]
@@ -4400,7 +4406,7 @@ a 64-bit integer priority |priority|, and a [=trigger spec map=] [=map/entry=]
4400
4406
: [=event-level report/external ID=]
4401
4407
:: The result of [=generating a random UUID=] .
4402
4408
: [=event-level report/internal ID=]
4403
- :: A new unique [=string =]
4409
+ :: The result of [=getting the next internal ID =]
4404
4410
: [=event-level report/attribution debug info=]
4405
4411
:: (|source|'s [=attribution source/debug key=] , |triggerDebugKey|).
4406
4412
1. Return |report|.
@@ -4430,7 +4436,7 @@ an [=attribution trigger=] |trigger|:
4430
4436
: [=aggregatable attribution report/external ID=]
4431
4437
:: The result of [=generating a random UUID=] .
4432
4438
: [=aggregatable attribution report/internal ID=]
4433
- : A new unique [=string =]
4439
+ :: The result of [=getting the next internal ID =]
4434
4440
: [=aggregatable attribution report/attribution debug info=]
4435
4441
:: (|source|'s [=attribution source/debug key=], |trigger|' s [=attribution trigger/debug key=] ).
4436
4442
: [=aggregatable attribution report/contributions=]
@@ -4465,7 +4471,7 @@ To <dfn>obtain a null attribution report</dfn> given an [=attribution trigger=]
4465
4471
: [=aggregatable attribution report/external ID=]
4466
4472
:: The result of [=generating a random UUID=]
4467
4473
: [=aggregatable attribution report/internal ID=]
4468
- : A new unique [=string =]
4474
+ :: The result of [=getting the next internal ID =]
4469
4475
: [=aggregatable attribution report/attribution debug info=]
4470
4476
:: (null, |trigger|'s [=attribution trigger/debug key=] )
4471
4477
: [=aggregatable attribution report/contributions=]
0 commit comments