Skip to content

Commit

Permalink
[Spec] Add publisher to ad auction data config (WICG#1291)
Browse files Browse the repository at this point in the history
* Add publisher to ad auction data config

* Apply suggestions from code review

Co-authored-by: qingxinwu <[email protected]>

---------

Co-authored-by: qingxinwu <[email protected]>
  • Loading branch information
brusshamilton and qingxinwu authored Oct 1, 2024
1 parent be2c7d5 commit 840355a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3186,7 +3186,9 @@ The <dfn for=Navigator method>getInterestGroupAdAuctionData(|configIDL|)</dfn> m
1. Let |global| be [=this=]'s [=relevant global object=].
1. If |global|'s [=associated Document=] is not [=allowed to use=] the "[=run-ad-auction=]"
[=policy-controlled feature=], then [=exception/throw=] a "{{NotAllowedError}}" {{DOMException}}.
1. Let |config| be the result of running [=parse and verify ad auction data config=] on |configIDL|.
1. Let |settings| be [=this=]'s [=relevant settings object=].
1. Let |config| be the result of running [=parse and verify ad auction data config=]
on |configIDL| and |settings|'s [=environment/top-level origin=].
1. Let |p| be [=a new promise=].
1. Let |queue| be the result of [=starting a new parallel queue=].
1. [=parallel queue/enqueue steps|Enqueue the following steps=] to |queue|:
Expand Down Expand Up @@ -3274,14 +3276,17 @@ The <dfn for=Navigator method>getInterestGroupAdAuctionData(|configIDL|)</dfn> m
</div>

<div algorithm>
To <dfn>parse and verify ad auction data config</dfn> given an {{AdAuctionDataConfig}} |configIDL|:
To <dfn>parse and verify ad auction data config</dfn> given an
{{AdAuctionDataConfig}} |configIDL| and [=origin=] |top_level_origin|:

1. Let |seller| be the result of running [=parse an https origin=] on
|configIDL|["{{AdAuctionDataConfig/seller}}"].
1. Let |coordinator| be the result of running [=parse an https origin=] on
|configIDL|["{{AdAuctionDataConfig/coordinatorOrigin}}"].
1. If |seller| or |coordinator| are failure, then [=exception/throw=] a {{TypeError}}.
1. Let |config| be a new [=auction data config=] with the following [=struct/items=]:
: [=auction data config/publisher=]
:: |top_level_origin|
: [=auction data config/seller=]
:: |seller|
: [=auction data config/coordinator=]
Expand Down Expand Up @@ -7672,6 +7677,10 @@ for a given [=k-anonymity key=]. These records are stored in the [=user agent=].
An <dfn>auction data config</dfn> is a [=struct=] with the following [=struct/items=]:

<dl dfn-for="auction data config">
: <dfn>publisher</dfn>
:: An [=origin=].
The origin of the top level page running the ad auction. The
[=origin/scheme=] must be "`https`".
: <dfn>seller</dfn>
:: An [=origin=].
The origin of the seller running the ad auction. The [=origin/scheme=] must be "`https`".
Expand Down

0 comments on commit 840355a

Please sign in to comment.