Skip to content

Commit

Permalink
Update spec.bs
Browse files Browse the repository at this point in the history
Some cleanups - more likely to follow.
  • Loading branch information
MattMenke2 authored Oct 5, 2023
1 parent e6f9c9d commit a1c6a7e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ To <dfn>build an interest group permissions url</dfn> given a [=origin=] |ownerO

<h2 id="leaving-interest-groups">Leaving Interest Groups</h2>

<h3 id="leaveadinterestgroup">leaveAdInterestGroup</h3>
<h3 id="leaveadinterestgroup">leaveAdInterestGroup()</h3>
{{Window/navigator}}.{{Navigator/leaveAdInterestGroup()}} removes a user from a particular interest
group.

Expand Down Expand Up @@ -510,7 +510,7 @@ are:

</div>

<h3 id="clearoriginjoinedAdInterestGroups">clearOriginJoinedAdInterestGroups</h3>
<h3 id="clearoriginjoinedAdInterestGroups">clearOriginJoinedAdInterestGroups()</h3>
{{Window/navigator}}.{{Navigator/clearOriginJoinedAdInterestGroups()}} removes a user from
[=interest groups=] with the current page's [=interest group/joining origin=].

Expand All @@ -537,16 +537,16 @@ are:
"{{NotAllowedError}}" {{DOMException}}.

Note: both joining and leaving interest groups use the "join-ad-interest-group" feature.
1. Let |owner| be the result of [=parsing an https origin=] with |owner|.
1. If |owner| is failure, [=exception/throw=] a {{TypeError}}.
1. Let |ownerOrigin| be the result of [=parsing an https origin=] with |owner|.
1. If |ownerOrigin| is failure, [=exception/throw=] a {{TypeError}}.
1. Run these steps [=in parallel=]:
1. Let |permission| be the result of [=checking interest group permissions=] with
|owner|, |frameOrigin|, and "`leave`".
|ownerOrigin|, |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.
1. [=Queue a task=] to [=resolve=] |p| with `undefined`.
1. [=list/Remove=] [=interest groups=] from the user agent's [=interest group set=] whose
[=interest group/owner=] is |owner|, [=interest group/joining origin=] is [=this=]'s
[=interest group/owner=] is |ownerOrigin|, [=interest group/joining origin=] is [=this=]'s
[=relevant settings object=]'s [=environment/top-level origin=], and
[=interest group/name=] is not in |interestGroupsToKeep|.
1. Return |p|.
Expand Down

0 comments on commit a1c6a7e

Please sign in to comment.