Skip to content

Commit cce8f5e

Browse files
[Spec] Only allow show() to be called in a foreground tab (#1005)
This addresses this issue in SPC - https://w3c.github.io/secure-payment-confirmation/#issue-e92619e9 The behavior spec'd in SPC appears to already be followed in general Payment Request implementations already, based on testing in both Safari and Chrome, so it seems safe to just spec it here instead.
1 parent 08be866 commit cce8f5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,9 @@

839839
not [=Document/fully active=], then return <a>a promise rejected
840840
witha> an {{"AbortError"}} {{DOMException}}.
841841
li>
842+
<li>If |document|'s [=Document/visibility state=] is not `"visible"`,
843+
then return <a>a promise rejected witha> an {{"AbortError"}}
844+
{{DOMException}}.
842845
<li>
843846
<p>
844847
Optionally, if the <a>user agenta> wishes to disallow the call

0 commit comments

Comments
 (0)