[html5] r7370 - [giow] (3) Step one to making navigation and traversal saner: Just flat out prev [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Sep 18 14:33:29 PDT 2012


Author: ianh
Date: 2012-09-18 14:33:27 -0700 (Tue, 18 Sep 2012)
New Revision: 7370

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Step one to making navigation and traversal saner: Just flat out prevent 'unload' from ever firing twice in a browsing context.
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2012-09-17 23:59:05 UTC (rev 7369)
+++ complete.html	2012-09-18 21:33:27 UTC (rev 7370)
@@ -246,7 +246,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 17 September 2012</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 18 September 2012</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -71767,7 +71767,8 @@
   <div class=impl>
 
   <p>A <code><a href=#document>Document</a></code> has a <dfn id=concept-document-salvageable title=concept-document-salvageable><var>salvageable</var></dfn>
-  state, which must initially be true.</p>
+  state, which must initially be true, and a <dfn id=fired-unload>fired unload</dfn>
+  flag, which must initially be false.</p>
 
   <p><a href=#event-loop title="event loop">Event loops</a> have a
   <dfn id=termination-nesting-level>termination nesting level</dfn> counter, which must initially
@@ -71883,8 +71884,9 @@
 
    </li>
 
-   <li><p><i>Unload event</i>: <a href=#fire-a-simple-event>Fire a simple event</a> named
-   <code title=event-unload>unload</code> at the
+   <li><p><i>Unload event</i>: If the <code><a href=#document>Document</a></code>'s
+   <a href=#fired-unload>fired unload</a> flag is false, <a href=#fire-a-simple-event>fire a simple
+   event</a> named <code title=event-unload>unload</code> at the
    <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object.</li>
 
    <li><p>Decrease the <a href=#event-loop>event loop</a>'s <a href=#termination-nesting-level>termination
@@ -71895,7 +71897,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=concept-document-salvageable><a href=#concept-document-salvageable>salvageable</a></var> state to
-   false.</li>
+   false and set the <code><a href=#document>Document</a></code>'s <a href=#fired-unload>fired unload</a>
+   flag to true.</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 and

Modified: index
===================================================================
--- index	2012-09-17 23:59:05 UTC (rev 7369)
+++ index	2012-09-18 21:33:27 UTC (rev 7370)
@@ -246,7 +246,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 17 September 2012</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 18 September 2012</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -71767,7 +71767,8 @@
   <div class=impl>
 
   <p>A <code><a href=#document>Document</a></code> has a <dfn id=concept-document-salvageable title=concept-document-salvageable><var>salvageable</var></dfn>
-  state, which must initially be true.</p>
+  state, which must initially be true, and a <dfn id=fired-unload>fired unload</dfn>
+  flag, which must initially be false.</p>
 
   <p><a href=#event-loop title="event loop">Event loops</a> have a
   <dfn id=termination-nesting-level>termination nesting level</dfn> counter, which must initially
@@ -71883,8 +71884,9 @@
 
    </li>
 
-   <li><p><i>Unload event</i>: <a href=#fire-a-simple-event>Fire a simple event</a> named
-   <code title=event-unload>unload</code> at the
+   <li><p><i>Unload event</i>: If the <code><a href=#document>Document</a></code>'s
+   <a href=#fired-unload>fired unload</a> flag is false, <a href=#fire-a-simple-event>fire a simple
+   event</a> named <code title=event-unload>unload</code> at the
    <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object.</li>
 
    <li><p>Decrease the <a href=#event-loop>event loop</a>'s <a href=#termination-nesting-level>termination
@@ -71895,7 +71897,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=concept-document-salvageable><a href=#concept-document-salvageable>salvageable</a></var> state to
-   false.</li>
+   false and set the <code><a href=#document>Document</a></code>'s <a href=#fired-unload>fired unload</a>
+   flag to true.</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 and

Modified: source
===================================================================
--- source	2012-09-17 23:59:05 UTC (rev 7369)
+++ source	2012-09-18 21:33:27 UTC (rev 7370)
@@ -83883,7 +83883,8 @@
 
   <p>A <code>Document</code> has a <dfn
   title="concept-document-salvageable"><var>salvageable</var></dfn>
-  state, which must initially be true.</p>
+  state, which must initially be true, and a <dfn>fired unload</dfn>
+  flag, which must initially be false.</p>
 
   <p><span title="event loop">Event loops</span> have a
   <dfn>termination nesting level</dfn> counter, which must initially
@@ -84019,8 +84020,9 @@
 
    </li>
 
-   <li><p><i>Unload event</i>: <span>Fire a simple event</span> named
-   <code title="event-unload">unload</code> at the
+   <li><p><i>Unload event</i>: If the <code>Document</code>'s
+   <span>fired unload</span> flag is false, <span>fire a simple
+   event</span> named <code title="event-unload">unload</code> at the
    <code>Document</code>'s <code>Window</code> object.</p></li>
 
    <li><p>Decrease the <span>event loop</span>'s <span>termination
@@ -84032,7 +84034,8 @@
    <i>unload event</i> step, then set the <code>Document</code>
    object's <var
    title="concept-document-salvageable">salvageable</var> state to
-   false.</p></li>
+   false and set the <code>Document</code>'s <span>fired unload</span>
+   flag to true.</p></li>
 
    <li><p>Run any <span>unloading document cleanup steps</span> for
    <code>Document</code> that are defined by this specification and




More information about the Commit-Watchers mailing list