Skip to content

Commit

Permalink
Do not show payment requests for non-fully-active documents (#579)
Browse files Browse the repository at this point in the history
Closes #360.

Overriding IPR block
  • Loading branch information
domenic authored and ianbjacobs committed Aug 15, 2017
1 parent c606c26 commit a5e82c6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,14 @@ <h2>
<li>Let <var>request</var> be the <a>PaymentRequest</a> object on
which the method is called.
</li>
<li>Let <var>document</var> be <var>request</var>'s <a data-cite=
"!HTML#concept-relevant-global">relevant global object</a>'s
<a href="!HTML#concept-document-window">associated Document</a>.
</li>
<li>If <var>document</var> is not <a data-cite="!HTML#fully-active">
fully active</a>, then return a promise rejected with an
"<a>AbortError</a>" <a>DOMException</a>.
</li>
<li>
<p>
Optionally, if the <a>user agent</a> wishes to disallow the call
Expand Down Expand Up @@ -892,6 +900,14 @@ <h2>
or the <a>user aborts the payment request algorithm</a>, which
are triggered through interaction with the user interface.
</p>
<p>
If <var>document</var> stops being <a data-cite=
"!HTML#fully-active">fully active</a> while the user interface is
being shown, or no longer is by the time this step is reached,
then the user interface should be hidden, and
<var>acceptPromise</var> should be rejected with an
"<a>AbortError</a>" <a>DOMException</a>.
</p>
</li>
</ol>
</section>
Expand Down

0 comments on commit a5e82c6

Please sign in to comment.