[html5] r4501 - [giow] (0) Shut down WebSocket when a document is unloaded. Add a hook for XHR t [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jan 5 20:47:48 PST 2010


Author: ianh
Date: 2010-01-05 20:47:43 -0800 (Tue, 05 Jan 2010)
New Revision: 4501

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Shut down WebSocket when a document is unloaded. Add a hook for XHR to do the same.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8435

Modified: complete.html
===================================================================
--- complete.html	2010-01-06 03:52:20 UTC (rev 4500)
+++ complete.html	2010-01-06 04:47:43 UTC (rev 4501)
@@ -56480,8 +56480,18 @@
 
    <li><p>Empty the <code>Document</code>'s <code><a href=#window>Window</a></code>'s
    <a href=#list-of-active-timeouts>list of active timeouts</a> and its <a href=#list-of-active-intervals>list of active
-   intervals</a>.</li>
+   intervals</a>.</li> <!-- should this affect var
+   title="">salvageable</var>? -->
 
+   <li><p><a href=#close-the-web-socket-connection>Close the Web Socket connection</a> of any
+   <code><a href=#websocket>WebSocket</a></code> objects that were created by the <code title=dom-WebSocket><a href=#dom-websocket>WebSocket()</a></code> constructor visible on the
+   <code>Document</code>'s <code><a href=#window>Window</a></code> object. If this
+   affected any <code><a href=#websocket>WebSocket</a></code> objects, set <var title="">salvageable</var> to false.</li>
+
+   <li><p>Run any <dfn id=unloading-document-cleanup-steps>unloading document cleanup steps</dfn> for
+   <code>Document</code> that are defined by any other relevant
+   specifications.</li>
+
    <li><p>If this algorithm was invoked by another instance of the
    "unload a document" algorithm (i.e. through the steps below that
    invoke this algorithm for all descendant browsing contexts), then

Modified: index
===================================================================
--- index	2010-01-06 03:52:20 UTC (rev 4500)
+++ index	2010-01-06 04:47:43 UTC (rev 4501)
@@ -53654,8 +53654,18 @@
 
    <li><p>Empty the <code>Document</code>'s <code><a href=#window>Window</a></code>'s
    <a href=#list-of-active-timeouts>list of active timeouts</a> and its <a href=#list-of-active-intervals>list of active
-   intervals</a>.</li>
+   intervals</a>.</li> <!-- should this affect var
+   title="">salvageable</var>? -->
 
+   <li><p><span>Close the Web Socket connection</span> of any
+   <code>WebSocket</code> objects that were created by the <code title=dom-WebSocket>WebSocket()</code> constructor visible on the
+   <code>Document</code>'s <code><a href=#window>Window</a></code> object. If this
+   affected any <code>WebSocket</code> objects, set <var title="">salvageable</var> to false.</li>
+
+   <li><p>Run any <dfn id=unloading-document-cleanup-steps>unloading document cleanup steps</dfn> for
+   <code>Document</code> that are defined by any other relevant
+   specifications.</li>
+
    <li><p>If this algorithm was invoked by another instance of the
    "unload a document" algorithm (i.e. through the steps below that
    invoke this algorithm for all descendant browsing contexts), then

Modified: source
===================================================================
--- source	2010-01-06 03:52:20 UTC (rev 4500)
+++ source	2010-01-06 04:47:43 UTC (rev 4501)
@@ -63783,8 +63783,20 @@
 
    <li><p>Empty the <code>Document</code>'s <code>Window</code>'s
    <span>list of active timeouts</span> and its <span>list of active
-   intervals</span>.</p></li>
+   intervals</span>.</p></li> <!-- should this affect var
+   title="">salvageable</var>? -->
 
+   <li><p><span>Close the Web Socket connection</span> of any
+   <code>WebSocket</code> objects that were created by the <code
+   title="dom-WebSocket">WebSocket()</code> constructor visible on the
+   <code>Document</code>'s <code>Window</code> object. If this
+   affected any <code>WebSocket</code> objects, set <var
+   title="">salvageable</var> to false.</p></li>
+
+   <li><p>Run any <dfn>unloading document cleanup steps</dfn> for
+   <code>Document</code> that are defined by any other relevant
+   specifications.</p></li>
+
    <li><p>If this algorithm was invoked by another instance of the
    "unload a document" algorithm (i.e. through the steps below that
    invoke this algorithm for all descendant browsing contexts), then




More information about the Commit-Watchers mailing list