[html5] r1543 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue May 6 20:27:24 PDT 2008


Author: ianh
Date: 2008-05-06 20:27:23 -0700 (Tue, 06 May 2008)
New Revision: 1543

Modified:
   index
   source
Log:
[e] (0) make some notes about what needs to happen with events, timers, etc, when a page is navigated.

Modified: index
===================================================================
--- index	2008-05-07 03:18:49 UTC (rev 1542)
+++ index	2008-05-07 03:27:23 UTC (rev 1543)
@@ -30757,7 +30757,7 @@
    See the section on the <code title=event-load><a
    href="#load0">load</a></code> and <code title=event-unload>unload</code>
    events for more details.</p>
-  <!-- XXX crossref! -->
+  <!-- XXX crossref! XXXDISCARD -->
 
   <p>Entries that have had their DOM discarded must, for the purposes of the
    algorithms given below, act as if they had not. When the user or script
@@ -30779,6 +30779,10 @@
    there are no state object entries for that <code>Document</code> object
    then no entries are removed.
 
+  <p class=big-issue><!--XXXDISCARD--> when an entry is discarded, any frozen
+   timers, intervals, XMLHttpRequests, database transactions, etc, must be
+   killed
+
   <h4 id=the-history><span class=secno>4.8.2 </span>The <code><a
    href="#history1">History</a></code> interface</h4>
 
@@ -30849,6 +30853,9 @@
      entry</a> then the user agent must run the following substeps:</p>
 
     <ol>
+     <li class=big-issue>freeze any timers, intervals, XMLHttpRequests,
+      database transactions, etc
+
      <li>The user agent must move any properties that have been added to the
       browsing context's default view's <code><a
       href="#window">Window</a></code> object to the <a href="#active">active
@@ -30900,6 +30907,9 @@
       <a href="#active">active document</a>'s <code>Document</code>'s <a
       href="#list-of2">list of added properties</a> to browsing context's
       default view's <code><a href="#window">Window</a></code> object.
+
+     <li class=big-issue>unfreeze any timers, intervals, XMLHttpRequests,
+      database transactions, etc
     </ol>
 
    <li>
@@ -31485,12 +31495,19 @@
     <p class=big-issue>pause for scripts
 
    <li>
-    <p class=big-issue>onbeforeunload
+    <p class=big-issue>onbeforeunload, and if present set flag that we will
+     kill document
 
    <li>
-    <p class=big-issue>onunload
+    <p class=big-issue>onunload, and if present set flag that we will kill
+     document
 
    <li>
+    <p class=big-issue>if flag is set: reset timers, empty event queue, kill
+     any pending transactions, kill XMLHttpRequests, etc, and set things up
+     so that the document will be discarded asap <!--XXXDISCARD-->
+
+   <li>
     <dl>
      <dt>If the navigation was initiated for <dfn id=entry>entry update</dfn>
       of an entry

Modified: source
===================================================================
--- source	2008-05-07 03:18:49 UTC (rev 1542)
+++ source	2008-05-07 03:27:23 UTC (rev 1543)
@@ -28606,7 +28606,7 @@
   agents should discard pages' DOMs and when they should cache
   them. See the section on the <code title="event-load">load</code>
   and <code title="event-unload">unload</code> events for more
-  details.</p> <!-- XXX crossref! -->
+  details.</p> <!-- XXX crossref! XXXDISCARD -->
 
   <p>Entries that have had their DOM discarded must, for the purposes
   of the algorithms given below, act as if they had not. When the user
@@ -28629,7 +28629,11 @@
   navigates back to the page. If there are no state object entries for
   that <code>Document</code> object then no entries are removed.</p>
 
+  <p class="big-issue"><!--XXXDISCARD--> when an entry is discarded,
+  any frozen timers, intervals, XMLHttpRequests, database
+  transactions, etc, must be killed </p>
 
+
   <h4>The <code>History</code> interface</h4>
 
   <pre class="idl">interface <dfn>History</dfn> {
@@ -28698,6 +28702,9 @@
 
     <ol>
 
+     <li class="big-issue">freeze any timers, intervals,
+     XMLHttpRequests, database transactions, etc</li>
+
      <li>The user agent must move any properties that have been added
      to the browsing context's default view's <code>Window</code>
      object to the <span>active document</span>'s
@@ -28760,6 +28767,9 @@
      <span>list of added properties</span> to browsing context's
      default view's <code>Window</code> object.</li>
 
+     <li class="big-issue">unfreeze any timers, intervals,
+     XMLHttpRequests, database transactions, etc</li>
+
     </ol>
 
    </li>
@@ -29337,10 +29347,15 @@
 
    <li><p class="big-issue">pause for scripts</p></li>
 
-   <li><p class="big-issue">onbeforeunload</p></li>
+   <li><p class="big-issue">onbeforeunload, and if present set flag that we will kill document</p></li>
 
-   <li><p class="big-issue">onunload</p></li>
+   <li><p class="big-issue">onunload, and if present set flag that we will kill document</p></li>
 
+   <li><p class="big-issue">if flag is set: reset timers, empty event
+   queue, kill any pending transactions, kill XMLHttpRequests, etc,
+   and set things up so that the document will be discarded asap
+   <!--XXXDISCARD--></p></li>
+
    <li>
 
     <dl>




More information about the Commit-Watchers mailing list