PSA: New Promise-based IndexedDB.jsm module

Marco Bonardo mbonardo at
Sun Mar 26 18:38:06 UTC 2017

On Sun, Mar 26, 2017 at 1:44 PM, Anne van Kesteren <annevk at> wrote:

> On Sun, Mar 26, 2017 at 11:03 AM, Dão Gottwald <dgottwald at>
> wrote:
> > Kris, what lead you to wanting to use IndexedDB here? What are the
> tradeoffs
> > compared to mozstorage or plain JSON (see sessionstore)?
> Not blocking on I/O seems pretty important, especially for UI. I'm
> surprised we don't make more use of it.

Sqlite.jsm does all I/O off the main-thread. I'm not saying it should be
used here, since every storage case must be evaluated by itself based on
its requirements (all of osfile+jsonl+z4, sqlite.jsm or indexeddb may be
valid choices depending on those).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the firefox-dev mailing list