[whatwg] RFC: Alternatives to storage mutex for cookies and localStorage

Aaron Boodman aa at google.com
Tue Sep 8 16:55:27 PDT 2009


On Tue, Sep 8, 2009 at 4:27 PM, Chris Jones<cjones at mozilla.com> wrote:
> With my proposal, a web app that tests whether localStorage is available
> with |window.localStorage === undefined| would conclude that it's not,
> because that object would not be available until |window.transaction| or
> whatever was accessed.  In Jeremy's and Benjamin's proposals, a web app
> using that would check would conclude that window.localStorage *is*
> available.

Aha, I had missed this (clever) idea in your original proposal. I also
do not have a strong opinion on having vs not having this as part of
the API.

- a



More information about the whatwg mailing list