Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update automatic beacon algorithm to send to all registered URLs #122

Merged
merged 3 commits into from
Sep 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1449,16 +1449,22 @@ successful [=navigate|navigation=] to a [=top-level traversable=].
1. Let |beacon data| be |config|'s [=fenced frame config instance/fenced frame reporter=]'s
[=fenced frame reporter/automatic beacon data=].

1. If |beacon data| is null, abort these steps.
1. Let |event data| be |beacon data|'s [=automatic beacon data/eventData=] if |beacon data| is not
null, the empty string otherwise.

1. If |sourceOrigin| is not [=same origin=] with |config|'s [=fenced frame config instance/mapped
url=]'s [=url/origin=], abort these steps.

1. [=list/For each=] |destination| of |beacon data|'s [=automatic beacon data/destination=]:
1. [=list/For each=] |destination| of |config|'s [=fenced frame config instance/fenced frame
reporter=]'s [=fenced frame reporter/fenced frame reporting metadata reference=]'s
[=fencedframetype/fenced frame reporting map=]'s [=map/keys=]:

1. Run [=report an event=] using |config|'s [=fenced frame config instance/fenced frame
reporter=] with |destination|, |eventType|, and |beacon data|'s [=automatic beacon data/
eventData=].
1. If |beacon data|'s [=automatic beacon data/destinations=] [=list/contains=] |destination|,
run [=report an event=] using |config|'s [=fenced frame config instance/fenced frame
reporter=] with |destination|, |eventType|, and |event data|.

Otherwise, run [=report an event=] using |config|'s [=fenced frame config instance/fenced
frame reporter=] with |destination|, |eventType|, and the empty string.

1. If |beacon data|'s [=automatic beacon data/once=] is true, set |config|'s [=fenced frame
config instance/fenced frame reporter=]'s [=fenced frame reporter/automatic beacon data=] to
Expand All @@ -1469,6 +1475,7 @@ successful [=navigate|navigation=] to a [=top-level traversable=].
/fenced-frame/automatic-beacon-two-events-clear.https.html
/fenced-frame/automatic-beacon-two-events-persist.https.html
/fenced-frame/automatic-beacon-unfenced-top.https.html
/fenced-frame/automatic-beacon-no-destination.https.html
</wpt>
</div>

Expand Down