hixie: Shut down WebSocket when a document is unloaded. Add a hook for XHR to do the same. (whatwg r4501)

hixie: Shut down WebSocket when a document is unloaded. Add a hook for
XHR to do the same. (whatwg r4501)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3600&r2=1.3601&f=h
http://html5.org/tools/web-apps-tracker?from=4500&to=4501

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3600
retrieving revision 1.3601
diff -u -d -r1.3600 -r1.3601
--- Overview.html 6 Jan 2010 03:52:28 -0000 1.3600
+++ Overview.html 6 Jan 2010 04:50:06 -0000 1.3601
@@ -48207,7 +48207,17 @@
 
    <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

Received on Wednesday, 6 January 2010 04:50:49 UTC