- From: Jeremy Orlow <jorlow@chromium.org>
- Date: Thu, 29 Apr 2010 17:13:16 +0100
- To: Boris Zbarsky <bzbarsky@mit.edu>
- Cc: Web Applications Working Group WG <public-webapps@w3.org>
Received on Thursday, 29 April 2010 16:14:09 UTC
On Thu, Apr 29, 2010 at 4:35 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote: > On 4/29/10 9:23 AM, Jeremy Orlow wrote: > >> Opera 10.50 does return false for your bit of javascript, but when I >> enumerate the properties on event after causing a storage event, "url" >> is there. Weird. >> > > All that means is that the property is an own property of the object, not a > property getter/setter pair on the prototype, no? > > It's interesting that you find this odd, given that this is exactly V8's > behavior in general. Compare: > > alert("body" in HTMLDocument.prototype); > alert("body" in document"); > > in your favorite HTML page. > > > My code did not work in Firefox 3.6. >> https://developer.mozilla.org/en/DOM/Storage makes no mention of >> StorageEvent. Do they actually support events? >> > > Sure seem to, with "url" as the property name. Or at least there's > definitely code in the tree to dispatch it when storage changes happen. > The following script does not work for me in 3.6. Would love to know what I'm doing wrong: window.onstorage = function() { alert("HI"); } localStorage.foo = localStorage.foo + " "; I don't get anything on the error console or any alert. (Though it works in Safari and Opera.)
Received on Thursday, 29 April 2010 16:14:09 UTC