From 64e80a75def274b9cb3e75f28ff02652816b743d Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Fri, 14 Oct 2022 13:31:33 +1100 Subject: [PATCH] Consume transient activation --- index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 0f5fc5e..357904d 100644 --- a/index.html +++ b/index.html @@ -390,8 +390,9 @@

the the following steps.

    -
  1. Let |document:Document| be [=this=]'s [=relevant global - object=]'s [=associated `Document`=]. +
  2. Let |global:Window| be [=this=]'s [=relevant global object=]. +
  3. +
  4. Let |document:Document| be |global|'s [=associated `Document`=].
  5. If |document| is not [=Document/fully active=], return [=a promise rejected with=] an "{{InvalidStateError}}" {{DOMException}}. @@ -407,6 +408,11 @@

    rejected with=] a `"SecurityError"` {{DOMException}} and abort these steps.

  6. +
  7. If |global| does not have [=transient activation=], return [=a + promise rejected with=] a {{"NotAllowedError"}} {{DOMException}}. +
  8. +
  9. [=Consume user activation=] of |global|. +
  10. If |document|'s {{Document/[[orientationPendingPromise]]}} is not `null`: