W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Re: [IndexedDB] question about description argument of IDBFactory::open()

From: Shawn Wilsher <sdwilsh@mozilla.com>
Date: Mon, 09 Aug 2010 13:42:35 -0700
Message-ID: <4C60683B.2010508@mozilla.com>
To: Andrei Popescu <andreip@google.com>
CC: Webapps WG <public-webapps@w3.org>
On 8/9/2010 1:13 PM, Andrei Popescu wrote:
> While implementing IDBFactory::open(), we thought that the
> "description" argument is optional but we were surprised to find out
> it's actually mandatory. Is there any reason not to make this argument
> optional? And, assuming it is optional, should the default value be
> the empty string? Also, how should the null and undefined values be
> treated? My suggestion would be to treat them as if the argument
> wasn't specified, so the description of the database would not change.
I think we want something there, because that is likely what the user 
agent is going to tell the user when it has to ask for space (if the 
user agent limits) or display if the user wants to see what a site is 
storing locally.

I think we should probably enforce a non-null string too because of 
this, although a null string for future connections meaning "do not 
change" seem fine to me.  I started a bug [1] a while back about what to 
do if it changes, but it went nowhere.

Cheers,

Shawn

[1] http://www.w3.org/Bugs/Public/show_bug.cgi?id=9562



Received on Monday, 9 August 2010 20:43:13 GMT

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