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

Re: Storage and widgets

From: Scott Wilson <scott.bradley.wilson@gmail.com>
Date: Mon, 8 Jun 2009 21:58:04 +0100
Cc: Thomas Roessler <tlr@w3.org>, Arve Bersvendsen <arveb@opera.com>, public-webapps WG <public-webapps@w3.org>
Message-Id: <9D7CF7B3-9BA5-485B-900D-2389B977F04A@gmail.com>
To: marcosc@opera.com
I suggest we leave that to implementations; the UA is providing a  
preferences storage service to Widgets, and its the correct behaviour  
in that relationship that is important rather than where and how data  
gets stored by the UA.

In our case wiring Widget.preferences to window.localstorage simply  
won't work - we have to track state server-side and not only rely on  
the browser (remember we also have to handle shared-state widgets, a  
la Google Wave Gadgets - not just single-user, single-device-owner  
scenarios).  However in a lot of cases it would be sufficient, so is  
an implementation strategy worth supporting (hence making the API  
conform to Storage).


On 8 Jun 2009, at 19:34, Marcos Caceres wrote:

> 2009/4/25 Scott Wilson <scott.bradley.wilson@gmail.com>:
>> I think perhaps the underlying assumptions may vary according to  
>> the type of UA?
>> However, I think even on a single-user O/S (e.g. mobile) or in a  
>> sandboxed user context you would still want to maintain storage of  
>> preferences on a per-instance basis.
> I agree. I think the common use case will be to have per instance  
> storage.
> A question that arises is: what happens if the window object already
> provides storage? Should I use the widget storage or the window's
> storage. I personally think that they should be the same object (i.e.,
> widget.preference just references whatever the Window storage object
> is... I don't have the spec Web Storage spec handy, so I can't
> remember what it is called (window.storage?)).
> Kind regards,
> Marcos
> -- 
> Marcos Caceres
> http://datadriven.com.au

Received on Monday, 8 June 2009 20:58:45 UTC

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