[html5] r6164 - [giow] (0) Make it so that p.remoteStreams cannot change after a call to close().

whatwg at whatwg.org whatwg at whatwg.org
Tue May 31 16:24:02 PDT 2011


Author: ianh
Date: 2011-05-31 16:24:00 -0700 (Tue, 31 May 2011)
New Revision: 6164

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Make it so that p.remoteStreams cannot change after a call to close().

Modified: complete.html
===================================================================
--- complete.html	2011-05-31 22:47:19 UTC (rev 6163)
+++ complete.html	2011-05-31 23:24:00 UTC (rev 6164)
@@ -75193,11 +75193,24 @@
    attribute to the value of the SDP Label attribute for that
    component's media stream.</li>
 
-   <li><p><a href=#queue-a-task>Queue a task</a> to add the newly created
-   <code><a href=#stream>Stream</a></code> object to the end of <var title="">connection</var>'s <code title=dom-PeerConnection-remoteStreams><a href=#dom-peerconnection-remotestreams>remoteStreams</a></code>
-   array, then <a href=#fire-a-stream-event>fire a stream event</a> named <code title=event-stream-addstream><a href=#event-stream-addstream>addstream</a></code> with the newly
-   created <code><a href=#stream>Stream</a></code> object at the <var title="">connection</var> object.</li>
+   <li>
 
+    <p><a href=#queue-a-task>Queue a task</a> to run the following substeps:</p>
+
+    <ol><li><p>If the <var title="">connection</var>'s
+     <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), abort these
+     steps.</li> <!-- close() was probably called just before this
+     task ran -->
+
+     <li><p>Add the newly created <code><a href=#stream>Stream</a></code> object to the
+     end of <var title="">connection</var>'s <code title=dom-PeerConnection-remoteStreams><a href=#dom-peerconnection-remotestreams>remoteStreams</a></code>
+     array.</li>
+
+     <li><p><a href=#fire-a-stream-event>Fire a stream event</a> named <code title=event-stream-addstream><a href=#event-stream-addstream>addstream</a></code> with the newly
+     created <code><a href=#stream>Stream</a></code> object at the <var title="">connection</var> object.</li>
+
+    </ol></li>
+
   </ol><p>When a <a href=#peerconnection-ice-agent><code>PeerConnection</code> ICE Agent</a> finds
   that a stream from the remote peer has been removed (its port has
   been set to zero in a media description sent on the signaling
@@ -75211,10 +75224,23 @@
    object that represents the media stream being removed, if any. If
    there isn't one, then abort these steps.</li>
 
-   <li><p><a href=#queue-a-task>Queue a task</a> to remove <var title="">stream</var> from <var title="">connection</var>'s <code title=dom-PeerConnection-remoteStreams><a href=#dom-peerconnection-remotestreams>remoteStreams</a></code>
-   array, then <a href=#fire-a-stream-event>fire a stream event</a> named <code title=event-stream-removestream><a href=#event-stream-removestream>removestream</a></code> with <var title="">stream</var> at the <var title="">connection</var>
-   object.</li>
+   <li>
 
+    <p><a href=#queue-a-task>Queue a task</a> to run the following substeps:</p>
+
+    <ol><li><p>If the <var title="">connection</var>'s
+     <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), abort these
+     steps.</li> <!-- close() was probably called just before this
+     task ran -->
+
+     <li><p>Remove <var title="">stream</var> from <var title="">connection</var>'s <code title=dom-PeerConnection-remoteStreams><a href=#dom-peerconnection-remotestreams>remoteStreams</a></code>
+     array.</li>
+
+     <li><p><a href=#fire-a-stream-event>Fire a stream event</a> named <code title=event-stream-removestream><a href=#event-stream-removestream>removestream</a></code> with <var title="">stream</var> at the <var title="">connection</var>
+     object.</li>
+
+    </ol></li>
+
   </ol><p>When the <dfn id=dom-peerconnection-signalingmessage title=dom-PeerConnection-signalingMessage><code title="">signalingMessage()</code></dfn> method is invoked, the
   user agent must run the following steps:</p>
 

Modified: index
===================================================================
--- index	2011-05-31 22:47:19 UTC (rev 6163)
+++ index	2011-05-31 23:24:00 UTC (rev 6164)
@@ -75208,11 +75208,24 @@
    attribute to the value of the SDP Label attribute for that
    component's media stream.</li>
 
-   <li><p><a href=#queue-a-task>Queue a task</a> to add the newly created
-   <code><a href=#stream>Stream</a></code> object to the end of <var title="">connection</var>'s <code title=dom-PeerConnection-remoteStreams><a href=#dom-peerconnection-remotestreams>remoteStreams</a></code>
-   array, then <a href=#fire-a-stream-event>fire a stream event</a> named <code title=event-stream-addstream><a href=#event-stream-addstream>addstream</a></code> with the newly
-   created <code><a href=#stream>Stream</a></code> object at the <var title="">connection</var> object.</li>
+   <li>
 
+    <p><a href=#queue-a-task>Queue a task</a> to run the following substeps:</p>
+
+    <ol><li><p>If the <var title="">connection</var>'s
+     <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), abort these
+     steps.</li> <!-- close() was probably called just before this
+     task ran -->
+
+     <li><p>Add the newly created <code><a href=#stream>Stream</a></code> object to the
+     end of <var title="">connection</var>'s <code title=dom-PeerConnection-remoteStreams><a href=#dom-peerconnection-remotestreams>remoteStreams</a></code>
+     array.</li>
+
+     <li><p><a href=#fire-a-stream-event>Fire a stream event</a> named <code title=event-stream-addstream><a href=#event-stream-addstream>addstream</a></code> with the newly
+     created <code><a href=#stream>Stream</a></code> object at the <var title="">connection</var> object.</li>
+
+    </ol></li>
+
   </ol><p>When a <a href=#peerconnection-ice-agent><code>PeerConnection</code> ICE Agent</a> finds
   that a stream from the remote peer has been removed (its port has
   been set to zero in a media description sent on the signaling
@@ -75226,10 +75239,23 @@
    object that represents the media stream being removed, if any. If
    there isn't one, then abort these steps.</li>
 
-   <li><p><a href=#queue-a-task>Queue a task</a> to remove <var title="">stream</var> from <var title="">connection</var>'s <code title=dom-PeerConnection-remoteStreams><a href=#dom-peerconnection-remotestreams>remoteStreams</a></code>
-   array, then <a href=#fire-a-stream-event>fire a stream event</a> named <code title=event-stream-removestream><a href=#event-stream-removestream>removestream</a></code> with <var title="">stream</var> at the <var title="">connection</var>
-   object.</li>
+   <li>
 
+    <p><a href=#queue-a-task>Queue a task</a> to run the following substeps:</p>
+
+    <ol><li><p>If the <var title="">connection</var>'s
+     <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), abort these
+     steps.</li> <!-- close() was probably called just before this
+     task ran -->
+
+     <li><p>Remove <var title="">stream</var> from <var title="">connection</var>'s <code title=dom-PeerConnection-remoteStreams><a href=#dom-peerconnection-remotestreams>remoteStreams</a></code>
+     array.</li>
+
+     <li><p><a href=#fire-a-stream-event>Fire a stream event</a> named <code title=event-stream-removestream><a href=#event-stream-removestream>removestream</a></code> with <var title="">stream</var> at the <var title="">connection</var>
+     object.</li>
+
+    </ol></li>
+
   </ol><p>When the <dfn id=dom-peerconnection-signalingmessage title=dom-PeerConnection-signalingMessage><code title="">signalingMessage()</code></dfn> method is invoked, the
   user agent must run the following steps:</p>
 

Modified: source
===================================================================
--- source	2011-05-31 22:47:19 UTC (rev 6163)
+++ source	2011-05-31 23:24:00 UTC (rev 6164)
@@ -86001,15 +86001,32 @@
    attribute to the value of the SDP Label attribute for that
    component's media stream.</p></li>
 
-   <li><p><span>Queue a task</span> to add the newly created
-   <code>Stream</code> object to the end of <var
-   title="">connection</var>'s <code
-   title="dom-PeerConnection-remoteStreams">remoteStreams</code>
-   array, then <span>fire a stream event</span> named <code
-   title="event-stream-addstream">addstream</code> with the newly
-   created <code>Stream</code> object at the <var
-   title="">connection</var> object.</p></li>
+   <li>
 
+    <p><span>Queue a task</span> to run the following substeps:</p>
+
+    <ol>
+    
+     <li><p>If the <var title="">connection</var>'s
+     <span><code>PeerConnection</code> readiness state</span> is <code
+     title="dom-PeerConnection-CLOSED">CLOSED</code> (3), abort these
+     steps.</p></li> <!-- close() was probably called just before this
+     task ran -->
+
+     <li><p>Add the newly created <code>Stream</code> object to the
+     end of <var title="">connection</var>'s <code
+     title="dom-PeerConnection-remoteStreams">remoteStreams</code>
+     array.</p></li>
+
+     <li><p><span>Fire a stream event</span> named <code
+     title="event-stream-addstream">addstream</code> with the newly
+     created <code>Stream</code> object at the <var
+     title="">connection</var> object.</p></li>
+
+    </ol>
+
+   </li>
+
   </ol>
 
   <p>When a <span><code>PeerConnection</code> ICE Agent</span> finds
@@ -86027,14 +86044,32 @@
    object that represents the media stream being removed, if any. If
    there isn't one, then abort these steps.</p></li>
 
-   <li><p><span>Queue a task</span> to remove <var
-   title="">stream</var> from <var title="">connection</var>'s <code
-   title="dom-PeerConnection-remoteStreams">remoteStreams</code>
-   array, then <span>fire a stream event</span> named <code
-   title="event-stream-removestream">removestream</code> with <var
-   title="">stream</var> at the <var title="">connection</var>
-   object.</p></li>
+   <li>
 
+    <p><span>Queue a task</span> to run the following substeps:</p>
+
+    <ol>
+    
+     <li><p>If the <var title="">connection</var>'s
+     <span><code>PeerConnection</code> readiness state</span> is <code
+     title="dom-PeerConnection-CLOSED">CLOSED</code> (3), abort these
+     steps.</p></li> <!-- close() was probably called just before this
+     task ran -->
+
+     <li><p>Remove <var title="">stream</var> from <var
+     title="">connection</var>'s <code
+     title="dom-PeerConnection-remoteStreams">remoteStreams</code>
+     array.</p></li>
+
+     <li><p><span>Fire a stream event</span> named <code
+     title="event-stream-removestream">removestream</code> with <var
+     title="">stream</var> at the <var title="">connection</var>
+     object.</p></li>
+
+    </ol>
+
+   </li>
+
   </ol>
 
   <p>When the <dfn title="dom-PeerConnection-signalingMessage"><code




More information about the Commit-Watchers mailing list