PSA: New Promise-based IndexedDB.jsm module

Kit Cambridge kit at mozilla.com
Mon Mar 27 16:50:06 UTC 2017


On Sat, Mar 25, 2017 at 7:27 PM, Kris Maglione <kmaglione at mozilla.com> wrote:
> A couple of weeks ago, I added a new Promise-based IndexedDB helper module
> as part of some performance work I was doing:
>
> http://searchfox.org/mozilla-central/source/toolkit/modules/IndexedDB.jsm

This looks quite elegant, Kris, thank you for sharing!

One other thing to keep in mind when using IDB is that changes to the
underlying storage schema are not always backward-compatible, and will
make the DB unusable on older releases. We ran into this with Push in
https://bugzilla.mozilla.org/show_bug.cgi?id=1258596. I know we're
working on a story for profile downgrades in
https://bugzilla.mozilla.org/show_bug.cgi?id=1246615, but it's
something to be aware of if you switch between channels using the same
profile.

Cheers,
- kit



More information about the firefox-dev mailing list