From 377e5a3e237191ea09a0782736d929a14b8dd90b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Mon, 27 May 2024 16:56:54 +1000 Subject: [PATCH] Move fully active check and check also in parallel (#367) --- index.html | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 9592807..fe6c763 100644 --- a/index.html +++ b/index.html @@ -315,6 +315,10 @@

  • Let |document:Document| be [=this=]'s [=relevant global object=]'s [=associated Document=].
  • +
  • If + |document| is not [=Document/fully active=], return [=a promise + rejected with=] with a {{"NotAllowedError"}} {{DOMException}}. +
  • If |document| is not [=allowed to use=] the [=policy-controlled @@ -326,10 +330,6 @@

    |document|, return [=a promise rejected with=] a {{"NotAllowedError"}} {{DOMException}}.

  • -
  • If - |document| is not [=Document/fully active=], return [=a promise - rejected with=] with a {{"NotAllowedError"}} {{DOMException}}. -
  • If |document|'s [=Document/visibility state=] is "`hidden`", return [=a promise rejected with=] {{"NotAllowedError"}} {{DOMException}}. @@ -359,6 +359,15 @@

    source given |document|'s relevant global object to run these steps:
      +
    1. If |document| is not [=Document/fully active=], then: +
        +
      1. Reject |promise| with a {{"NotAllowedError"}} + {{DOMException}}. +
      2. +
      3. Abort these steps. +
      4. +
      +
    2. If |document|'s [=Document/visibility state=] is "`hidden`", then: