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=]