Skip to content

Commit

Permalink
Clarify a slightly-ambiguous Otherwise. (#672)
Browse files Browse the repository at this point in the history
* Normalize line endings.

* Clarify a slightly-ambiguous Otherwise.
  • Loading branch information
jyasskin authored Jun 28, 2023
1 parent e332640 commit 9ae9a15
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ This is detectable because it can change the set of fields that are read from th
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|:
1. Let |permission| be the result of [=checking interest group permissions=] with
1. Let |permission| be the result of [=checking interest group permissions=] with
|interestGroup|'s [=interest group/owner=], |frameOrigin|, and "`join`".
1. If |permission| is false, then [=queue a task=] to [=reject=] |p| with a
"{{NotAllowedError}}" {{DOMException}} and do not run the remaining steps.
Expand Down Expand Up @@ -438,7 +438,7 @@ are:
1. If |owner| is failure, [=exception/throw=] a {{TypeError}}.
1. Let |name| be |group|["{{AuctionAdInterestGroupKey/name}}"].
1. Run these steps [=in parallel=]:
1. Let |permission| be the result of [=checking interest group permissions=] with
1. Let |permission| be the result of [=checking interest group permissions=] with
|owner|, |frameOrigin|, and "`leave`".
1. If |permission| is false, then [=queue a task=] to [=reject=] |p| with a
"{{NotAllowedError}}" {{DOMException}} and do not run the remaining steps.
Expand Down Expand Up @@ -1020,7 +1020,7 @@ To <dfn>parse an origin</dfn> given a [=string=] |input|:
the time set to the current UTC day and a count of 1.
1. [=list/Replace=] the [=interest group=] that has |loadedIg|'s [=interest group/owner=] and
[=interest group/name=] in the browser’s [=interest group set=] with |loadedIg|.

</div>

<div algorithm>
Expand All @@ -1040,9 +1040,9 @@ To <dfn>parse an origin</dfn> given a [=string=] |input|:
1. [=list/Append=] |win| to |loadedIg|'s [=interest group/previous wins=].
1. [=list/Replace=] the [=interest group=] that has |loadedIg|'s [=interest group/owner=] and
[=interest group/name=] in the browser’s [=interest group set=] with |loadedIg|.
</div>

</div>

<div algorithm>

To <dfn>build bid generators map</dfn> given an [=auction config=] |auctionConfig|:
Expand Down Expand Up @@ -1811,8 +1811,8 @@ null |winningComponentConfig|:
[=leading bid info/component seller=].
1. If |winner|'s [=generated bid/modified bid=] is not null, [=map/set=]
|browserSignals|["`bid`"] to it.
1. Otherwise, if |winner|'s [=generated bid/modified bid=] is not null, [=map/set=]
|browserSignals|["`modifiedBid`"] to it.
1. Otherwise (if |leadingBidInfo|'s [=leading bid info/component seller=] is null), if |winner|'s
[=generated bid/modified bid=] is not null, [=map/set=] |browserSignals|["`modifiedBid`"] to it.
1. Set |config| to |leadingBidInfo|'s [=leading bid info/auction config=].
1. Let |sellerReportingScript| be the result of [=fetching script=] with |config|'s
[=auction config/decision logic url=].
Expand Down Expand Up @@ -2217,7 +2217,7 @@ of the following global objects:
1. Let |resultJSON| be "null".
1. If |functionName| is "`reportResult`", then set |resultJSON| to the result of
[=serializing a JavaScript value to a JSON string=] given |result|.

Note: Consider a return value that can't be converted to JSON a valid result, so if an
exception was [=exception/thrown=] in the previous step, keep |resultJSON| as "null".
1. Return « |resultJSON|, |global|'s [=InterestGroupReportingScriptRunnerGlobalScope/report url=],
Expand Down

0 comments on commit 9ae9a15

Please sign in to comment.