Skip to content

Commit

Permalink
Merge pull request #1621 from w3c/yet-another-patchv42
Browse files Browse the repository at this point in the history
pc.close() should close Data Channels and SctpTransports
  • Loading branch information
alvestrand committed Oct 12, 2017
2 parents 910b47d + b5b8c81 commit 7d699ff
Showing 1 changed file with 31 additions and 24 deletions.
55 changes: 31 additions & 24 deletions webrtc.html
Expand Up @@ -1502,9 +1502,8 @@ <h4>Set the RTCSessionDescription</h4>
an ID could not be generated.</p>
</li>
<li>
<p>Set <var>channel</var>'s <code><a data-for=
"RTCDataChannel">readyState</a></code> attribute to
<code>"closed"</code>.</p>
<p>Set <var>channel</var>'s <a>[[\ReadyState]]</a> slot
to <code>"closed"</code>.</p>
</li>
<li>
<p>Fire an event named <code><a data-for=
Expand Down Expand Up @@ -2863,6 +2862,18 @@ <h2>Methods</h2>
</li>
</ol>
</li>
<li>
<p>Set the <a>[[\ReadyState]]</a> slot of each of
<var>connection</var>'s <code><a>RTCDataChannel</a></code>s
to <code><a data-link-for=
"RTCDataChannelState">"closed"</a></code>.</p>
</li>
<li>
<p>Set the <a>[[\SctpTransportState]]</a> slot of each of
<var>connection</var>'s <code><a>RTCSctpTransport</a></code>s
to <code><a data-link-for=
"RTCSctpTransportState">"closed"</a></code>.</p>
</li>
<li>
<p>Set the <a>[[\DtlsTransportState]]</a> slot of each of
<var>connection</var>'s <code><a>RTCDtlsTransport</a></code>s
Expand Down Expand Up @@ -7918,6 +7929,10 @@ <h2>Methods</h2>
<code>maxPacketLifeTime</code> member, if present, otherwise
<code>null</code>.</p>
</li>
<li>
<p>Let <var>channel</var> have a <dfn>[[\ReadyState]</dfn> internal slot
initialized to <code>"connecting"</code>.</p>
</li>
<li>
<p>Let <var>channel</var> have a <dfn>[[\MaxRetransmits]]</dfn> internal slot
initialized to <var>option</var>'s <code>maxRetransmits</code>
Expand Down Expand Up @@ -8125,8 +8140,7 @@ <h3><dfn>RTCDataChannel</dfn></h3>
object to be announced.</p>
</li>
<li>
<p>Set <var>channel</var>'s <code><a data-for=
"RTCDataChannel">readyState</a></code> attribute to
<p>Set <var>channel</var>'s <a>[[\ReadyState]]</a> slot to
<code>open</code>.</p>
</li>
<li>
Expand Down Expand Up @@ -8194,8 +8208,7 @@ <h3><dfn>RTCDataChannel</dfn></h3>
</table>
</li>
<li>
<p>Set <var>channel</var>'s <code><a data-for=
"RTCDataChannel">readyState</a></code> attribute to
<p>Set <var>channel</var>'s <a>[[\ReadyState]]</a> slot to
<code>connecting</code>.</p>
</li>
<li>
Expand All @@ -8209,8 +8222,7 @@ <h3><dfn>RTCDataChannel</dfn></h3>
<dfn id="data-transport-closing-procedure">closing procedure</dfn>. When
that happens the user agent MUST, unless the procedure was initiated by
the <code><a data-for="RTCDataChannel">close</a></code> method, queue a
task that sets the object's <code><a data-for=
"RTCDataChannel">readyState</a></code> attribute to <code>closing</code>.
task that sets the object's <a>[[\ReadyState]]</a> slot to <code>closing</code>.
This will eventually render the <a>data transport</a> <a>closed</a>.</p>
<p>When an <code><a>RTCDataChannel</a></code> object's <a>underlying data
transport</a> has been <dfn id="data-transport-closed">closed</dfn>, the
Expand All @@ -8222,8 +8234,7 @@ <h3><dfn>RTCDataChannel</dfn></h3>
closed.</p>
</li>
<li>
<p>Set <var>channel</var>'s <code><a data-for=
"RTCDataChannel">readyState</a></code> attribute to
<p>Set <var>channel</var>'s <a>[[\ReadyState]]</a> slot to
<code>closed</code>.</p>
</li>
<li>
Expand Down Expand Up @@ -8253,8 +8264,7 @@ <h3><dfn>RTCDataChannel</dfn></h3>
data transport</a>.</p>
</li>
<li>
<p>Set <var>channel</var>'s <code><a data-for=
"RTCDataChannel">readyState</a></code> attribute to
<p>Set <var>channel</var>'s <a>[[\ReadyState]]</a> slot to
<code>closed</code>.</p>
</li>
<li>
Expand Down Expand Up @@ -8386,8 +8396,8 @@ <h2>Attributes</h2>
<p>The <dfn id=
"dom-datachannel-readystate"><code>readyState</code></dfn>
attribute represents the state of the <code>RTCDataChannel</code>
object. It MUST return the value to which the user agent last set
it (as defined by the processing model algorithms).</p>
object. On getting, the attribute MUST return the value
of the <a>[[\ReadyState]]</a> slot.</p>
</dd>
<dt><code>bufferedAmount</code> of type <span class=
"idlAttrType"><a>unsigned long</a></span>, readonly</dt>
Expand Down Expand Up @@ -8487,14 +8497,12 @@ <h2>Methods</h2>
be closed.</p>
</li>
<li>
<p>If <var>channel</var>'s <code><a data-for=
"RTCDataChannel">readyState</a></code> is
<p>If <var>channel</var>'s <a>[[\ReadyState]]</a> slot is
<code>closing</code> or <code>closed</code>, then abort these
steps.</p>
</li>
<li>
<p>Set <var>channel</var>'s <code><a data-for=
"RTCDataChannel">readyState</a></code> attribute to
<p>Set <var>channel</var>'s <a>[[\ReadyState]]</a> slot to
<code>closing</code>.</p>
</li>
<li>
Expand Down Expand Up @@ -8611,8 +8619,7 @@ <h2>Dictionary <dfn>RTCDataChannelInit</dfn> Members</h2>
object on which data is to be sent.</p>
</li>
<li>
<p>If <var>channel</var>'s <a data-for=
"RTCDataChannel"><code>readyState</code></a> attribute is not
<p>If <var>channel</var>'s <a>[[\ReadyState]]</a> slot is not
<code>open</code>, <a>throw</a> an
<code>InvalidStateError</code>.</p>
</li>
Expand Down Expand Up @@ -8790,19 +8797,19 @@ <h3>Garbage Collection</h3>
collected if its</p>
<ul>
<li>
<p><code><a data-for="RTCDataChannel">readyState</a></code> is
<p><a>[[\ReadyState]]</a> slot is
<code>connecting</code> and at least one event listener is registered
for <code>open</code> events, <code>message</code> events,
<code>error</code> events, or <code>close</code> events.</p>
</li>
<li>
<p><code><a data-for="RTCDataChannel">readyState</a></code> is
<p><a>[[\ReadyState]]</a> slot is
<code>open</code> and at least one event listener is registered for
<code>message</code> events, <code>error</code> events, or
<code>close</code> events.</p>
</li>
<li>
<p><code><a data-for="RTCDataChannel">readyState</a></code> is
<p><<a>[[\ReadyState]]</a> slot is
<code>closing</code> and at least one event listener is registered
for <code>error</code> events, or <code>close</code> events.</p>
</li>
Expand Down

0 comments on commit 7d699ff

Please sign in to comment.