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

[whatwg] localStorage mutex - a solution?

From: Mike Shaver <mike.shaver@gmail.com>
Date: Tue, 24 Nov 2009 19:44:40 -0500
Message-ID: <cc092ba00911241644n61a352b9hf67c012d788bbbcb@mail.gmail.com>
On Tue, Nov 24, 2009 at 6:12 PM, Rob Ennals <rob.ennals at gmail.com> wrote:
> If you run your browser in "super-warnings-enabled" mode then you
> could have it warn you if you did anything remotely suspect between
> calls to localStorage (e.g. calling a function defined by an external
> javascript file or calling an API).

How would the browser distinguish between

storage-operation-1
inadvertent-API-call
storage-operation-2-that-should-be-atomic-with-1

and

storage-operation-1
API-calls-to-gather-data-for-another-transaction
storage-operation-2-that-is-unrelated-to-1

?  Seems like that's a necessary distinction if it's not to just warn
all over the place uselessly!

Mike
Received on Tuesday, 24 November 2009 16:44:40 UTC

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