Skip to content

Commit

Permalink
[giow] (2) Define that when you discard a document, it performs the c…
Browse files Browse the repository at this point in the history
…leanup steps.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8821

git-svn-id: http://svn.whatwg.org/webapps@4709 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 14, 2010
1 parent a75d126 commit 18ee77b
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 29 deletions.
30 changes: 20 additions & 10 deletions complete.html
Expand Up @@ -52332,16 +52332,26 @@ <h4 id=garbage-collection-and-browsing-contexts><span class=secno>6.2.5 </span>G
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>

<p class=note>The <a href=#browsing-context>browsing context</a>'s <a href=#default-view>default
<code>Document</code></dfn>, the user agent must run the following
steps:</p>

<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
Expand Down
30 changes: 20 additions & 10 deletions index
Expand Up @@ -52231,16 +52231,26 @@ interface <dfn id=window>Window</dfn> {
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>

<p class=note>The <a href=#browsing-context>browsing context</a>'s <a href=#default-view>default
<code>Document</code></dfn>, the user agent must run the following
steps:</p>

<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
Expand Down
31 changes: 22 additions & 9 deletions source
Expand Up @@ -58929,15 +58929,28 @@ interface <dfn>Window</dfn> {
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
Expand Down

0 comments on commit 18ee77b

Please sign in to comment.