From 991c1ecef9f4e0e51803df0dd91a89b110e7e052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Sat, 27 Jul 2024 05:32:34 +1000 Subject: [PATCH] Use 'InvalidStateError' for fully active check (#245) --- index.bs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.bs b/index.bs index a933f28..a5e5410 100644 --- a/index.bs +++ b/index.bs @@ -977,7 +977,7 @@ spec:css-syntax-3; 1. Let |document| be |settings|'s [=relevant global object=]'s [=associated Document=]. 1. If |document| is not [=Document/fully active=], then return [=a promise rejected with=] - "{{NotAllowedError}}" {{DOMException}}. + an "{{InvalidStateError}}" {{DOMException}}. 1. If |options|.{{CredentialRequestOptions/signal}} is [=AbortSignal/aborted=], then return [=a promise rejected with=] @@ -1130,7 +1130,7 @@ spec:css-syntax-3; 1. Assert: |settings| is a [=secure context=]. 1. If |settings|'s [=relevant global object=]'s [=associated Document=] is not [=Document/fully active=], - then return [=a promise rejected with=] "{{NotAllowedError}}" {{DOMException}}. + then return [=a promise rejected with=] an "{{InvalidStateError}}" {{DOMException}}. 1. Let |sameOriginWithAncestors| be `true` if the [=current settings object=] is [=same-origin with its ancestors=], and `false` otherwise. @@ -1186,7 +1186,7 @@ spec:css-syntax-3; 1. Let |document| be the [=relevant global object=]'s [=associated Document=]. 1. If |document| is not [=Document/fully active=], then return - [=a promise rejected with=] "{{NotAllowedError}}" {{DOMException}}. + [=a promise rejected with=] an "{{InvalidStateError}}" {{DOMException}}. 1. Let |sameOriginWithAncestors| be `true` if the [=current settings object=] is [=same-origin with its ancestors=], and `false` otherwise. @@ -1271,7 +1271,7 @@ spec:css-syntax-3; 1. Let |origin| be |settings|' [=environment settings object/origin=]. 1. If |settings|'s [=relevant global object=]'s [=associated Document=] is not [=Document/fully active=], - then return [=a promise rejected with=] "{{NotAllowedError}}" {{DOMException}}. + then return [=a promise rejected with=] an "{{InvalidStateError}}" {{DOMException}}. 2. Let |p| be [=a new promise=]