Skip to content

Commit

Permalink
Spec: use PAA coordinator algorithm (#204)
Browse files Browse the repository at this point in the history
Switches to using the exported algorithm from the Private Aggregation spec (which will be used in Protected Audience's spec as well)
  • Loading branch information
alexmturner authored Oct 24, 2024
1 parent e3b4368 commit 65f1bb6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -511,17 +511,9 @@ Moreover, each {{SharedStorageWorklet}}'s [=global scopes|list of global scopes=
does not [=map/exist=], return null.
1. If |options|["{{SharedStorageRunOperationMethodOptions/privateAggregationConfig}}"]["{{SharedStoragePrivateAggregationConfig/aggregationCoordinatorOrigin}}"]
does not [=map/exist=], return null.
1. Let |url| be the result of running the [=URL parser=] on
1. Return the result of [=obtaining the Private Aggregation coordinator=]
given
|options|["{{SharedStorageRunOperationMethodOptions/privateAggregationConfig}}"]["{{SharedStoragePrivateAggregationConfig/aggregationCoordinatorOrigin}}"].
1. If |url| is failure or null, return a new {{DOMException}} with name
"`SyntaxError`".

Issue: Consider throwing an error if the path is not empty.
1. Let |origin| be |url|'s [=url/origin=].
1. If the result of [=determining if an origin is an aggregation coordinator=]
given |origin| is false, return a new {{DOMException}} with name
"`DataError`".
1. Return |origin|.
</div>

<div algorithm>
Expand Down

0 comments on commit 65f1bb6

Please sign in to comment.