Skip to content

Commit

Permalink
Update index.bs
Browse files Browse the repository at this point in the history
  • Loading branch information
npm1 authored Sep 19, 2024
1 parent ab2a9b8 commit 0a643b4
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ algorithm is invoked, the user agent MUST execute the following steps. This retu
However, UAs may have different UI approaches here and prevent it in a different way.
1. [=Queue a global task=] on the [=DOM manipulation task source=]
to throw a new "{{NetworkError}}" {{DOMException}}.
1. Else, return |credential| (this may throw, since it may be an
1. Otherwise, return |credential| (this may throw, since it may be an
{{IdentityCredentialError}}).
</div>

Expand Down Expand Up @@ -921,17 +921,13 @@ throwing the exception.
<dl class=switch>
<dt>If |mediation| is not "{{CredentialMediationRequirement/required}}", |requiresUserMediation|
is false, and |numRegisteredAccounts| is equal to 1:</dt>
1. Set |account| to |registeredAccount| and |accountState| to the result of running
[=compute the connection status=] algorithm given |provider| and |account|. When doing this,
the user agent MAY show some UI to the user indicating that they are being
1. Set |account| to |registeredAccount|, |permission| to true, and |isAutoSelected| to true.
When doing this, the user agent MAY show some UI to the user indicating that they are being
<dfn>auto-reauthenticated</dfn>.
1. Set |isAutoSelected| to true.
<dt>If |mediation| is "{{CredentialMediationRequirement/silent}}":</dt>
1. Return (failure, true).
<dt> If |accountsList|'s size is 1:</dt>
1. Set |account| to |accountsList|[0].
1. Set |accountState| to the result of running the [=compute the connection status=] algorithm
given |provider|, |account|, and |globalObject|.
1. If [=compute the connection status=] of |account|, |provider| and |globalObject| returns
[=compute the connection status/connected=], show a dialog to request user permission to sign
in via |account|, and set the result in |permission|. The user agent MAY use |options|'s
Expand Down Expand Up @@ -1473,8 +1469,8 @@ To <dfn>fetch request</dfn> given a [=/request=] |request|, |globalObject|, and

<div algorithm>
When <dfn>computing the manifest URL</dfn> given an {{IdentityProviderConfig}} |provider|, a
[=string=] |manifestString|, a boolean |requireSameOrigin|, and |globalObject|, perform the
following steps. This returns a <a spec=url for=/>URL</a> or failure.
[=string=] |manifestString|, and |globalObject|, perform the following steps. This returns a
<a spec=url for=/>URL</a> or failure.
1. Let |configUrl| be the result of running [=parse url=] with |provider|'s
{{IdentityProviderConfig/configURL}} and |globalObject|.
1. Let |manifestUrl| be the result of running [=parse url=] given |manifestString| (the relative
Expand All @@ -1485,10 +1481,7 @@ following steps. This returns a <a spec=url for=/>URL</a> or failure.
allowed.

1. If |manifestUrl| is failure, return failure.
1. If |requireSameOrigin| and |manifestUrl| is not [=same origin=] with |configUrl|, return
failure.
1. If |requireSameOrigin| is false and |manifestUrl|'s [=url/host=]'s [=host/registrable domain=]
is not equal to |configUrl|'s, return failure.
1. If |manifestUrl| is not [=same origin=] with |configUrl|, return failure.
1. If |manifestUrl| is not a [=potentially trustworthy URL=], return failure.
1. Return |manifestUrl|.
</div>
Expand Down

0 comments on commit 0a643b4

Please sign in to comment.