Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
npm1 committed Jul 31, 2024
1 parent 5fe92d1 commit 681027e
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -728,38 +728,6 @@ dictionary DisconnectedAccount {
required USVString account_id;
};
</xmp>
## The IdentityCredentialError Interface ## {#browser-api-identity-credential-error-interface}
<!-- ============================================================ -->

This specification introduces a new type of {{DOMException}}, the {{IdentityCredentialError}}. It
is used when the [=IDP=] cannot create an {{IdentityCredential}} after the user has requested to use
a federated account.

<pre class="idl">
[Exposed=Window, SecureContext]
interface IdentityCredentialError: DOMException {
constructor(optional DOMString message = "", IdentityCredentialErrorInit options);
readonly attribute DOMString code;
readonly attribute DOMString url;
};
</pre>

<div algorithm="IdentityCredentialError constructor">
The {{IdentityCredentialError/constructor()}}, given a |realm|, a {{DOMString}} |message| and a
{{IdentityCredentialErrorInit}} |options| must run the following steps:
1. Invoke the {{DOMException}}'s {{DOMException/constructor()}}, passing |realm| and |message|.
1. Set <a>this</a>.{{IdentityCredentialError/code}} to |options|.{{IdentityCredentialError/code}}.
1. Set <a>this</a>.{{IdentityCredentialError/url}} to |options.{{IdentityCredentialError/url}}.
</div>

<dl>
: <b>{{IdentityCredentialError/code}}</b>
:: The {{IdentityCredentialError/code}}'s attribute getter returns the value it is set to.
It represents the type of error which resulted in an {{IdentityCredential}} not being created.
: <b>{{IdentityCredentialError/url}}</b>
:: The {{IdentityCredentialError/url}}'s attribute getter returns the value it is set to.
It represents a URL where the user can learn more information about the error.
</dl>

<!-- ============================================================ -->
### The CredentialRequestOptions ### {#browser-api-credential-request-options}
Expand Down Expand Up @@ -1473,13 +1441,6 @@ dictionary IdentityProviderToken {
};
</xmp>

<xmp class="idl">
dictionary IdentityCredentialErrorInit {
DOMString code;
DOMString url;
};
</xmp>

<!-- ============================================================ -->
### Request permission to sign-up ### {#request-permission-signup}
<!-- ============================================================ -->
Expand Down

0 comments on commit 681027e

Please sign in to comment.