Skip to content

Commit

Permalink
[Spec] Disallow calling registerAdBeacon for undefined reserved.* typ…
Browse files Browse the repository at this point in the history
…es (WICG#968)

* [Spec] Disallow calling registerAdBeacon for undefined reserved.* types

* remove manual export

* address review comments
  • Loading branch information
blu25 authored Jan 11, 2024
1 parent 4d948fa commit 89eb487
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3515,7 +3515,10 @@ Each {{InterestGroupReportingScriptRunnerGlobalScope}} has a
1. If [=this=]'s [=relevant global object=]'s [=InterestGroupReportingScriptRunnerGlobalScope/
reporting beacon map=] is not null, then [=exception/Throw=] a {{TypeError}}.

1. [=map/For each=] |url| of |map|'s [=map/values=]:
1. [=map/For each=] |type| → |url| of |map|:

1. If |type| [=string/starts with=] "`reserved.`" and |type| does not match one of the
[=fencedframetype/automatic beacon event type=] values, [=exception/throw=] a {{TypeError}}.

1. Let |parsedURL| be the result of running [=URL parser=] on |url|.

Expand Down

0 comments on commit 89eb487

Please sign in to comment.