@@ -335,12 +335,12 @@ <h5 id="algorithm-store-cred" algorithm>`[[Store]]` internal method</h5>
335
335
</ ul >
336
336
337
337
< h5 id ="algorithm-create-cred " algorithm > `[[Create]]` internal method</ h5 >
338
- < dfn for ="Credential " method export > \[[Create]](origin, options)</ dfn > is called
338
+ < dfn for ="Credential " method export > \[[Create]](origin, options)</ dfn > is called
339
339
[=in parallel=] with an [=environment settings object/origin=] and a {{CredentialCreationOptions}},
340
340
and either:
341
341
342
- * creates a {{Credential}}, or,
343
- * does not create a credential and returns `null`, or,
342
+ * creates a {{Credential}}, or
343
+ * does not create a credential and returns `null`, or
344
344
* returns an error if creation fails due to exceptional situations
345
345
(for example, incorrect options could produce a {{TypeError}}).
346
346
@@ -879,17 +879,15 @@ <h4 id="algorithm-create" algorithm>Create a `Credential`</h4>
879
879
1. Let |r| be the result of executing |interfaces|[0]'s {{Credential/[[Create]](origin, options)}}
880
880
internal method given |origin| and |options|.
881
881
882
- 2. If |r| is an [=exception=] or `null` , [=reject=] |p| with |r|, and terminate these substeps.
882
+ 2. If |r| is an [=exception=], [=reject=] |p| with |r|, and terminate these substeps.
883
883
884
- 3. If |r| is a {{Credential}}, [=resolve=] |p| with |r|, and terminate these substeps.
884
+ 3. If |r| is a {{Credential}} or `null` , [=resolve=] |p| with |r|, and terminate these substeps.
885
885
886
886
4. Assert: |r| is a < code > [=constructCredential=]</ code > algorithm.
887
887
888
888
5. [=Queue a task=] on |global|'s [=DOM manipulation task source=] to run the following substeps:
889
889
890
- 1. Let |result| be the result of [=promise-calling=] |r| given |global|.
891
- 2. If |result| is an [=exception=], [=reject=] |p| with |result| and terminate these substeps.
892
- 3. [=Resolve=] |p| with |result|.
890
+ 1. [=Resolve=] |p| with the result of [=promise-calling=] |r| given |global|.
893
891
894
892
9. Return |p|.
895
893
</ ol >
@@ -1205,7 +1203,7 @@ <h4 algorithm id="collectfromcredentialstore-passwordcredential">
1205
1203
</ h4 >
1206
1204
1207
1205
< dfn for ="PasswordCredential " method > \[[CollectFromCredentialStore]](origin, options)</ dfn > is called
1208
- with an [=environment settings object/ origin=] (|origin|) and a {{CredentialRequestOptions}} (|options|),
1206
+ with an [=origin=] (|origin|) and a {{CredentialRequestOptions}} (|options|),
1209
1207
and returns a set of {{Credential}} objects from
1210
1208
the [=credential store=]. If no matching {{Credential}} objects are available, the returned set
1211
1209
will be empty.
@@ -1297,7 +1295,7 @@ <h4 algorithm id="construct-passwordcredential-form">
1297
1295
</ h4 >
1298
1296
1299
1297
To < dfn abstract-op > Create a `PasswordCredential` from an `HTMLFormElement`</ dfn > , given an
1300
- {{HTMLFormElement}} (|form|) and an [=environment settings object/ origin=] (|origin|), run these steps.
1298
+ {{HTMLFormElement}} (|form|) and an [=origin=] (|origin|), run these steps.
1301
1299
1302
1300
Note: [[#examples-post-signin]] and [[#examples-change-password]] provide examples of the intended
1303
1301
usage.
0 commit comments