Skip to content

Commit

Permalink
TallTedFeedback
Browse files Browse the repository at this point in the history
  • Loading branch information
npm1 committed Aug 6, 2024
1 parent 52f2de3 commit e97fb3f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,8 @@ dictionary IdentityCredentialErrorInit {
</pre>

<div algorithm="IdentityCredentialError constructor">
The {{IdentityCredentialError/constructor()}}, given a |realm|, a {{DOMString}} |message| and a
{{IdentityCredentialErrorInit}} |options| must run the following steps:
Given a |realm|, a {{DOMString}} |message|, and an {{IdentityCredentialErrorInit}} |options|, the
{{IdentityCredentialError/constructor()}} must run the following steps:
1. Invoke the {{DOMException}}'s {{DOMException/constructor()}}, passing |realm| and |message|.
1. Set <a>this</a>.{{IdentityCredentialError/error}} to |options|.{{IdentityCredentialError/error}}
if it is present in |options|, or to "" otherwise.
Expand Down Expand Up @@ -894,7 +894,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. Otherwise, return |credential| (this may throw since it may be an
1. Else, return |credential| (this may throw, since it may be an
{{IdentityCredentialError}}).
</div>

Expand Down Expand Up @@ -1020,19 +1020,19 @@ throwing the exception.
the user agent MAY show some UI to the user indicating that they are being
<dfn>auto-reauthenticated</dfn>.
1. Set |isAutoSelected| to true.
1. Otherwise, if |mediation| is "{{CredentialMediationRequirement/silent}}", return (failure, false).
1. Otherwise, if |accountsList|'s size is 1:
1. Else if |mediation| is "{{CredentialMediationRequirement/silent}}", return (failure, false).
1. Else if |accountsList|'s size is 1:
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 |accountState| is [=compute the connection status/disconnected=],
let |permission| be the result of running [=request permission to sign-up=] algorithm
with |account|, |accountState|, |config|, |provider|, and |globalObject|. Also set
|disclosureTextShown| to true.
1. Otherwise, show a dialog to request user permission to sign in via |account|, and set the
1. Else, 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
{{IdentityCredentialRequestOptions/context}} to customize the dialog.
1. Otherwise:
1. Else:
1. Set |account| to the result of running the [=select an account=] from the
|accountsList|.
1. If |account| is failure, return (failure, true).
Expand All @@ -1042,7 +1042,7 @@ throwing the exception.
1. Let |permission| be the result of running the [=request permission to sign-up=]
algorithm with |account|, |config|, |provider|, and |globalObject|.
1. Set |disclosureTextShown| to true.
1. Otherwise, set |permission| to true.
1. Else, set |permission| to true.
1. Wait until the [=user agent=]'s dialogs requesting for user choice or permission to be
closed, if any are created in the previous steps.
1. Assert: |account| is not null.
Expand All @@ -1063,8 +1063,8 @@ throwing the exception.
in its UI so the user can click on it to learn more information about the error message.
1. Wait until the UI is acknowledged or dismissed by the user.

Note: this wait means the [=user agent=] rejects the call only after the UI has been
closed by the user.
Note: this wait means the [=user agent=] rejects the call only after the UI has been
closed by the user.
1. Return |credential|.
</div>

Expand Down Expand Up @@ -1421,7 +1421,7 @@ To <dfn>fetch an identity assertion</dfn> given a {{USVString}}
1. Otherwise, i.e. if |json|[|error|] [=map/exists=]:
1. If |json|[|error|] is not an [=ordered map=], set |credential| to a new
{{IdentityCredentialError}} given |globalObject|'s [=global object/realm=] and
"IdentityCredentialError" and return.
"IdentityCredentialError", and return.
1. [=converted to an IDL value|Convert=] |json| to an {{IdentityCredentialErrorInit}},
|errorInit|.
1. If |errorInit|.{{IdentityCredentialErrorInit/url}} is present:
Expand Down

0 comments on commit e97fb3f

Please sign in to comment.