W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

Re: StorageEvent.url (WAS: XMLHttpRequest.responseBlob)

From: Jeremy Orlow <jorlow@chromium.org>
Date: Thu, 29 Apr 2010 17:13:16 +0100
Message-ID: <w2u5dd9e5c51004290913udb911ac7h7013a76eb9b20a00@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Web Applications Working Group WG <public-webapps@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:38 GMT