Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminate WebTransport sessions when unloading page #309

Merged
merged 3 commits into from
Jul 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,22 @@ run these steps:

</div>

## Context cleanup steps ## {#web-transport-context-cleanup-steps}

This specification defines [=unloading document cleanup steps=] as the following steps, given a
{{Document}} document:

1. Let |window| be |document|'s [=relevent global object=].
1. For each {{WebTransport}} |transport| whose [=relevent global object=] is |window|:
1. If |transport|'s [=[[State]]=] is `"connected"`, set |transport|'s [=[[State]]=] to `"failed"`
and [=session/terminate=] |transport|'s [=[[Session]]=] [=in parallel=].
1. If |transport|'s [=[[State]]=] is `"connecting"`, set |transport|'s [=[[State]]=] to
`"failed"`.

Issue: This needs to be done in workers too. See
<a href="https://www.github.com/w3c/webtransport/issues/127">#127</a> and
<a href="https://www.github.com/whatwg/html/issues/6831">whatwg/html#6731</a>.

## Configuration ## {#web-transport-configuration}

<pre class="idl">
Expand Down