diff --git a/spec.bs b/spec.bs index 9e899fa..515ce54 100644 --- a/spec.bs +++ b/spec.bs @@ -1018,7 +1018,7 @@ A destination event is either a Note: The pending event will be sent asynchronously. - 1. [=Assert=] that |reporting map|[|destination|] is a [=map=] (i.e. that |destination|'s + 1. [=Assert=] that |reporting map|[|destination|] is a [=map=] (i.e., that |destination|'s metadata has been finalized). 1. [=Send a beacon=] with |reporting map|[|destination|] and |event|. @@ -1437,12 +1437,20 @@ the API {{Window/navigator}}.{{Navigator/deprecatedReplaceInURN()}}, which allow macros into the [=fenced frame config/mapped url=] corresponding to a given [=urn uuid=] or {{FencedFrameConfig}}. +Note: To help with ease of adoption, +[until third party cookie deprecation](https://developers.google.com/privacy-sandbox/relevance/protected-audience-api/feature-status#fenced_frames) +we will support the API {{Window/navigator}}.{{Navigator/deprecatedURNtoURL()}}, which returns +the [=fenced frame config/mapped url=] corresponding to a given [=urn uuid=] or +{{FencedFrameConfig}}. +
typedef (USVString or FencedFrameConfig) UrnOrConfig; partial interface Navigator { Promise<undefined> deprecatedReplaceInURN( UrnOrConfig urnOrConfig, record<USVString, USVString> replacements); + Promise<USVString> deprecatedURNtoURL( + UrnOrConfig urnOrConfig, optional boolean send_reports = false); sequence<USVString> adAuctionComponents(unsigned short numAdComponents); };@@ -1467,7 +1475,8 @@ partial interface Navigator { 1. Otherwise, set |urn| to |urnOrConfig|'s [=fencedframeconfig/urn=]. - 1. If |urn| is TODO invalid, [=exception/throw=] a {{TypeError}}. + 1. If |urn| is not a valid [=urn uuid=] (i.e., won't pass the ABNF in Section 3 of + [=urn uuid=]), [=exception/throw=] a {{TypeError}}. 1. [=map/For each=] |key| → _ of |replacements|: 1. If |key| does not [=string/start with=]
${
or %%
,
@@ -1481,7 +1490,7 @@ partial interface Navigator {
1. Run the following steps [=in parallel=]:
- 1. Let |mapping| be |global|'s [=associated Document=]'s [=node navigable=]'s
+ 1. Let |mapping| be |global|'s [=Window/navigable=]'s
[=navigable/traversable navigable=]'s [=traversable navigable/fenced frame config mapping=].
1. Let |config| be the result of [=fenced frame config mapping/finding a config=] in |mapping|
@@ -1507,7 +1516,47 @@ partial interface Navigator {