W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

Re: [widgets] Closing widget Interface issues

From: Marcos Caceres <marcosc@opera.com>
Date: Thu, 1 Oct 2009 13:48:46 +0200
Message-ID: <b21a10670910010448x7f7a35bs812355221ba49075@mail.gmail.com>
To: Scott Wilson <scott.bradley.wilson@gmail.com>
Cc: Arthur Barstow <art.barstow@nokia.com>, Arve Bersvendsen <arveb@opera.com>, Robin Berjon <robin@berjon.com>, public-webapps <public-webapps@w3.org>
On Mon, Sep 28, 2009 at 3:48 PM, Scott Wilson
<scott.bradley.wilson@gmail.com> wrote:
> #1 & #2 are the same issue; we haven't reached consensus yet, though as
> Marcos says in his response on #1, we are in agreement over what we are
> trying to achieve with this part of the spec - we just need to figure out
> which of the two approaches to take.

Right.

> My preference is to replace "origin of a widget" with "the widget instance",

Ok, "origin of a widget" is now gone in favor "widget instance". I
also got rid on the "widget context" concept, which was ambiguous and
confusing. Widget instance still needs a definition.

> and then phrase conformance in terms of UA requirements e.g. must offer a
> unique storage area bound to each widget instance, must not allow a widget
> instance to access or overwrite the storage area of another widget instance.

done.

> However, exactly how the UA binds a widget instance to a storage area would
> be an implementation detail.

Exactly.

> The implications I can see of such a change are:
> - There may no longer be a dependency on Widgets-URI [1], affecting section

There is now no dependency on Widget-URI

> 4: User Agents; in which case this can be removed from the definition of a
> User Agent
> - No need for definition "Origin of a widget" in Section 2: Definitions

done.

> - Extra definition "Widget instance" needed in Section 2: Definitions

Right. I'll work on that.

> - Change "origin of a widget" to "widget instance" in Section 5: Storage
done

> Areas and Section 7.4: Preferences
> - Change step 1 in Section 7.4.2: Initialization of the preferences
> attribute to "Establish the identity of the widget instance, and create a
> storage area that is unique for the widget instance"

done

> - Section 5: Storage Areas: "It is recommended that a user agent preserve
> the values stored in a storage area across subsequent instantiations of a
> widget (i.e., the data needs to be saved if the widget is closed, the device
> is rebooted, and then the widget is reopened)." this should be change. Sadly
> the best I can come up with is: "It is recommended that a user agent
> preserve the values stored in a storage area each time a widget instance is
> dereferenced (i.e., the data needs to be saved if the widget is closed, the
> device is rebooted, and then the widget is reopened)."

dereferenced I don't like (because of URI spec).

I think we should just say "re-instantiated".



-- 
Marcos Caceres
http://datadriven.com.au
Received on Thursday, 1 October 2009 11:49:40 GMT

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