Skip to content

Commit

Permalink
Merge pull request #500 from nidhijaju/bfcache-wt-interaction
Browse files Browse the repository at this point in the history
Specify BFCache interaction
  • Loading branch information
jan-ivar authored Apr 25, 2023
2 parents b2b4b07 + c52beb2 commit ef93226
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1097,8 +1097,13 @@ This specification defines [=unloading document cleanup steps=] as the following

1. Let |window| be |document|'s [=relevant global object=].
1. For each {{WebTransport}} |transport| whose [=relevant global object=] is |window|:
1. If |transport|.{{[[State]]}} is `"connected"`, set |transport|.{{[[State]]}} to `"failed"`
and [=session/terminate=] |transport|.{{[[Session]]}} [=in parallel=].
1. If |transport|.{{[[State]]}} is `"connected"`, then:
1. Set |transport|.{{[[State]]}} to `"failed"`.
1. [=In parallel=], [=session/terminate=] |transport|.{{[[Session]]}}.
1. [=Queue a network task=] with |transport| to run the following steps:
1. Let |error| be a newly [=DOMException/created=] {{WebTransportError}} whose
{{WebTransportErrorOptions/source}} is `"session"`.
1. [=Cleanup=] |transport| with |error|.
1. If |transport|.{{[[State]]}} is `"connecting"`, set |transport|.{{[[State]]}} to
`"failed"`.

Expand Down

0 comments on commit ef93226

Please sign in to comment.