Skip to content

Commit

Permalink
Fix logic to add initial site to user activation set (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaliev authored Oct 23, 2024
1 parent 9cb9339 commit cb720c6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -498,19 +498,19 @@ To <dfn>process navigation start for bounce tracking</dfn> given a [=navigable=]
[=bounce tracking record=] with [=bounce tracking record/initial host=]
set to |initialHost|.

Note: This includes the case where the current navigation was initiated by another navigable, e.g. when opening
a link in a new tab. In this case, |sourceDocument| is set to the opener Document, and the new bounce tracking
record has its [=bounce tracking record/initial host=] set to the opener host. This ensures that trackers opened
in new tabs are detected as distinct from the [=bounce tracking record/initial host=] in the new [=bounce tracking record=].
Note: This includes the case where the current navigation was initiated by another navigable, e.g. when opening
a link in a new tab. In this case, |sourceDocument| is set to the opener Document, and the new bounce tracking
record has its [=bounce tracking record/initial host=] set to the opener host. This ensures that trackers opened
in new tabs are detected as distinct from the [=bounce tracking record/initial host=] in the new [=bounce tracking record=].

1. Otherwise,
1. If |sourceSnapshotParams|'s <a spec="html">has transient activation</a> is true:
1. Run [=record stateful bounces for bounce tracking=] given |navigable|'s [=navigable/active document=]'s [=relevant global object=].
1. Set |navigable|'s [=top-level traversable/bounce tracking record=] to a new [=bounce tracking record=] with
[=bounce tracking record/initial host=] set to |initialHost|.
1. [=set/Append=] |initialHost| to |navigable|'s [=top-level traversable/bounce tracking record=]'s
[=bounce tracking record/user activation set=].
1. Otherwise, add |initialHost| to |navigable|'s [=top-level traversable/bounce tracking record=]'s [=bounce tracking record/bounce set=].
1. If |sourceSnapshotParams|'s <a spec="html">has transient activation</a> is true:
1. [=set/Append=] |initialHost| to |navigable|'s [=top-level traversable/bounce tracking record=]'s [=bounce tracking record/user activation set=].

</div>

Expand Down

0 comments on commit cb720c6

Please sign in to comment.