Skip to content

Commit

Permalink
[] (0) Mention that tasks from discarded documents are also discarded…
Browse files Browse the repository at this point in the history
…. Change some prose to mention origins and sites instead of domains. Fire 'storage' on inactive documents as well so they all get notified.

git-svn-id: http://svn.whatwg.org/webapps@3026 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 29, 2009
1 parent 0282986 commit 0790208
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
4 changes: 3 additions & 1 deletion index
Expand Up @@ -40865,7 +40865,9 @@ interface <dfn id=window>Window</dfn> {
<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
Expand Down
31 changes: 19 additions & 12 deletions source
Expand Up @@ -46155,7 +46155,10 @@ interface <dfn>Window</dfn> {
<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
Expand Down Expand Up @@ -52867,7 +52870,7 @@ user reload must be equivalent to .reload()

<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
Expand Down Expand Up @@ -53039,9 +53042,13 @@ user reload must be equivalent to .reload()
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>
Expand Down Expand Up @@ -53175,7 +53182,7 @@ have a variable and unknowable number of literals coming:

<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
Expand Down Expand Up @@ -54030,9 +54037,9 @@ interface <dfn>SQLTransactionSync</dfn> {
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
Expand All @@ -54046,9 +54053,9 @@ interface <dfn>SQLTransactionSync</dfn> {
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>
Expand Down

0 comments on commit 0790208

Please sign in to comment.