diff --git a/spec/index.bs b/spec/index.bs index a58d8532..70ea88ac 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -711,8 +711,8 @@ dictionary IdentityCredentialErrorInit {
-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 this.{{IdentityCredentialError/error}} to |options|.{{IdentityCredentialError/error}} if it is present in |options|, or to "" otherwise. @@ -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}}).
@@ -1020,8 +1020,8 @@ throwing the exception. the user agent MAY show some UI to the user indicating that they are being auto-reauthenticated. 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|. @@ -1029,10 +1029,10 @@ throwing the exception. 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). @@ -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. @@ -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|. @@ -1421,7 +1421,7 @@ To fetch an identity assertion 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: