Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giw] (2) Add a 'storageArea' attribute on the storage event object. …
…(credit: be)

git-svn-id: http://svn.whatwg.org/webapps@2568 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 24, 2008
1 parent 2458ea0 commit 24d9b00
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
21 changes: 16 additions & 5 deletions index
Expand Up @@ -38742,6 +38742,9 @@ user reload must be equivalent to .reload()

<h5 id=the-storage-event><span class=secno>5.10.1.5 </span>The <code title=event-storage><a href=#event-storage>storage</a></code> event</h5>

<!-- XXX fix up for workers: target is wrong, source and storageArea
definitions are wrong -->

<p>The <dfn id=event-storage title=event-storage><code>storage</code></dfn> event
is fired in an <code><a href=#htmldocument>HTMLDocument</a></code> when a storage area
changes, as described in the previous two sections (<a href=#sessionStorageEvent>for session storage</a>, <a href=#localStorageEvent>for local storage</a>).</p>
Expand All @@ -38768,12 +38771,16 @@ user reload must be equivalent to .reload()
null.</p>

<p>In addition, the event must have its <code title=dom-StorageEvent-url><a href=#dom-storageevent-url>url</a></code> attribute set to the address
of the page whose <code><a href=#storage-0>Storage</a></code> object was affected, and its
of the page whose <code><a href=#storage-0>Storage</a></code> object was affected; its
<code title=dom-StorageEvent-source><a href=#dom-storageevent-source>source</a></code> attribute set to
the <code><a href=#window>Window</a></code> object of the <a href=#browsing-context>browsing context</a>
that that document is in, if the two documents are in the same
<a href=#unit-of-related-browsing-contexts>unit of related browsing contexts</a>, or null
otherwise.</p>
<a href=#unit-of-related-browsing-contexts>unit of related browsing contexts</a>, or null otherwise;
and its <code title=dom-StorageEvent-storageArea>storageArea</code>
attribute set to the <code><a href=#storage-0>Storage</a></code> object from the
<code><a href=#window>Window</a></code> object of the target <code>Document</code> that
represents the same kind of <code><a href=#storage-0>Storage</a></code> area as was
affected (i.e. session or local).</p>


<h6 id=event-definition-0><span class=secno>5.10.1.5.1 </span>Event definition</h6>
Expand All @@ -38784,8 +38791,9 @@ user reload must be equivalent to .reload()
readonly attribute DOMString <span title=dom-StorageEvent-newValue>newValue</span>;
readonly attribute DOMString <a href=#dom-storageevent-url title=dom-StorageEvent-url>url</a>;
readonly attribute <a href=#window>Window</a> <a href=#dom-storageevent-source title=dom-StorageEvent-source>source</a>;
void <a href=#dom-storageevent-initstorageevent title=dom-StorageEvent-initStorageEvent>initStorageEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in Window sourceArg);
void <a href=#dom-storageevent-initstorageeventns title=dom-StorageEvent-initStorageEventNS>initStorageEventNS</a>(in DOMString namespaceURI, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in Window sourceArg);
readonly attribute <a href=#storage-0>Storage</a> <a href=#dom-storageevent-storage title=dom-StorageEvent-storage>storageArea</a>;
void <a href=#dom-storageevent-initstorageevent title=dom-StorageEvent-initStorageEvent>initStorageEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in <a href=#window>Window</a> sourceArg, in <a href=#storage-0>Storage</a> storageAreaArg);
void <a href=#dom-storageevent-initstorageeventns title=dom-StorageEvent-initStorageEventNS>initStorageEventNS</a>(in DOMString namespaceURI, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in <a href=#window>Window</a> sourceArg, in <a href=#storage-0>Storage</a> storageAreaArg);
};</pre>

<p>The <dfn id=dom-storageevent-initstorageevent title=dom-StorageEvent-initStorageEvent><code>initStorageEvent()</code></dfn>
Expand All @@ -38809,6 +38817,9 @@ user reload must be equivalent to .reload()
<p>The <dfn id=dom-storageevent-source title=dom-StorageEvent-source><code>source</code></dfn> attribute
represents the <code><a href=#window>Window</a></code> that changed the key.</p>

<p>The <dfn id=dom-storageevent-storage title=dom-StorageEvent-storage><code>storage</code></dfn> attribute
represents the <code><a href=#storage-0>Storage</a></code> object that was affected.</p>



<h5 id=threads><span class=secno>5.10.1.6 </span>Threads</h5>
Expand Down
22 changes: 17 additions & 5 deletions source
Expand Up @@ -44118,6 +44118,9 @@ user reload must be equivalent to .reload()

<h5>The <code title="event-storage">storage</code> event</h5>

<!-- XXX fix up for workers: target is wrong, source and storageArea
definitions are wrong -->

<p>The <dfn title="event-storage"><code>storage</code></dfn> event
is fired in an <code>HTMLDocument</code> when a storage area
changes, as described in the previous two sections (<a
Expand Down Expand Up @@ -44151,12 +44154,16 @@ user reload must be equivalent to .reload()

<p>In addition, the event must have its <code
title="dom-StorageEvent-url">url</code> attribute set to the address
of the page whose <code>Storage</code> object was affected, and its
of the page whose <code>Storage</code> object was affected; its
<code title="dom-StorageEvent-source">source</code> attribute set to
the <code>Window</code> object of the <span>browsing context</span>
that that document is in, if the two documents are in the same
<span>unit of related browsing contexts</span>, or null
otherwise.</p>
<span>unit of related browsing contexts</span>, or null otherwise;
and its <code title="dom-StorageEvent-storageArea">storageArea</code>
attribute set to the <code>Storage</code> object from the
<code>Window</code> object of the target <code>Document</code> that
represents the same kind of <code>Storage</code> area as was
affected (i.e. session or local).</p>


<h6>Event definition</h6>
Expand All @@ -44167,8 +44174,9 @@ user reload must be equivalent to .reload()
readonly attribute DOMString <span title="dom-StorageEvent-newValue">newValue</span>;
readonly attribute DOMString <span title="dom-StorageEvent-url">url</span>;
readonly attribute <span>Window</span> <span title="dom-StorageEvent-source">source</span>;
void <span title="dom-StorageEvent-initStorageEvent">initStorageEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in Window sourceArg);
void <span title="dom-StorageEvent-initStorageEventNS">initStorageEventNS</span>(in DOMString namespaceURI, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in Window sourceArg);
readonly attribute <span>Storage</span> <span title="dom-StorageEvent-storage">storageArea</span>;
void <span title="dom-StorageEvent-initStorageEvent">initStorageEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in <span>Window</span> sourceArg, in <span>Storage</span> storageAreaArg);
void <span title="dom-StorageEvent-initStorageEventNS">initStorageEventNS</span>(in DOMString namespaceURI, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in <span>Window</span> sourceArg, in <span>Storage</span> storageAreaArg);
};</pre>

<p>The <dfn
Expand Down Expand Up @@ -44198,6 +44206,10 @@ user reload must be equivalent to .reload()
title="dom-StorageEvent-source"><code>source</code></dfn> attribute
represents the <code>Window</code> that changed the key.</p>

<p>The <dfn
title="dom-StorageEvent-storage"><code>storage</code></dfn> attribute
represents the <code>Storage</code> object that was affected.</p>



<h5>Threads</h5>
Expand Down

0 comments on commit 24d9b00

Please sign in to comment.