Skip to content

Commit

Permalink
Use 'InvalidStateError' for fully active check (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Jul 26, 2024
1 parent 7fb261a commit 991c1ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>|options|.{{CredentialRequestOptions/signal}}</code> is [=AbortSignal/aborted=],
then return [=a promise rejected with=]
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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=]

Expand Down

0 comments on commit 991c1ec

Please sign in to comment.