Skip to content

Commit

Permalink
[Spec] Only allow show() to be called in a foreground tab (#1005)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stephenmcgruer committed May 30, 2023
1 parent 08be866 commit cce8f5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.html
Expand Up @@ -839,6 +839,9 @@ <h2>
not [=Document/fully active=], then return <a>a promise rejected
with</a> an {{"AbortError"}} {{DOMException}}.
</li>
<li>If |document|'s [=Document/visibility state=] is not `"visible"`,
then return <a>a promise rejected with</a> an {{"AbortError"}}
{{DOMException}}.
<li>
<p>
Optionally, if the <a>user agent</a> wishes to disallow the call
Expand Down

0 comments on commit cce8f5e

Please sign in to comment.