[html5] r7109 - [giow] (2) Make things like history.back() and user back/forward get thoroughly [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed May 30 15:55:07 PDT 2012


Author: ianh
Date: 2012-05-30 15:55:06 -0700 (Wed, 30 May 2012)
New Revision: 7109

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Make things like history.back() and user back/forward get thoroughly aborted by other navigations, but scope it just to the current top-level browsing context, not all of them.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17066
Affected topics: DOM APIs, HTML, HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2012-05-30 21:51:42 UTC (rev 7108)
+++ complete.html	2012-05-30 22:55:06 UTC (rev 7109)
@@ -13873,7 +13873,9 @@
    </li>
 
    <li><p>Remove any <a href=#concept-task title=concept-task>tasks</a> queued by
-   the <a href=#history-traversal-task-source>history traversal task source</a>.</li>
+   the <a href=#history-traversal-task-source>history traversal task source</a> that are associated
+   with any <code><a href=#document>Document</a></code> objects in the <a href=#top-level-browsing-context>top-level
+   browsing context</a>'s <a href=#document-family>document family</a>.</li>
 
    <li>Remove any earlier entries that share the same
    <code><a href=#document>Document</a></code>.</li>
@@ -64460,7 +64462,18 @@
   then the <a href=#parent-browsing-context>parent browsing context</a> of its <a href=#nested-browsing-context>nested
   browsing context</a> will change.</p>
 
+  <p>The <dfn id=document-family>document family</dfn> of a <a href=#browsing-context>browsing context</a>
+  consists of the union of all the <code><a href=#document>Document</a></code> objects in
+  that <a href=#browsing-context>browsing context</a>'s <a href=#session-history>session history</a>
+  and the <a href=#document-family title="document family">document families</a> of
+  all those <code><a href=#document>Document</a></code> objects. The <a href=#document-family>document
+  family</a> of a <code><a href=#document>Document</a></code> object consists of the
+  union of all the <a href=#document-family title="document family">document
+  families</a> of the <a href=#browsing-context title="browsing context">browsing
+  contexts</a> that are <span>nested through</span> the
+  <code><a href=#document>Document</a></code> object.</p>
 
+
   <h5 id=navigating-nested-browsing-contexts-in-the-dom><span class=secno>6.1.1.1 </span>Navigating nested browsing contexts in the DOM</h5>
 
   <dl class=domintro><dt><var title="">window</var> . <code title=dom-top><a href=#dom-top>top</a></code></dt>
@@ -66933,7 +66946,10 @@
      </li>
 
      <li><p>Remove any <a href=#concept-task title=concept-task>tasks</a> queued
-     by the <a href=#history-traversal-task-source>history traversal task source</a>.</li>
+     by the <a href=#history-traversal-task-source>history traversal task source</a> that are
+     associated with any <code><a href=#document>Document</a></code> objects in the
+     <a href=#top-level-browsing-context>top-level browsing context</a>'s <a href=#document-family>document
+     family</a>.</li>
 
      <li><p>If appropriate, update the <a href=#current-entry>current entry</a> to
      reflect any state that the user agent wishes to persist. The
@@ -67932,8 +67948,10 @@
        </li>
 
        <li><p>Remove any <a href=#concept-task title=concept-task>tasks</a>
-       queued by the <a href=#history-traversal-task-source>history traversal task
-       source</a>.</li> <!-- so the network is racing
+       queued by the <a href=#history-traversal-task-source>history traversal task source</a> that
+       are associated with any <code><a href=#document>Document</a></code> objects in the
+       <a href=#top-level-browsing-context>top-level browsing context</a>'s <a href=#document-family>document
+       family</a>.</li> <!-- so the network is racing
        history.back(), in the case of setting location.href="" and
        then calling history.back() -->
 
@@ -68302,7 +68320,9 @@
    </li>
 
    <li><p>Remove any <a href=#concept-task title=concept-task>tasks</a> queued by
-   the <a href=#history-traversal-task-source>history traversal task source</a>.</li>
+   the <a href=#history-traversal-task-source>history traversal task source</a> that are associated
+   with any <code><a href=#document>Document</a></code> objects in the <a href=#top-level-browsing-context>top-level
+   browsing context</a>'s <a href=#document-family>document family</a>.</li>
 
    <li><p>Append a new entry at the end of the <code><a href=#history-0>History</a></code>
    object representing the new resource and its <code><a href=#document>Document</a></code>

Modified: index
===================================================================
--- index	2012-05-30 21:51:42 UTC (rev 7108)
+++ index	2012-05-30 22:55:06 UTC (rev 7109)
@@ -13873,7 +13873,9 @@
    </li>
 
    <li><p>Remove any <a href=#concept-task title=concept-task>tasks</a> queued by
-   the <a href=#history-traversal-task-source>history traversal task source</a>.</li>
+   the <a href=#history-traversal-task-source>history traversal task source</a> that are associated
+   with any <code><a href=#document>Document</a></code> objects in the <a href=#top-level-browsing-context>top-level
+   browsing context</a>'s <a href=#document-family>document family</a>.</li>
 
    <li>Remove any earlier entries that share the same
    <code><a href=#document>Document</a></code>.</li>
@@ -64460,7 +64462,18 @@
   then the <a href=#parent-browsing-context>parent browsing context</a> of its <a href=#nested-browsing-context>nested
   browsing context</a> will change.</p>
 
+  <p>The <dfn id=document-family>document family</dfn> of a <a href=#browsing-context>browsing context</a>
+  consists of the union of all the <code><a href=#document>Document</a></code> objects in
+  that <a href=#browsing-context>browsing context</a>'s <a href=#session-history>session history</a>
+  and the <a href=#document-family title="document family">document families</a> of
+  all those <code><a href=#document>Document</a></code> objects. The <a href=#document-family>document
+  family</a> of a <code><a href=#document>Document</a></code> object consists of the
+  union of all the <a href=#document-family title="document family">document
+  families</a> of the <a href=#browsing-context title="browsing context">browsing
+  contexts</a> that are <span>nested through</span> the
+  <code><a href=#document>Document</a></code> object.</p>
 
+
   <h5 id=navigating-nested-browsing-contexts-in-the-dom><span class=secno>6.1.1.1 </span>Navigating nested browsing contexts in the DOM</h5>
 
   <dl class=domintro><dt><var title="">window</var> . <code title=dom-top><a href=#dom-top>top</a></code></dt>
@@ -66933,7 +66946,10 @@
      </li>
 
      <li><p>Remove any <a href=#concept-task title=concept-task>tasks</a> queued
-     by the <a href=#history-traversal-task-source>history traversal task source</a>.</li>
+     by the <a href=#history-traversal-task-source>history traversal task source</a> that are
+     associated with any <code><a href=#document>Document</a></code> objects in the
+     <a href=#top-level-browsing-context>top-level browsing context</a>'s <a href=#document-family>document
+     family</a>.</li>
 
      <li><p>If appropriate, update the <a href=#current-entry>current entry</a> to
      reflect any state that the user agent wishes to persist. The
@@ -67932,8 +67948,10 @@
        </li>
 
        <li><p>Remove any <a href=#concept-task title=concept-task>tasks</a>
-       queued by the <a href=#history-traversal-task-source>history traversal task
-       source</a>.</li> <!-- so the network is racing
+       queued by the <a href=#history-traversal-task-source>history traversal task source</a> that
+       are associated with any <code><a href=#document>Document</a></code> objects in the
+       <a href=#top-level-browsing-context>top-level browsing context</a>'s <a href=#document-family>document
+       family</a>.</li> <!-- so the network is racing
        history.back(), in the case of setting location.href="" and
        then calling history.back() -->
 
@@ -68302,7 +68320,9 @@
    </li>
 
    <li><p>Remove any <a href=#concept-task title=concept-task>tasks</a> queued by
-   the <a href=#history-traversal-task-source>history traversal task source</a>.</li>
+   the <a href=#history-traversal-task-source>history traversal task source</a> that are associated
+   with any <code><a href=#document>Document</a></code> objects in the <a href=#top-level-browsing-context>top-level
+   browsing context</a>'s <a href=#document-family>document family</a>.</li>
 
    <li><p>Append a new entry at the end of the <code><a href=#history-0>History</a></code>
    object representing the new resource and its <code><a href=#document>Document</a></code>

Modified: source
===================================================================
--- source	2012-05-30 21:51:42 UTC (rev 7108)
+++ source	2012-05-30 22:55:06 UTC (rev 7109)
@@ -14633,7 +14633,9 @@
    </li>
 
    <li><p>Remove any <span title="concept-task">tasks</span> queued by
-   the <span>history traversal task source</span>.</p></li>
+   the <span>history traversal task source</span> that are associated
+   with any <code>Document</code> objects in the <span>top-level
+   browsing context</span>'s <span>document family</span>.</p></li>
 
    <li>Remove any earlier entries that share the same
    <code>Document</code>.</li>
@@ -75600,7 +75602,18 @@
   then the <span>parent browsing context</span> of its <span>nested
   browsing context</span> will change.</p>
 
+  <p>The <dfn>document family</dfn> of a <span>browsing context</span>
+  consists of the union of all the <code>Document</code> objects in
+  that <span>browsing context</span>'s <span>session history</span>
+  and the <span title="document family">document families</span> of
+  all those <code>Document</code> objects. The <span>document
+  family</span> of a <code>Document</code> object consists of the
+  union of all the <span title="document family">document
+  families</span> of the <span title="browsing context">browsing
+  contexts</span> that are <span>nested through</span> the
+  <code>Document</code> object.</p>
 
+
   <h5>Navigating nested browsing contexts in the DOM</h5>
 
   <dl class="domintro">
@@ -78434,7 +78447,10 @@
      </li>
 
      <li><p>Remove any <span title="concept-task">tasks</span> queued
-     by the <span>history traversal task source</span>.</p></li>
+     by the <span>history traversal task source</span> that are
+     associated with any <code>Document</code> objects in the
+     <span>top-level browsing context</span>'s <span>document
+     family</span>.</p></li>
 
      <li><p>If appropriate, update the <span>current entry</span> to
      reflect any state that the user agent wishes to persist. The
@@ -79556,8 +79572,10 @@
        </li>
 
        <li><p>Remove any <span title="concept-task">tasks</span>
-       queued by the <span>history traversal task
-       source</span>.</p></li> <!-- so the network is racing
+       queued by the <span>history traversal task source</span> that
+       are associated with any <code>Document</code> objects in the
+       <span>top-level browsing context</span>'s <span>document
+       family</span>.</p></li> <!-- so the network is racing
        history.back(), in the case of setting location.href="" and
        then calling history.back() -->
 
@@ -79969,7 +79987,9 @@
    </li>
 
    <li><p>Remove any <span title="concept-task">tasks</span> queued by
-   the <span>history traversal task source</span>.</p></li>
+   the <span>history traversal task source</span> that are associated
+   with any <code>Document</code> objects in the <span>top-level
+   browsing context</span>'s <span>document family</span>.</p></li>
 
    <li><p>Append a new entry at the end of the <code>History</code>
    object representing the new resource and its <code>Document</code>




More information about the Commit-Watchers mailing list