[html5] r5313 - [giow] (2) history.back() should fire unload too.
whatwg at whatwg.org
whatwg at whatwg.org
Fri Aug 20 11:58:09 PDT 2010
Author: ianh
Date: 2010-08-20 11:58:07 -0700 (Fri, 20 Aug 2010)
New Revision: 5313
Modified:
complete.html
index
source
Log:
[giow] (2) history.back() should fire unload too.
Modified: complete.html
===================================================================
--- complete.html 2010-08-18 01:32:19 UTC (rev 5312)
+++ complete.html 2010-08-20 18:58:07 UTC (rev 5313)
@@ -209,7 +209,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>Web Applications 1.0</h1>
- <h2 class="no-num no-toc">Draft Standard — 18 August 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard — 20 August 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -59504,7 +59504,7 @@
<li><p>If the index of the <a href=#current-entry-of-the-joint-session-history>current entry of the joint session
history</a> plus <var title="">delta</var> is less than zero or
greater than or equal to the number of items in the <a href=#joint-session-history>joint
- session history</a>, then the user agent must do nothing.</p>
+ session history</a>, then abort these steps.</p>
<li><p>Let <var title="">specified entry</var> be the entry in the
<a href=#joint-session-history>joint session history</a> whose index is the sum of <var title="">delta</var> and the index of the <a href=#current-entry-of-the-joint-session-history>current entry of
@@ -59514,9 +59514,16 @@
<a href=#browsing-context>browsing context</a> of the <var title="">specified
entry</var>.</li>
- <!-- XXX if going to another doc, try to unload the document here
- (firing beforeunload, unload, pagehide) -->
+ <li><p><a href=#prompt-to-unload-a-document title="prompt to unload a document">Prompt to
+ unload</a> the <a href=#active-document>active document</a> of the <var title="">specified browsing context</var>. If the user
+ <a href=#refused-to-allow-the-document-to-be-unloaded>refused to allow the document to be unloaded</a>, then
+ abort these steps.</li>
+ <li><p><a href=#unload-a-document title="unload a document">Unload</a> the the
+ <a href=#active-document>active document</a> of the <var title="">specified
+ browsing context</var> with the <var title="">recycle</var>
+ parameter set to false.</li>
+
<li><p><a href=#traverse-the-history>Traverse the history</a> of the <var title="">specified browsing context</var> to the <var title="">specified entry</var>.</p>
</ol><p>When the user navigates through a <a href=#browsing-context>browsing context</a>,
@@ -60089,6 +60096,15 @@
<a href=#browsing-context>browsing context</a>.</li>
<!-- http://www.hixie.ch/tests/adhoc/html/navigation/unload/ -->
+ <li><p>If a <a href=#concept-task title=concept-task>task</a> queued by the
+ <a href=#traverse-the-history-by-a-delta>traverse the history by a delta</a> algorithm is running
+ the <a href=#unload-a-document>unload a document</a> algorithm for the <a href=#active-document>active
+ document</a> of the <a href=#browsing-context>browsing context</a> being
+ navigated, then abort these steps without affecting the
+ <a href=#unload-a-document>unload a document</a> algorithm or the aforementioned
+ history traversal task.</li> <!-- this stops pages from
+ hijacking the back/forward button -->
+
<li><p>If there is a preexisting attempt to navigate the
<a href=#browsing-context>browsing context</a>, and either that attempt has not yet
<a href=#concept-navigate-mature title=concept-navigate-mature>matured</a> (i.e. it has
Modified: index
===================================================================
--- index 2010-08-18 01:32:19 UTC (rev 5312)
+++ index 2010-08-20 18:58:07 UTC (rev 5313)
@@ -213,7 +213,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>HTML5 (including next generation additions still in development)</h1>
- <h2 class="no-num no-toc">Draft Standard — 18 August 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard — 20 August 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -59431,7 +59431,7 @@
<li><p>If the index of the <a href=#current-entry-of-the-joint-session-history>current entry of the joint session
history</a> plus <var title="">delta</var> is less than zero or
greater than or equal to the number of items in the <a href=#joint-session-history>joint
- session history</a>, then the user agent must do nothing.</p>
+ session history</a>, then abort these steps.</p>
<li><p>Let <var title="">specified entry</var> be the entry in the
<a href=#joint-session-history>joint session history</a> whose index is the sum of <var title="">delta</var> and the index of the <a href=#current-entry-of-the-joint-session-history>current entry of
@@ -59441,9 +59441,16 @@
<a href=#browsing-context>browsing context</a> of the <var title="">specified
entry</var>.</li>
- <!-- XXX if going to another doc, try to unload the document here
- (firing beforeunload, unload, pagehide) -->
+ <li><p><a href=#prompt-to-unload-a-document title="prompt to unload a document">Prompt to
+ unload</a> the <a href=#active-document>active document</a> of the <var title="">specified browsing context</var>. If the user
+ <a href=#refused-to-allow-the-document-to-be-unloaded>refused to allow the document to be unloaded</a>, then
+ abort these steps.</li>
+ <li><p><a href=#unload-a-document title="unload a document">Unload</a> the the
+ <a href=#active-document>active document</a> of the <var title="">specified
+ browsing context</var> with the <var title="">recycle</var>
+ parameter set to false.</li>
+
<li><p><a href=#traverse-the-history>Traverse the history</a> of the <var title="">specified browsing context</var> to the <var title="">specified entry</var>.</p>
</ol><p>When the user navigates through a <a href=#browsing-context>browsing context</a>,
@@ -60016,6 +60023,15 @@
<a href=#browsing-context>browsing context</a>.</li>
<!-- http://www.hixie.ch/tests/adhoc/html/navigation/unload/ -->
+ <li><p>If a <a href=#concept-task title=concept-task>task</a> queued by the
+ <a href=#traverse-the-history-by-a-delta>traverse the history by a delta</a> algorithm is running
+ the <a href=#unload-a-document>unload a document</a> algorithm for the <a href=#active-document>active
+ document</a> of the <a href=#browsing-context>browsing context</a> being
+ navigated, then abort these steps without affecting the
+ <a href=#unload-a-document>unload a document</a> algorithm or the aforementioned
+ history traversal task.</li> <!-- this stops pages from
+ hijacking the back/forward button -->
+
<li><p>If there is a preexisting attempt to navigate the
<a href=#browsing-context>browsing context</a>, and either that attempt has not yet
<a href=#concept-navigate-mature title=concept-navigate-mature>matured</a> (i.e. it has
Modified: source
===================================================================
--- source 2010-08-18 01:32:19 UTC (rev 5312)
+++ source 2010-08-20 18:58:07 UTC (rev 5313)
@@ -67167,7 +67167,7 @@
<li><p>If the index of the <span>current entry of the joint session
history</span> plus <var title="">delta</var> is less than zero or
greater than or equal to the number of items in the <span>joint
- session history</span>, then the user agent must do nothing.</p>
+ session history</span>, then abort these steps.</p>
<li><p>Let <var title="">specified entry</var> be the entry in the
<span>joint session history</span> whose index is the sum of <var
@@ -67178,9 +67178,17 @@
<span>browsing context</span> of the <var title="">specified
entry</var>.</p></li>
- <!-- XXX if going to another doc, try to unload the document here
- (firing beforeunload, unload, pagehide) -->
+ <li><p><span title="prompt to unload a document">Prompt to
+ unload</span> the <span>active document</span> of the <var
+ title="">specified browsing context</var>. If the user
+ <span>refused to allow the document to be unloaded</span>, then
+ abort these steps.</p></li>
+ <li><p><span title="unload a document">Unload</span> the the
+ <span>active document</span> of the <var title="">specified
+ browsing context</var> with the <var title="">recycle</var>
+ parameter set to false.</p></li>
+
<li><p><span>Traverse the history</span> of the <var
title="">specified browsing context</var> to the <var
title="">specified entry</var>.</p>
@@ -67842,6 +67850,15 @@
<span>browsing context</span>.</p></li>
<!-- http://www.hixie.ch/tests/adhoc/html/navigation/unload/ -->
+ <li><p>If a <span title="concept-task">task</span> queued by the
+ <span>traverse the history by a delta</span> algorithm is running
+ the <span>unload a document</span> algorithm for the <span>active
+ document</span> of the <span>browsing context</span> being
+ navigated, then abort these steps without affecting the
+ <span>unload a document</span> algorithm or the aforementioned
+ history traversal task.</p></li> <!-- this stops pages from
+ hijacking the back/forward button -->
+
<li><p>If there is a preexisting attempt to navigate the
<span>browsing context</span>, and either that attempt has not yet
<span title="concept-navigate-mature">matured</span> (i.e. it has
More information about the Commit-Watchers
mailing list