[html5] r3325 - [e] (0) Move openDatabase(), localStorage, and sessionStorage from HTML5 to Web [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri Jun 26 01:42:58 PDT 2009
Author: ianh
Date: 2009-06-26 01:42:56 -0700 (Fri, 26 Jun 2009)
New Revision: 3325
Modified:
index
source
Log:
[e] (0) Move openDatabase(), localStorage, and sessionStorage from HTML5 to Web Storage. Make it clearer where constructors are supposed to be visible.
Modified: index
===================================================================
--- index 2009-06-26 08:32:24 UTC (rev 3324)
+++ index 2009-06-26 08:42:56 UTC (rev 3325)
@@ -45485,9 +45485,6 @@
// the user agent
readonly attribute <a href=#navigator>Navigator</a> <a href=#dom-navigator title=dom-navigator>navigator</a>; <!-- IE also has window.clientInformation === window.navigator -->
- readonly attribute <span>Storage</span> <span title=dom-localStorage>localStorage</span>;
- readonly attribute <span>Storage</span> <span title=dom-sessionStorage>sessionStorage</span>;
- <span>Database</span> <span title=dom-opendatabase>openDatabase</span>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
readonly attribute <a href=#applicationcache>ApplicationCache</a> <a href=#dom-applicationcache title=dom-applicationCache>applicationCache</a>;
// user prompts
@@ -57349,7 +57346,11 @@
<li><p>Return <var title="">channel</var>.</li>
- </ol><p>The <dfn id=dom-channel-port1 title=dom-channel-port1><code>port1</code></dfn> and
+ </ol><p>This constructor must be visible when the <span>script's global
+ scope</span> is either a <code><a href=#window>Window</a></code> object or an object
+ implementing the <code>WorkerUtils interface.</code></p>
+
+ <p>The <dfn id=dom-channel-port1 title=dom-channel-port1><code>port1</code></dfn> and
<dfn id=dom-channel-port2 title=dom-channel-port2><code>port2</code></dfn> attributes
must return the values they were assigned when the
<code><a href=#messagechannel>MessageChannel</a></code> object was created.</p>
Modified: source
===================================================================
--- source 2009-06-26 08:32:24 UTC (rev 3324)
+++ source 2009-06-26 08:42:56 UTC (rev 3325)
@@ -51789,9 +51789,6 @@
// the user agent
readonly attribute <span>Navigator</span> <span title="dom-navigator">navigator</span>; <!-- IE also has window.clientInformation === window.navigator -->
- readonly attribute <span>Storage</span> <span title="dom-localStorage">localStorage</span>;
- readonly attribute <span>Storage</span> <span title="dom-sessionStorage">sessionStorage</span>;
- <span>Database</span> <span title="dom-opendatabase">openDatabase</span>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
readonly attribute <span>ApplicationCache</span> <span title="dom-applicationCache">applicationCache</span>;
// user prompts
@@ -59331,7 +59328,6 @@
convert it to a string.</p>
-
<h5>The <code>Storage</code> interface</h5>
<pre class="idl">interface <dfn>Storage</dfn> {
@@ -59459,6 +59455,10 @@
<h5>The <code title="dom-sessionStorage">sessionStorage</code> attribute</h5>
+ <pre class="idl">[Supplemental] interface <span>Window</span> {
+ readonly attribute <span>Storage</span> <span title="dom-sessionStorage">sessionStorage</span>;
+};</pre>
+
<p>The <dfn
title="dom-sessionStorage"><code>sessionStorage</code></dfn>
attribute represents the set of storage areas specific to the
@@ -59526,6 +59526,10 @@
<h5>The <code title="dom-localStorage">localStorage</code> attribute</h5>
+ <pre class="idl">[Supplemental] interface <span>Window</span> {
+ readonly attribute <span>Storage</span> <span title="dom-localStorage">localStorage</span>;
+};</pre>
+
<p>The <dfn title="dom-localStorage"><code>localStorage</code></dfn>
object provides a <code>Storage</code> object for an
<span>origin</span>.</p>
@@ -59744,6 +59748,15 @@
another browser window) trying to write to a database with incorrect
assumptions.</p>
+ <pre class="idl">[Supplemental] interface <span>Window</span> {
+ <span>Database</span> <span title="dom-opendatabase">openDatabase</span>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
+};
+
+[Supplemental] interface <span>WorkerUtils</span> {
+ <span>Database</span> <span title="dom-opendatabase">openDatabase</span>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
+ <span>DatabaseSync</span> <span title="dom-opendatabase-sync">openDatabaseSync</span>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
+};</pre>
+
<p>The <dfn
title="dom-opendatabase"><code>openDatabase()</code></dfn> method on
the <code>Window</code> and <code>WorkerUtils</code> interfaces must
@@ -67853,6 +67866,9 @@
</ol>
+ <p>This constructor must be visible when the <span>script's global
+ scope</span> is either a <code>Window</code> object or an object
+ implementing the <code>WorkerUtils</span> interface.</p>
<h5>Shared workers and the <code>SharedWorker</code> interface</h5>
@@ -68064,15 +68080,17 @@
</ol>
+ <p>This constructor must be visible when the <span>script's global
+ scope</span> is either a <code>Window</code> object or an object
+ implementing the <code>WorkerUtils</span> interface.</p>
+
<h3>APIs available to workers</h3>
<pre class="idl">[NoInterfaceObject, ImplementedOn=WorkerGlobalScope, Supplemental] interface <dfn>WorkerUtils</dfn> {
void <span title="dom-WorkerGlobalScope-importScripts">importScripts</span>([Variadic] in DOMString urls);
readonly attribute <span title="worker-Navigator">Navigator</span> <span title="dom-worker-navigator">navigator</span>;
- <span>Database</span> <span title="dom-opendatabase">openDatabase</span>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
- <span>DatabaseSync</span> <span title="dom-opendatabase-sync">openDatabaseSync</span>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
};</pre>
<p>Objects that implement the <code>WorkerGlobalScope</code>
@@ -68502,6 +68520,12 @@
</ol>
+ <p>This constructor must be visible when the <span>script's global
+ scope</span> is either a <code>Window</code> object or an object
+ implementing the <code>WorkerUtils</span> interface.</p>
+
+ <hr>
+
<p>The <dfn title="dom-EventSource-URL"><code>URL</code></dfn>
attribute must return the <span>absolute URL</span> that resulted
from <span title="resolve a url">resolving</span> the value that was
@@ -69198,6 +69222,10 @@
</ol>
+ <p>This constructor must be visible when the <span>script's global
+ scope</span> is either a <code>Window</code> object or an object
+ implementing the <code>WorkerUtils</span> interface.</p>
+
<hr>
<p>The <dfn title="dom-WebSocket-URL"><code>URL</code></dfn>
@@ -70720,6 +70748,10 @@
</ol>
+ <p>This constructor must be visible when the <span>script's global
+ scope</span> is either a <code>Window</code> object or an object
+ implementing the <code>WorkerUtils</span> interface.</p>
+
<p>The <dfn title="dom-channel-port1"><code>port1</code></dfn> and
<dfn title="dom-channel-port2"><code>port2</code></dfn> attributes
must return the values they were assigned when the
More information about the Commit-Watchers
mailing list