From 89eb487e89f5156fcedaf125da81e51ca189aa7b Mon Sep 17 00:00:00 2001 From: Liam Brady Date: Thu, 11 Jan 2024 14:12:36 -0500 Subject: [PATCH] [Spec] Disallow calling registerAdBeacon for undefined reserved.* types (#968) * [Spec] Disallow calling registerAdBeacon for undefined reserved.* types * remove manual export * address review comments --- spec.bs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec.bs b/spec.bs index 0d07c5f74..aaa07191d 100644 --- a/spec.bs +++ b/spec.bs @@ -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|.