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.
- - Let |document:Document| be [=this=]'s [=relevant global
- object=]'s [=associated `Document`=].
+
- Let |global:Window| be [=this=]'s [=relevant global object=].
+
+ - Let |document:Document| be |global|'s [=associated `Document`=].
- 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.
+ - If |global| does not have [=transient activation=], return [=a
+ promise rejected with=] a {{"NotAllowedError"}} {{DOMException}}.
+
+ - [=Consume user activation=] of |global|.
+
- If |document|'s
{{Document/[[orientationPendingPromise]]}} is not `null`: