Re: [widgets] Preferences API

2008-09-30 Thread Jonas Sicking


Arve Bersvendsen wrote:


On Tue, 30 Sep 2008 01:35:42 +0200, Marcos Caceres 
[EMAIL PROTECTED] wrote:




Hi All,
I think we should dump the Widgets preferences API in favor of HTML5
DOM's storage API. Basically, preferences API basically replicates
what DOM Storage already defines. Also, DOM storage is already
implemented across three or four browsers and we can assume the
specification to be fairly stable (or hopefully it will be by the time
we get to CR). Dumping the preferences API will also avoid problems in
the future as HTML5 becomes prevalent in the market.


While I, in principle, agree that not replicating existing storage APIs 
is a good thing, are we sure that all widget implementations will 
implement HTML5?  Also, are we sure that a preference storage may not 
have additional requirements that make them a bad match (such as 
encryption of stored data)?


There is nothing that prevents requiring that that specific part of the 
HTML5 spec be implemented. This wouldn't require the whole of HTML5 to 
be implemented.


Also, if there are additional requirements, it might be a good idea to 
raise them with the HTML5 WG to ensure that the storage API can be 
reused for widgets.


/ Jonas



Re: [widgets] Preferences API

2008-09-30 Thread Marcos Caceres

On Tue, Sep 30, 2008 at 12:19 PM, Arve Bersvendsen [EMAIL PROTECTED] wrote:
 On Tue, 30 Sep 2008 01:35:42 +0200, Marcos Caceres
 [EMAIL PROTECTED] wrote:


 Hi All,
 I think we should dump the Widgets preferences API in favor of HTML5
 DOM's storage API. Basically, preferences API basically replicates
 what DOM Storage already defines. Also, DOM storage is already
 implemented across three or four browsers and we can assume the
 specification to be fairly stable (or hopefully it will be by the time
 we get to CR). Dumping the preferences API will also avoid problems in
 the future as HTML5 becomes prevalent in the market.

 While I, in principle, agree that not replicating existing storage APIs is a
 good thing, are we sure that all widget implementations will implement
 HTML5?

As Jonas said, we would just mandate that implementations implement
just that one part of HTML5. Or, we just rip that part of HTML5 and
put it in our spec and make sure we keep them synced.

Also, are we sure that a preference storage may not have additional
 requirements that make them a bad match (such as encryption of stored data)?


I also agree with Jonas that if it's good for widgets, it's probably
good for HTML5 as a whole. For V1 of widgets, I think that HTML5's
storage meets r26 [1]. But if new requirements arise (such as data
encryption) we should work with the HTML-WG on that.

Kind regards,
Marcos

[1] http://dev.w3.org/2006/waf/widgets-reqs/#r26.-



-- 
Marcos Caceres
http://datadriven.com.au



Re: [widgets] Preferences API

2008-09-30 Thread Marcos Caceres

On Tue, Sep 30, 2008 at 5:36 PM, Arve Bersvendsen [EMAIL PROTECTED] wrote:
 On Tue, 30 Sep 2008 18:28:59 +0200, Marcos Caceres
 [EMAIL PROTECTED] wrote:

 While I, in principle, agree that not replicating existing storage APIs
 is a
 good thing, are we sure that all widget implementations will implement
 HTML5?

 As Jonas said, we would just mandate that implementations implement
 just that one part of HTML5. Or, we just rip that part of HTML5 and
 put it in our spec and make sure we keep them synced.

 If we are to do one of these, I'd very much prefer not to have to keep it
 continously updated until 2022.


Agreed. If the Working Group feels comfortable with citing HTML5 for
this feature, I think we should.

 Also, are we sure that a preference storage may not have additional
 requirements that make them a bad match (such as encryption of stored
 data)?

 I also agree with Jonas that if it's good for widgets, it's probably
 good for HTML5 as a whole. For V1 of widgets, I think that HTML5's
 storage meets r26 [1]. But if new requirements arise (such as data
 encryption) we should work with the HTML-WG on that.

 Note that encryption, which was my example here, may be an implementation
 detail. I was just trying to say something about the requirement for HTML5
 and Widgets might be different.

Understood. Appologies, I didn't mean to imply you meant it as an
actual feature request. Having said that, the requirements for v1 in
regards to this feature are clearly captured in the requirements doc.
As we now have consensus within the working group regarding the
requirements, I don't foresee them changing for V1. If we need to fork
for V2, that should hopefully be ok.

Kind regards,
Marcos
-- 
Marcos Caceres
http://datadriven.com.au



[widgets] Preferences API

2008-09-29 Thread Marcos Caceres

Hi All,
I think we should dump the Widgets preferences API in favor of HTML5
DOM's storage API. Basically, preferences API basically replicates
what DOM Storage already defines. Also, DOM storage is already
implemented across three or four browsers and we can assume the
specification to be fairly stable (or hopefully it will be by the time
we get to CR). Dumping the preferences API will also avoid problems in
the future as HTML5 becomes prevalent in the market.

Kind regards,
Marcos

-- 
Marcos Caceres
http://datadriven.com.au