Skip to content

Commit a0ff44f

Browse files
Check doc fully active during response.complete() (#748)
* Check doc fully active during response.complete()
1 parent ede9460 commit a0ff44f

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

index.html

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3526,13 +3526,32 @@

35263526
<li>Return <var>promisevar> and perform the remaining steps <a>in
35273527
parallela>.
35283528
li>
3529-
<li>Close down any remaining user interface. The <a>user agenta>
3530-
MAY use the value <var>resultvar> to influence the user experience.
3531-
li>
3532-
<li>Set the <a>user agenta>'s <a>payment request is showinga>
3533-
boolean to false.
3529+
<li>If <var>documentvar> stops being <a data-cite=
3530+
"!HTML#fully-active">fully activea> while the user interface is
3531+
being shown, or no longer is by the time this step is reached, then:
3532+
<ol>
3533+
<li>Close down the user interface.
3534+
li>
3535+
<li>Set the <a>user agenta>'s <a>payment request is showinga>
3536+
boolean to false.
3537+
li>
3538+
<li>Reject <var>promisevar> with an "<a>AbortErrora>"
3539+
<a>DOMExceptiona>.
3540+
li>
3541+
ol>
35343542
li>
3535-
<li>Resolve <var>promisevar> with undefined.
3543+
<li>Otherwise:
3544+
<ol>
3545+
<li>Close down any remaining user interface. The <a>user
3546+
agenta> MAY use the value <var>resultvar> to influence the
3547+
user experience.
3548+
li>
3549+
<li>Set the <a>user agenta>'s <a>payment request is showinga>
3550+
boolean to false.
3551+
li>
3552+
<li>Resolve <var>promisevar> with undefined.
3553+
li>
3554+
ol>
35363555
li>
35373556
ol>
35383557
section>

0 commit comments

Comments
 (0)