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
http://annevankesteren.nl/
Received on Friday, 24 April 2009 22:11:44 GMT

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