[html5] r3026 - [] (0) Mention that tasks from discarded documents are also discarded. Change so [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Apr 29 01:29:24 PDT 2009


Author: ianh
Date: 2009-04-29 01:29:23 -0700 (Wed, 29 Apr 2009)
New Revision: 3026

Modified:
   index
   source
Log:
[] (0) Mention that tasks from discarded documents are also discarded. Change some prose to mention origins and sites instead of domains. Fire 'storage' on inactive documents as well so they all get notified.

Modified: index
===================================================================
--- index	2009-04-29 08:02:39 UTC (rev 3025)
+++ index	2009-04-29 08:29:23 UTC (rev 3026)
@@ -40865,7 +40865,9 @@
   <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>.</p>
+  context</a> to the <code>Document</code>, and 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.</p>
 
   <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

Modified: source
===================================================================
--- source	2009-04-29 08:02:39 UTC (rev 3025)
+++ source	2009-04-29 08:29:23 UTC (rev 3026)
@@ -46155,7 +46155,10 @@
   <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>.</p>
+  context</span> to the <code>Document</code>, and 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.</p>
 
   <p class="note">The <span>browsing context</span>'s <span>default
   view</span>'s <code>Window</code> object <span title="implied strong
@@ -52867,7 +52870,7 @@
 
   <p>If it couldn't set the new value, the method must raise an
   <code>QUOTA_EXCEEDED_ERR</code> exception. (Setting could fail if,
-  e.g., the user has disabled storage for the domain, or if the quota
+  e.g., the user has disabled storage for the site, or if the quota
   has been exceeded.)</p>
 
   <p>The <dfn title="dom-Storage-removeItem"><code>removeItem(<var
@@ -53039,10 +53042,14 @@
   to fire an event with the name <code>storage</code>, with no
   namespace, which does not bubble and is not cancelable, and which
   uses the <code>StorageEvent</code> interface, at each
-  <code>Window</code> object whose <code>Document</code> object both
-  has a <code>Storage</code> object that is affected, and is
-  <span>fully active</span>.</p>
+  <code>Window</code> object whose <code>Document</code> object has a
+  <code>Storage</code> object that is affected.</p>
 
+  <p class="note">This includes <code>Document</code> objects that are
+  not <span>fully active</span>, but events fired on those are ignored
+  by the <span>event loop</span> until the <code>Document</code>
+  becomes <span>fully active</span> again.</p>
+
   <p>The <span>task source</span> for this task is the <span>DOM
   manipulation task source</span>.</p>
 
@@ -53175,7 +53182,7 @@
 
   <p>Each <i>origin</i> has an associated set of databases. Each
   database has a name and a current version. There is no way to
-  enumerate or delete the databases available for a domain from this
+  enumerate or delete the databases available for an origin from this
   API.</p>
 
   <p class="note">Each database has one version at a time; a database
@@ -54030,9 +54037,9 @@
   storage areas and databases.</p>
 
   <p>User agents should guard against sites storing data in the
-  storage areas or databases of subdomains, e.g. storing up to the
-  limit in a1.example.com, a2.example.com, a3.example.com, etc,
-  circumventing the main example.com storage limit.</p>
+  storage areas or databases of other affiliated sites, e.g. storing
+  up to the limit in a1.example.com, a2.example.com, a3.example.com,
+  etc, circumventing the main example.com storage limit.</p>
 
   <p>User agents may prompt the user when quotas are reached, allowing
   the user to grant a site more space. This enables sites to store
@@ -54046,9 +54053,9 @@
   title="dom-Storage-setItem">setItem()</code> call, the method will
   raise an exception.</p>-->
 
-  <p>A mostly arbitrary limit of five megabytes per domain is
-  recommended. Implementation feedback is welcome and will be used to
-  update this suggestion in future.</p>
+  <p>A mostly arbitrary limit of five megabytes per
+  <span>origin</span> is recommended. Implementation feedback is
+  welcome and will be used to update this suggestion in future.</p>
 
 
   <h4>Privacy</h4>




More information about the Commit-Watchers mailing list