Skip to content

Commit

Permalink
[giow] (2) Make things like history.back() and user back/forward get …
Browse files Browse the repository at this point in the history
…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

git-svn-id: http://svn.whatwg.org/webapps@7109 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 30, 2012
1 parent 5ce5eda commit c0139e5
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 15 deletions.
30 changes: 25 additions & 5 deletions complete.html
Expand Up @@ -13873,7 +13873,9 @@ <h4 id=opening-the-input-stream><span class=secno>3.4.1 </span>Opening the input
</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>
Expand Down Expand Up @@ -64460,6 +64462,17 @@ <h4 id=nested-browsing-contexts><span class=secno>6.1.1 </span>Nested browsing c
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>

Expand Down Expand Up @@ -66933,7 +66946,10 @@ <h4 id=the-history-interface><span class=secno>6.5.2 </span>The <code><a href=#h
</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
Expand Down Expand Up @@ -67932,8 +67948,10 @@ <h4 id=navigating-across-documents><span class=secno>6.6.1 </span>Navigating acr
</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() -->

Expand Down Expand Up @@ -68302,7 +68320,9 @@ <h4 id=scroll-to-fragid><span class=secno>6.6.9 </span><dfn title=navigate-fragi
</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>
Expand Down
30 changes: 25 additions & 5 deletions index
Expand Up @@ -13873,7 +13873,9 @@ plaintext = *( %x0000-2029 / %x202F-10FFFF )
</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>
Expand Down Expand Up @@ -64460,6 +64462,17 @@ END:VCARD</pre>
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>

Expand Down Expand Up @@ -66933,7 +66946,10 @@ x === this; // true</pre>
</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
Expand Down Expand Up @@ -67932,8 +67948,10 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU
</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() -->

Expand Down Expand Up @@ -68302,7 +68320,9 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU
</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>
Expand Down
30 changes: 25 additions & 5 deletions source
Expand Up @@ -14633,7 +14633,9 @@ plaintext = *( %x0000-2029 / %x202F-10FFFF )
</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>
Expand Down Expand Up @@ -75600,6 +75602,17 @@ END:VCARD</pre>
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>

Expand Down Expand Up @@ -78434,7 +78447,10 @@ x === this; // true</pre>
</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
Expand Down Expand Up @@ -79556,8 +79572,10 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O
</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() -->

Expand Down Expand Up @@ -79969,7 +79987,9 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O
</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>
Expand Down

0 comments on commit c0139e5

Please sign in to comment.