[html5] r4108 - [] (0) Call beforeunload earlier in the process.
whatwg at whatwg.org
whatwg at whatwg.org
Sun Oct 11 22:34:15 PDT 2009
Author: ianh
Date: 2009-10-11 22:34:14 -0700 (Sun, 11 Oct 2009)
New Revision: 4108
Modified:
complete.html
index
source
Log:
[] (0) Call beforeunload earlier in the process.
Modified: complete.html
===================================================================
--- complete.html 2009-10-12 01:44:23 UTC (rev 4107)
+++ complete.html 2009-10-12 05:34:14 UTC (rev 4108)
@@ -9743,11 +9743,14 @@
</li>
+ <li><p><a href=#prompt-to-unload-a-document title="prompt to unload a document">Prompt to
+ unload</a> the <code>Document</code> object. If the user
+ <a href=#refused-to-allow-the-document-to-be-unloaded>refused to allow the document to be unloaded</a>, then
+ these steps must be aborted.</li>
+
<li><p><a href=#unload-a-document title="unload a document">Unload</a> the
<code>Document</code> object, with the <var title="">recycle</var>
- parameter set to true. If the user <a href=#refused-to-allow-the-document-to-be-unloaded>refused to allow the
- document to be unloaded</a>, then these steps must be
- aborted.</li>
+ parameter set to true.</li>
<li><p>If the document has an <a href=#active-parser>active parser</a>, then
abort that parser, and throw away any pending content in the
@@ -55123,6 +55126,17 @@
<li><p>Cancel <em>any</em> preexisting attempt to navigate the
<a href=#browsing-context>browsing context</a>.</li>
+ <li><p>If the new resource is to be handled using a mechanism that
+ does not affect the browsing context, e.g. ignoring the navigation
+ request altogether because the specified scheme is not one of the
+ supported protocols, then abort these steps and proceed with that
+ mechanism instead.</li>
+
+ <li><p><a href=#prompt-to-unload-a-document title="prompt to unload a document">Prompt to
+ unload</a> the <code>Document</code> object. If the user
+ <a href=#refused-to-allow-the-document-to-be-unloaded>refused to allow the document to be unloaded</a>, then
+ these steps must be aborted.</li>
+
<li>
<p>If the new resource is to be handled by displaying some sort of
@@ -55138,12 +55152,6 @@
</li>
- <li><p>If the new resource is to be handled using a mechanism that
- does not affect the browsing context, e.g. ignoring the navigation
- request altogether because the specified scheme is not one of the
- supported protocols, then abort these steps and proceed with that
- mechanism instead.</li>
-
<li>
<p>If the new resource is to be fetched using HTTP GET <a href=#concept-http-equivalent-get title=concept-http-equivalent-get>or equivalent</a>, then
@@ -55882,14 +55890,13 @@
<div class=impl>
- <p>When a user agent is to <dfn id=unload-a-document>unload a document</dfn>, it must run
- the following steps. These steps are passed an argument, <var title="">recycle</var>, which is either true or false, indicating
- whether the <code>Document</code> object is going to be
- re-used. (This is set by the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method.)</p>
+ <p>A <code>Document</code> has a <var title="">salvageable</var>
+ state, which is initially true.</p>
- <ol><li><p>Set <var title="">salvageable</var> to true.</li>
+ <hr><p>When a user agent is to <dfn id=prompt-to-unload-a-document>prompt to unload a document</dfn>,
+ it must run the following steps.</p>
- <li><p>Let <var title="">event</var> be a new
+ <ol><li><p>Let <var title="">event</var> be a new
<code><a href=#beforeunloadevent>BeforeUnloadEvent</a></code> event object with the name <code title=event-beforeunload>beforeunload</code>, with no namespace,
which does not bubble but is cancelable.</li>
@@ -55897,7 +55904,7 @@
<code>Document</code>'s <code><a href=#window>Window</a></code> object.</li>
<li><p>If any event listeners were triggered by the previous step,
- then set <var title="">salvageable</var> to false.</li>
+ then set the <code>Document</code>'s <var title="">salvageable</var> state to false.</li>
<li>
@@ -55915,16 +55922,21 @@
<p>The user agent must <a href=#pause>pause</a> while waiting for the
user's response.</p>
- <p>If the user <dfn id=refused-to-allow-the-document-to-be-unloaded>refused to allow the document to be
- unloaded</dfn> then these steps must be aborted.</p>
+ <p>If the user did not confirm the page navigation, then the user
+ agent <dfn id=refused-to-allow-the-document-to-be-unloaded>refused to allow the document to be unloaded</dfn>.</p>
</li>
- <li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-unload>unload</code> at the <code>Document</code>'s
+ </ol><hr><p>When a user agent is to <dfn id=unload-a-document>unload a document</dfn>, it must run
+ the following steps. These steps are passed an argument, <var title="">recycle</var>, which is either true or false, indicating
+ whether the <code>Document</code> object is going to be
+ re-used. (This is set by the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method.)</p>
+
+ <ol><li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-unload>unload</code> at the <code>Document</code>'s
<code><a href=#window>Window</a></code> object.</li>
<li><p>If any event listeners were triggered by the previous step,
- then set <var title="">salvageable</var> to false.</li>
+ then set the <code>Document</code> object's <var title="">salvageable</var> state to false.</li>
<li><p>If there are any outstanding transactions that have
callbacks that involve <a href=#concept-script title=concept-script>scripts</a>
Modified: index
===================================================================
--- index 2009-10-12 01:44:23 UTC (rev 4107)
+++ index 2009-10-12 05:34:14 UTC (rev 4108)
@@ -9579,11 +9579,14 @@
</li>
+ <li><p><a href=#prompt-to-unload-a-document title="prompt to unload a document">Prompt to
+ unload</a> the <code>Document</code> object. If the user
+ <a href=#refused-to-allow-the-document-to-be-unloaded>refused to allow the document to be unloaded</a>, then
+ these steps must be aborted.</li>
+
<li><p><a href=#unload-a-document title="unload a document">Unload</a> the
<code>Document</code> object, with the <var title="">recycle</var>
- parameter set to true. If the user <a href=#refused-to-allow-the-document-to-be-unloaded>refused to allow the
- document to be unloaded</a>, then these steps must be
- aborted.</li>
+ parameter set to true.</li>
<li><p>If the document has an <a href=#active-parser>active parser</a>, then
abort that parser, and throw away any pending content in the
@@ -52289,6 +52292,17 @@
<li><p>Cancel <em>any</em> preexisting attempt to navigate the
<a href=#browsing-context>browsing context</a>.</li>
+ <li><p>If the new resource is to be handled using a mechanism that
+ does not affect the browsing context, e.g. ignoring the navigation
+ request altogether because the specified scheme is not one of the
+ supported protocols, then abort these steps and proceed with that
+ mechanism instead.</li>
+
+ <li><p><a href=#prompt-to-unload-a-document title="prompt to unload a document">Prompt to
+ unload</a> the <code>Document</code> object. If the user
+ <a href=#refused-to-allow-the-document-to-be-unloaded>refused to allow the document to be unloaded</a>, then
+ these steps must be aborted.</li>
+
<li>
<p>If the new resource is to be handled by displaying some sort of
@@ -52304,12 +52318,6 @@
</li>
- <li><p>If the new resource is to be handled using a mechanism that
- does not affect the browsing context, e.g. ignoring the navigation
- request altogether because the specified scheme is not one of the
- supported protocols, then abort these steps and proceed with that
- mechanism instead.</li>
-
<li>
<p>If the new resource is to be fetched using HTTP GET <a href=#concept-http-equivalent-get title=concept-http-equivalent-get>or equivalent</a>, then
@@ -53048,14 +53056,13 @@
<div class=impl>
- <p>When a user agent is to <dfn id=unload-a-document>unload a document</dfn>, it must run
- the following steps. These steps are passed an argument, <var title="">recycle</var>, which is either true or false, indicating
- whether the <code>Document</code> object is going to be
- re-used. (This is set by the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method.)</p>
+ <p>A <code>Document</code> has a <var title="">salvageable</var>
+ state, which is initially true.</p>
- <ol><li><p>Set <var title="">salvageable</var> to true.</li>
+ <hr><p>When a user agent is to <dfn id=prompt-to-unload-a-document>prompt to unload a document</dfn>,
+ it must run the following steps.</p>
- <li><p>Let <var title="">event</var> be a new
+ <ol><li><p>Let <var title="">event</var> be a new
<code><a href=#beforeunloadevent>BeforeUnloadEvent</a></code> event object with the name <code title=event-beforeunload>beforeunload</code>, with no namespace,
which does not bubble but is cancelable.</li>
@@ -53063,7 +53070,7 @@
<code>Document</code>'s <code><a href=#window>Window</a></code> object.</li>
<li><p>If any event listeners were triggered by the previous step,
- then set <var title="">salvageable</var> to false.</li>
+ then set the <code>Document</code>'s <var title="">salvageable</var> state to false.</li>
<li>
@@ -53081,16 +53088,21 @@
<p>The user agent must <a href=#pause>pause</a> while waiting for the
user's response.</p>
- <p>If the user <dfn id=refused-to-allow-the-document-to-be-unloaded>refused to allow the document to be
- unloaded</dfn> then these steps must be aborted.</p>
+ <p>If the user did not confirm the page navigation, then the user
+ agent <dfn id=refused-to-allow-the-document-to-be-unloaded>refused to allow the document to be unloaded</dfn>.</p>
</li>
- <li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-unload>unload</code> at the <code>Document</code>'s
+ </ol><hr><p>When a user agent is to <dfn id=unload-a-document>unload a document</dfn>, it must run
+ the following steps. These steps are passed an argument, <var title="">recycle</var>, which is either true or false, indicating
+ whether the <code>Document</code> object is going to be
+ re-used. (This is set by the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method.)</p>
+
+ <ol><li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-unload>unload</code> at the <code>Document</code>'s
<code><a href=#window>Window</a></code> object.</li>
<li><p>If any event listeners were triggered by the previous step,
- then set <var title="">salvageable</var> to false.</li>
+ then set the <code>Document</code> object's <var title="">salvageable</var> state to false.</li>
<li><p>If there are any outstanding transactions that have
callbacks that involve <a href=#concept-script title=concept-script>scripts</a>
Modified: source
===================================================================
--- source 2009-10-12 01:44:23 UTC (rev 4107)
+++ source 2009-10-12 05:34:14 UTC (rev 4108)
@@ -9942,11 +9942,14 @@
</li>
+ <li><p><span title="prompt to unload a document">Prompt to
+ unload</span> the <code>Document</code> object. If the user
+ <span>refused to allow the document to be unloaded</span>, then
+ these steps must be aborted.</p></li>
+
<li><p><span title="unload a document">Unload</span> the
<code>Document</code> object, with the <var title="">recycle</var>
- parameter set to true. If the user <span>refused to allow the
- document to be unloaded</span>, then these steps must be
- aborted.</p></li>
+ parameter set to true.</p></li>
<li><p>If the document has an <span>active parser</span>, then
abort that parser, and throw away any pending content in the
@@ -62249,6 +62252,17 @@
<li><p>Cancel <em>any</em> preexisting attempt to navigate the
<span>browsing context</span>.</p></li>
+ <li><p>If the new resource is to be handled using a mechanism that
+ does not affect the browsing context, e.g. ignoring the navigation
+ request altogether because the specified scheme is not one of the
+ supported protocols, then abort these steps and proceed with that
+ mechanism instead.</p></li>
+
+ <li><p><span title="prompt to unload a document">Prompt to
+ unload</span> the <code>Document</code> object. If the user
+ <span>refused to allow the document to be unloaded</span>, then
+ these steps must be aborted.</p></li>
+
<li>
<p>If the new resource is to be handled by displaying some sort of
@@ -62266,12 +62280,6 @@
</li>
- <li><p>If the new resource is to be handled using a mechanism that
- does not affect the browsing context, e.g. ignoring the navigation
- request altogether because the specified scheme is not one of the
- supported protocols, then abort these steps and proceed with that
- mechanism instead.</p></li>
-
<li>
<p>If the new resource is to be fetched using HTTP GET <span
@@ -63120,17 +63128,16 @@
<div class="impl">
- <p>When a user agent is to <dfn>unload a document</dfn>, it must run
- the following steps. These steps are passed an argument, <var
- title="">recycle</var>, which is either true or false, indicating
- whether the <code>Document</code> object is going to be
- re-used. (This is set by the <code
- title="dom-document-open">document.open()</code> method.)</p>
+ <p>A <code>Document</code> has a <var title="">salvageable</var>
+ state, which is initially true.</p>
+ <hr>
+
+ <p>When a user agent is to <dfn>prompt to unload a document</dfn>,
+ it must run the following steps.</p>
+
<ol>
- <li><p>Set <var title="">salvageable</var> to true.</p></li>
-
<li><p>Let <var title="">event</var> be a new
<code>BeforeUnloadEvent</code> event object with the name <code
title="event-beforeunload">beforeunload</code>, with no namespace,
@@ -63140,7 +63147,8 @@
<code>Document</code>'s <code>Window</code> object.</p></li>
<li><p>If any event listeners were triggered by the previous step,
- then set <var title="">salvageable</var> to false.</p></li>
+ then set the <code>Document</code>'s <var
+ title="">salvageable</var> state to false.</p></li>
<li>
@@ -63160,17 +63168,31 @@
<p>The user agent must <span>pause</span> while waiting for the
user's response.</p>
- <p>If the user <dfn>refused to allow the document to be
- unloaded</dfn> then these steps must be aborted.</p>
+ <p>If the user did not confirm the page navigation, then the user
+ agent <dfn>refused to allow the document to be unloaded</dfn>.</p>
</li>
+ </ol>
+
+ <hr>
+
+ <p>When a user agent is to <dfn>unload a document</dfn>, it must run
+ the following steps. These steps are passed an argument, <var
+ title="">recycle</var>, which is either true or false, indicating
+ whether the <code>Document</code> object is going to be
+ re-used. (This is set by the <code
+ title="dom-document-open">document.open()</code> method.)</p>
+
+ <ol>
+
<li><p><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>If any event listeners were triggered by the previous step,
- then set <var title="">salvageable</var> to false.</p></li>
+ then set the <code>Document</code> object's <var
+ title="">salvageable</var> state to false.</p></li>
<li><p>If there are any outstanding transactions that have
callbacks that involve <span title="concept-script">scripts</span>
More information about the Commit-Watchers
mailing list