[html5] r4709 - [giow] (2) Define that when you discard a document, it performs the cleanup step [...]

whatwg at whatwg.org whatwg at whatwg.org
Sat Feb 13 19:26:54 PST 2010


Author: ianh
Date: 2010-02-13 19:26:52 -0800 (Sat, 13 Feb 2010)
New Revision: 4709

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Define that when you discard a document, it performs the cleanup steps.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8821

Modified: complete.html
===================================================================
--- complete.html	2010-02-14 03:23:36 UTC (rev 4708)
+++ complete.html	2010-02-14 03:26:52 UTC (rev 4709)
@@ -52332,16 +52332,26 @@
   objects.</p>
 
   <p>When a <a href=#browsing-context>browsing context</a> is to <dfn id=discard-a-document>discard a
-  <code>Document</code></dfn>, that means that it is to lose the
-  strong reference from the <code>Document</code>'s <a href=#browsing-context>browsing
-  context</a> to the <code>Document</code>, that any <a href=#concept-task title=concept-task>tasks</a> associated with the
-  <code>Document</code> in any <a href=#task-source>task source</a> must be
-  removed without being run, and that all the <a href=#child-browsing-context title="child
-  browsing context">child browsing contexts</a> of the
-  <code>Document</code> must also be <a href=#a-browsing-context-is-discarded title="a browsing context
-  is discarded">discarded</a>.</p>
+  <code>Document</code></dfn>, the user agent must run the following
+  steps:</p>
 
-  <p class=note>The <a href=#browsing-context>browsing context</a>'s <a href=#default-view>default
+  <ol><li><p>Run any <a href=#unloading-document-cleanup-steps>unloading document cleanup steps</a> for
+   the <code>Document</code> that are defined by this specification or
+   any other relevant specifications.</li>
+
+   <li><p>Remove any <a href=#concept-task title=concept-task>tasks</a>
+   associated with the <code>Document</code> in any <a href=#task-source>task
+   source</a>, without running those tasks.</li>
+
+   <li><p><a href=#a-browsing-context-is-discarded title="a browsing context is discarded">Discard</a>
+   all the <a href=#child-browsing-context title="child browsing context">child browsing
+   contexts</a> of the <code>Document</code>.</li>
+
+   <li><p>Lose the strong reference from the <code>Document</code>'s
+   <a href=#browsing-context>browsing context</a> to the
+   <code>Document</code>.</li>
+
+  </ol><p class=note>The <a href=#browsing-context>browsing context</a>'s <a href=#default-view>default
   view</a>'s <code><a href=#window>Window</a></code> object <a href=#implied-strong-reference title="implied strong
   reference">has a strong reference</a> to its
   <code>Document</code> object through the <code title=dom-document>document</code> attribute of the

Modified: index
===================================================================
--- index	2010-02-14 03:23:36 UTC (rev 4708)
+++ index	2010-02-14 03:26:52 UTC (rev 4709)
@@ -52231,16 +52231,26 @@
   objects.</p>
 
   <p>When a <a href=#browsing-context>browsing context</a> is to <dfn id=discard-a-document>discard a
-  <code>Document</code></dfn>, that means that it is to lose the
-  strong reference from the <code>Document</code>'s <a href=#browsing-context>browsing
-  context</a> to the <code>Document</code>, that any <a href=#concept-task title=concept-task>tasks</a> associated with the
-  <code>Document</code> in any <a href=#task-source>task source</a> must be
-  removed without being run, and that all the <a href=#child-browsing-context title="child
-  browsing context">child browsing contexts</a> of the
-  <code>Document</code> must also be <a href=#a-browsing-context-is-discarded title="a browsing context
-  is discarded">discarded</a>.</p>
+  <code>Document</code></dfn>, the user agent must run the following
+  steps:</p>
 
-  <p class=note>The <a href=#browsing-context>browsing context</a>'s <a href=#default-view>default
+  <ol><li><p>Run any <a href=#unloading-document-cleanup-steps>unloading document cleanup steps</a> for
+   the <code>Document</code> that are defined by this specification or
+   any other relevant specifications.</li>
+
+   <li><p>Remove any <a href=#concept-task title=concept-task>tasks</a>
+   associated with the <code>Document</code> in any <a href=#task-source>task
+   source</a>, without running those tasks.</li>
+
+   <li><p><a href=#a-browsing-context-is-discarded title="a browsing context is discarded">Discard</a>
+   all the <a href=#child-browsing-context title="child browsing context">child browsing
+   contexts</a> of the <code>Document</code>.</li>
+
+   <li><p>Lose the strong reference from the <code>Document</code>'s
+   <a href=#browsing-context>browsing context</a> to the
+   <code>Document</code>.</li>
+
+  </ol><p class=note>The <a href=#browsing-context>browsing context</a>'s <a href=#default-view>default
   view</a>'s <code><a href=#window>Window</a></code> object <a href=#implied-strong-reference title="implied strong
   reference">has a strong reference</a> to its
   <code>Document</code> object through the <code title=dom-document>document</code> attribute of the

Modified: source
===================================================================
--- source	2010-02-14 03:23:36 UTC (rev 4708)
+++ source	2010-02-14 03:26:52 UTC (rev 4709)
@@ -58929,16 +58929,29 @@
   objects.</p>
 
   <p>When a <span>browsing context</span> is to <dfn>discard a
-  <code>Document</code></dfn>, that means that it is to lose the
-  strong reference from the <code>Document</code>'s <span>browsing
-  context</span> to the <code>Document</code>, that any <span
-  title="concept-task">tasks</span> associated with the
-  <code>Document</code> in any <span>task source</span> must be
-  removed without being run, and that all the <span title="child
-  browsing context">child browsing contexts</span> of the
-  <code>Document</code> must also be <span title="a browsing context
-  is discarded">discarded</span>.</p>
+  <code>Document</code></dfn>, the user agent must run the following
+  steps:</p>
 
+  <ol>
+
+   <li><p>Run any <span>unloading document cleanup steps</span> for
+   the <code>Document</code> that are defined by this specification or
+   any other relevant specifications.</p></li>
+
+   <li><p>Remove any <span title="concept-task">tasks</span>
+   associated with the <code>Document</code> in any <span>task
+   source</span>, without running those tasks.</p></li>
+
+   <li><p><span title="a browsing context is discarded">Discard</span>
+   all the <span title="child browsing context">child browsing
+   contexts</span> of the <code>Document</code>.</p></li>
+
+   <li><p>Lose the strong reference from the <code>Document</code>'s
+   <span>browsing context</span> to the
+   <code>Document</code>.</p></li>
+
+  </ol>
+
   <p class="note">The <span>browsing context</span>'s <span>default
   view</span>'s <code>Window</code> object <span title="implied strong
   reference">has a strong reference</span> to its




More information about the Commit-Watchers mailing list