W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2009

[whatwg] sessionStorage and the Storage event

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 27 Oct 2009 12:26:35 +0100
Message-ID: <op.u2gh2ltl64w2qv@anne-van-kesterens-macbook.local>
On Tue, 27 Oct 2009 00:06:41 +0100, Honza Bambas <honzab at allpeers.com>  
wrote:
> Maybe I read something wrong, but as a sessionStorage object is always
> unique to its document (it is cloned when a new document with the same
> origin is created and then independent from the original document's
> object) it, in my opinion, doesn't make sense to send the event to any
> other document then the one its storage has been changed. On the other
> hand, it makes sense to me to not fire the event in the same document
> where the storage has been changed (as for localStorage), then, I'd say
> there should be no event for sessionStorage at all. I simply don't a
> case when two or more documents would share a single sessionStorage  
> object.

sessionStorage is shared with e.g. same-origin child browsing contexts so  
it is not limited to a single Document.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 27 October 2009 04:26:35 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:18 UTC