Skip to content

Commit 0d11184

Browse files
Consume user activation (#916)
1 parent f697360 commit 0d11184

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

index.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@

157157
li>
158158
<li>Deprecated `allowpaymentrequest` attribute.
159159
li>
160+
<li>Calling {{PaymentRequest/show()}} now consumes the user
161+
activation.
162+
li>
160163
ul>
161164
section>
162165
section>
@@ -990,16 +993,19 @@

990993
follows:
991994
p>
992995
<ol class="algorithm">
996+
<li>Let |request:PaymentRequest| be [=this=].
997+
li>
993998
<li data-tests=
994999
"payment-request-show-method.https.html, show-method-postmessage-manual.https.html">
995-
If the [=relevant global object=] of [=this=] does not have
1000+
If the [=relevant global object=] of [=request=] does not have
9961001
[=transient activation=], return [=a promise rejected with=] with a
997-
{{"SecurityError"}} {{DOMException}}.
1002+
{{"NotAllowedError"}} {{DOMException}}.
9981003
li>
999-
<li>Let |request:PaymentRequest| be [=this=].
1004+
<li data-tests="show-consume-activation.https.html">[=Consume user
1005+
activation=] of the [=relevant global object=].
10001006
li>
1001-
<li>Let |document| be |request|'s [=relevant global object=]'s [=
1002-
associated `Document`=].
1007+
<li>Let |document| be |request|'s [=relevant global object=]'s
1008+
[=associated `Document`=].
10031009
li>
10041010
<li data-tests="rejects_if_not_active.https.html">If |document| is
10051011
not [=Document/fully active=], then return <a>a promise rejected

0 commit comments

Comments
 (0)