From 0a643b4d26a73acbb9111e36c0d322c06ecfbbf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Pe=C3=B1a=20Moreno?= Date: Thu, 19 Sep 2024 11:16:16 -0400 Subject: [PATCH] Update index.bs --- spec/index.bs | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/spec/index.bs b/spec/index.bs index a93fe9da..d879a54f 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -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}}). @@ -921,17 +921,13 @@ throwing the exception.
If |mediation| is not "{{CredentialMediationRequirement/required}}", |requiresUserMediation| is false, and |numRegisteredAccounts| is equal to 1:
- 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 auto-reauthenticated. - 1. Set |isAutoSelected| to true.
If |mediation| is "{{CredentialMediationRequirement/silent}}":
1. Return (failure, true).
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 [=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 @@ -1473,8 +1469,8 @@ To fetch request given a [=/request=] |request|, |globalObject|, and
When computing the manifest URL given an {{IdentityProviderConfig}} |provider|, a -[=string=] |manifestString|, a boolean |requireSameOrigin|, and |globalObject|, perform the -following steps. This returns a URL or failure. +[=string=] |manifestString|, and |globalObject|, perform the following steps. This returns a +URL 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 @@ -1485,10 +1481,7 @@ following steps. This returns a URL 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|.