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 #6856

Closed
wants to merge 5 commits into from
Closed
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
35 changes: 35 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4080,6 +4080,18 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x-href="https://w3c.github.io/manifest/#dfn-processing-a-manifest">process the manifest</dfn></li>
</ul>
</dd>

<dt>WebTransport</dt>
<dd>
<p>The following features are defined in <cite>WebTransport</cite>: <ref spec=WEBTRANSPORT></p>

<ul class="brief">
<li><dfn data-x="webtransport-session-terminate" data-x-href="https://w3c.github.io/webtransport/#session-terminate">terminate</dfn></li>
<li><dfn data-x="webtransport-state" data-x-href="https://w3c.github.io/webtransport/#webtransport-state">[[State]]</dfn></li>
<li><dfn data-x="webtransport-session" data-x-href="https://w3c.github.io/webtransport/#webtransport-session">[[Session]]</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/webtransport/#webtransport"><code>WebTransport</code></dfn></li>
</ul>
</dd>
</dl>

<hr>
Expand Down Expand Up @@ -88485,6 +88497,26 @@ dictionary <dfn dictionary>PageTransitionEventInit</dfn> : <span>EventInit</span
data-x="concept-document-salvageable">salvageable</i> state to false.</p>
</li>

<li>
<p>For each <code>WebTransport</code> object <var>transport</var> whose <span>relevant global
object</span> is <var>window</var>, run these steps:</p>

<ol>
<li><p>If <var>transport</var>'s <span data-x="webtransport-state">[[State]]</span> is
<code data-x="">"connected"</code>, set <var>transport</var>'s
<span data-x="webtransport-state">[[State]]</span> to <code data-x="">"failed"</code> and <span
data-x="webtransport-session-terminate">terminate</span> <var>transport</var>'s
<span data-x="webtransport-session">[[Session]]</span> <span>in parallel</span>.</p></li>

<li><p>If <var>transport</var>'s <span data-x="webtransport-state">[[State]]</span> is
<code data-x="">"connecting"</code>, set <var>transport</var>'s
<span data-x="webtransport-state">[[State]]</span> to <code data-x="">"failed"</code>.</p></li>
</ol>

<p><span class="XXX">This needs to be done in workers too. See
<a href="https://github.com/whatwg/html/issues/6831">#6831</a>.</span></p>
</li>

<li>
<p>If <var>document</var>'s <i data-x="concept-document-salvageable">salvageable</i>
state is false, then:</p>
Expand Down Expand Up @@ -124968,6 +125000,9 @@ INSERT INTERFACES HERE
<dt id="refsWEBMCG">[WEBMCG]</dt>
<dd><cite><a href="https://www.webmproject.org/docs/container/">WebM Container Guidelines</a></cite>. The WebM Project.</dd>

<dt id="refsWEBTRANSPORT">[WEBTRANSPORT]</dt>
<dd><cite><a href="https://w3c.github.io/webtransport">WebTransport</a></cite>, Bernard Aboda, Victor Vasiliev, Yutaka Hirano. W3C.</dd>

<dt id="refsWEBVTT">[WEBVTT]</dt>
<dd><cite><a href="https://w3c.github.io/webvtt/">WebVTT</a></cite>, S. Pieters. W3C.</dd>

Expand Down