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

[webstorage] storage event should be dispatched async

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 24 Apr 2009 15:38:11 +0200
To: "WebApps WG" <public-webapps@w3.org>
Message-ID: <op.usv75xsr64w2qv@annevk-t60.oslo.opera.com>
The storage event currently seems to be dispatched synchronously. Together  
with the storage mutex this easily creates a deadlock:

   Window A (origin x):

   localStorage.x = "foo"

   Window B (origin x):

   onstorage = function(e) { print(localStorage.x) }

We think it should be dispatched asynchronously therefore.

Anne van Kesteren
Received on Friday, 24 April 2009 22:11:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:12:53 UTC