Skip to content

Commit 4ab0fb4

Browse files
committed
check and consume user activation
1 parent b78f1bb commit 4ab0fb4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: index.html

+5
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,11 @@ <h2>
552552
The <dfn>subscribe</dfn> method when invoked MUST run the following steps:
553553
</p>
554554
<ol>
555+
<li>If the [=relevant global object=] of [=this=] does not have [=transient activation=],
556+
return [=a promise rejected with=] with a {{"NotAllowedError"}} {{DOMException}}.
557+
</li>
558+
<li>[=Consume user activation=] of [=this=]'s [=relevant global object=].
559+
</li>
555560
<li>Let |promise| be <a>a new promise</a>.
556561
</li>
557562
<li>Return |promise| and continue the following steps asynchronously.

0 commit comments

Comments
 (0)