From 18a0146d94080076f9c2954385d4d608d262fbfc Mon Sep 17 00:00:00 2001 From: Nina Satragno Date: Wed, 10 Nov 2021 10:53:01 -0500 Subject: [PATCH] Fix #175 Reject aborted operations with the "abort reason" instead of AbortError. --- index.bs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/index.bs b/index.bs index 0c4fb49..447d8f5 100644 --- a/index.bs +++ b/index.bs @@ -535,7 +535,7 @@ spec:css-syntax-3; : signal :: This property lets the developer abort an ongoing {{CredentialsContainer/get()}} operation. An aborted operation may complete normally (generally if the abort was received after the - operation finished) or reject with an "{{AbortError}}" {{DOMException}}." + operation finished) or reject with an [=AbortSignal/abort reason=].
@@ -755,7 +755,7 @@ spec:css-syntax-3; : signal :: This property lets the developer abort an ongoing {{CredentialsContainer/create()}} operation. An aborted operation may complete normally (generally if the abort was received - after the operation finished) or reject with an "{{AbortError}}" {{DOMException}}." + after the operation finished) or reject with an [=AbortSignal/abort reason=].
## Algorithms ## {#algorithms} @@ -771,8 +771,9 @@ spec:css-syntax-3; 2. Assert: |settings| is a [=secure context=]. - 3. If |options|.{{CredentialRequestOptions/signal}}'s [=AbortSignal/aborted flag=] - is set, then return [=a promise rejected with=] an "{{AbortError}}" {{DOMException}}. + 3. If |options|.{{CredentialRequestOptions/signal}} is [=AbortSignal/aborted=], + then return [=a promise rejected with=] + |options|.{{CredentialRequestOptions/signal}}'s [=AbortSignal/abort reason=]. 4. Let |p| be [=a new promise=]. @@ -918,8 +919,9 @@ spec:css-syntax-3; types in order to support a "sign-up" use case. For the moment, though, we're punting on that by restricting the dictionary to a single entry. - 7. If |options|.{{CredentialCreationOptions/signal}}'s [=AbortSignal/aborted - flag=] is set, then return [=a promise rejected with=] an "{{AbortError}}" {{DOMException}}. + 3. If |options|.{{CredentialRequestOptions/signal}} is [=AbortSignal/aborted=], + then return [=a promise rejected with=] + |options|.{{CredentialRequestOptions/signal}}'s [=AbortSignal/abort reason=]. 8. Let |p| be [=a new promise=].