- From: poot <cvsmail@w3.org>
- Date: Thu, 18 Feb 2010 11:02:13 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Make timeouts and intervals survive a history traversal that unloads the document, but only if the document isn't actually disacarded. (whatwg r4770) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3817&r2=1.3818&f=h http://html5.org/tools/web-apps-tracker?from=4769&to=4770 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.3817 retrieving revision 1.3818 diff -u -d -r1.3817 -r1.3818 --- Overview.html 18 Feb 2010 01:57:14 -0000 1.3817 +++ Overview.html 18 Feb 2010 02:02:01 -0000 1.3818 @@ -40079,7 +40079,10 @@ <code>Document</code></dfn>, the user agent must run the following steps:</p> - <ol><li><p>Run any <a href="#unloading-document-cleanup-steps">unloading document cleanup steps</a> for + <ol><li><p>Set the <code><a href="#document">Document</a></code>'s <var title="concept-document-salvageable">salvageable</var> state to + false.</li> + + <li><p>Run any <a href="#unloading-document-cleanup-steps">unloading document cleanup steps</a> for the <code><a href="#document">Document</a></code> that are defined by this specification or any other relevant specifications.</li> @@ -42431,8 +42434,8 @@ </div><h4 id="unloading-documents"><span class="secno">5.5.10 </span>Unloading documents</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><div class="impl"> - <p>A <code><a href="#document">Document</a></code> has a <var title="">salvageable</var> - state, which is initially true.</p> + <p>A <code><a href="#document">Document</a></code> has a <var title="concept-document-salvageable">salvageable</var> state, which + is initially true.</p> <p>When a user agent is to <dfn id="prompt-to-unload-a-document">prompt to unload a document</dfn>, it must run the following steps.</p> @@ -42447,7 +42450,8 @@ <li><p>Release the <a href="#storage-mutex">storage mutex</a>.</li> <li><p>If any event listeners were triggered by the earlier - <i>dispatch</i> step, then set the <code><a href="#document">Document</a></code>'s <var title="">salvageable</var> state to false.</li> + <i>dispatch</i> step, then set the <code><a href="#document">Document</a></code>'s <var title="concept-document-salvageable">salvageable</var> state to + false.</li> <li> @@ -42493,10 +42497,10 @@ document to be unloaded">refused to allow <em>this</em> document to be unloaded</a>; abort these steps.</p> - <li><p>If <var title="">salvageable</var> state of the - <a href="#active-document">active document</a> of the <a href="#browsing-context">browsing context</a> - <var title="">b</var> is false, then set the <var title="">salvageable</var> state of <em>this</em> document to - false also.</li> + <li><p>If <var title="concept-document-salvageable">salvageable</var> state of + the <a href="#active-document">active document</a> of the <a href="#browsing-context">browsing + context</a> <var title="">b</var> is false, then set the <var title="concept-document-salvageable">salvageable</var> state of + <em>this</em> document to false also.</li> </ol></li> @@ -42516,7 +42520,8 @@ <li><p>If any event listeners were triggered by the earlier <i>unload event</i> step, then set the <code><a href="#document">Document</a></code> - object's <var title="">salvageable</var> state to false.</li> + object's <var title="concept-document-salvageable">salvageable</var> state to + false.</li> <li><p>Run any <a href="#unloading-document-cleanup-steps">unloading document cleanup steps</a> for <code><a href="#document">Document</a></code> that are defined by this specification or any @@ -42542,42 +42547,44 @@ <var title="">b</var> with the <var title="">recycle</var> parameter set to false.</li> - <li><p>If <var title="">salvageable</var> state of the - <a href="#active-document">active document</a> of the <a href="#browsing-context">browsing context</a> - <var title="">b</var> is false, then set the <var title="">salvageable</var> state of <em>this</em> document to - false also.</li> + <li><p>If <var title="concept-document-salvageable">salvageable</var> state of + the <a href="#active-document">active document</a> of the <a href="#browsing-context">browsing + context</a> <var title="">b</var> is false, then set the <var title="concept-document-salvageable">salvageable</var> state of + <em>this</em> document to false also.</li> </ol></li> - <li><p>If <var title="">salvageable</var> and <var title="">recycle</var> are both false, then the + <li><p>If <var title="concept-document-salvageable">salvageable</var> and <var title="">recycle</var> are both false, then the <code><a href="#document">Document</a></code>'s <a href="#browsing-context">browsing context</a> must <a href="#discard-a-document" title="discard a document">discard the <code>Document</code></a>.</li> </ol><p>This specification defines the following <dfn id="unloading-document-cleanup-steps">unloading document cleanup steps</dfn>. Other specifications can define more.</p> - <ol><li><p>Empty the <code><a href="#document">Document</a></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> <!-- XXX Should this affect <var - title="">salvageable</var>? Should it happen at all? --> - - <li><p>If there are any outstanding transactions that have + <ol><li><p>If there are any outstanding transactions that have callbacks that involve <a href="#concept-script" title="concept-script">scripts</a> whose <a href="#script-s-global-object" title="script's global object">global object</a> is the <code><a href="#document">Document</a></code>'s <code><a href="#window">Window</a></code> object, roll them - back (without invoking any of the callbacks) and set <var title="">salvageable</var> to false. - <a href="#refsWEBSQL">[WEBSQL]</a> - </li> + back (without invoking any of the callbacks) and set the + <code><a href="#document">Document</a></code>'s <var title="concept-document-salvageable">salvageable</var> state to + false. <a href="#refsWEBSQL">[WEBSQL]</a> </li> <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><a href="#document">Document</a></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. + affected any <code>WebSocket</code> objects, the set + <code><a href="#document">Document</a></code>'s <var title="concept-document-salvageable">salvageable</var> state to + false. <a href="#refsWEBSOCKET">[WEBSOCKET]</a> </li> + <li><p>If the <code><a href="#document">Document</a></code>'s <var title="concept-document-salvageable">salvageable</var> state is + false, empty the <code><a href="#document">Document</a></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> + </ol><h5 id="event-definition"><span class="secno">5.5.10.1 </span>Event definition</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p> </div><pre class="idl">interface <dfn id="beforeunloadevent">BeforeUnloadEvent</dfn> : Event {
Received on Thursday, 18 February 2010 02:02:42 UTC