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

Re: [Bug 11280] New: IDBFactory.databases doesn't work

From: Jonas Sicking <jonas@sicking.cc>
Date: Fri, 12 Nov 2010 11:22:12 -0800
Message-ID: <AANLkTikas9T4SsjPS1o8eRUW0AvGW+rKwCK_hqUHor-6@mail.gmail.com>
To: Jeremy Orlow <jorlow@chromium.org>
Cc: public-webapps WG <public-webapps@w3.org>
On Thu, Nov 11, 2010 at 4:11 AM, Jeremy Orlow <jorlow@chromium.org> wrote:
> I think it's useful and it's one of the things I recall people asking for
> early on, but I agree it's flawed as is.  I guess we should just remove it
> for now and come back to it later based on demand.

I removed it for now. Unfortunately a fully "correct" API would be
very complicated. First of all we'd need some sort of asynchronous
accessor as to avoid forcing synchronous IO.

Second, while in that callback we should probably hold some sort of
lock which prevents other threads from creating and deleting
databases, so that a site could perform open and delete operations
from within the callback and be guaranteed that the set of existing
database doesn't change in the meantime.

At that point it's a fairly complicated API and so something that IMHO
is better left for v2. I've put it on my v2 list.

/ Jonas
Received on Friday, 12 November 2010 19:23:01 UTC

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