Commit Graph

10 Commits

Author SHA1 Message Date
Luca Greco
38d8beb12e Bug 1477015 - Select storage.local backend on startup when the extension is not migrating its data. r=aswan,mixedpuppy
MozReview-Commit-ID: WzW2bFlYNg
2018-07-26 13:53:22 +02:00
Luca Greco
eaae5f2779 Bug 1476268 - Fix uncaught storage.local IDBTransaction error on explicit IDBTransaction abort. r=mixedpuppy
MozReview-Commit-ID: F4gA0V0eq8U
2018-07-16 17:43:57 +02:00
Luca Greco
e2d7ee1820 Bug 1470213 - Collect some per-addon telemetry related to the storage.local data migration results. r=chutten,mixedpuppy
MozReview-Commit-ID: BOWPHEwE9Cg
2018-07-06 18:56:20 +02:00
Luca Greco
541560466e Bug 1475306 - Changes to the detection of extensions already migrated to ExtensionStorageIDB and rename successfully migrated JSONFile. r=mixedpuppy
This patch applies the following changes to the storage.local data migration behaviors:

- An about:config preference is set when an extension has been migrated successfully to the
  storage.local IndexedDB backend (cleared automatically if the addon is uninstalled).
- If the above about:config preference is set, the storage.local IndexedDB backend is enabled
  without attempting to open an IndexedDB connection for the new backend.
- While migrating an extension, if we fail to open the IndexedDB connection, the data migration
  is cancelled and the storage.local API is going to fallback to the storage.local JSONFile backend
  (until the next extension startup, when a new data migration is going to be tried).
- When a migration is completed successfully, the old JSONFile is renamed (by appending ".migrated"
  to its original file name) instead of being removed.

MozReview-Commit-ID: LPM0fQUagTd
2018-07-06 19:07:28 +02:00
Luca Greco
2c195cc3a8 Bug 1474557 - Prevent ExtensionStorageIDB and child/ext-storage from caching a stale or rejected selectBackend promise. r=mixedpuppy
MozReview-Commit-ID: Kgwtm7QXW9o
2018-07-09 22:35:12 +02:00
Luca Greco
6955a5677f Bug 1465129 - Collect telemetry data related to the storage.local "JSONFile to IDBBackend" data migrations. r=mixedpuppy
MozReview-Commit-ID: 3iGv5XkqeA3
2018-06-17 13:38:02 +02:00
Luca Greco
a2474fddfa Bug 1467720 - Fix "dead object" error raised from ext-storage.js on browser.storage.local API calls. r=aswan
When ExtensionStorageIDB.selectBackend is called from a child process, it calls the main process
and cache the result as a promise, to be reused for the other contexts for the same extension
that are running in the same process.

The cached promise should not be tied to a particular extension context's cloneScope, otherwise
accessing it will raise "can't access dead object" errors after that cloneScope has been
destroyed.

MozReview-Commit-ID: GJuul8sQmlF
2018-06-08 05:19:34 +02:00
Luca Greco
fb1814a3e1 Bug 1406181 - Add ExtensionStorageIDB JSM module. r=aswan
This patch defined a new ExtensionStorageIDB module, which provides the
same "internal" API currently provided by ExtensionStorage and uses
IndexedDB as its backend (instead of the JSONFile used as the backend
provided by ExtensionStorage).

MozReview-Commit-ID: DsvPudExcyr
2017-10-17 04:12:15 +02:00
Cosmin Sabou
0f5163a609 Backed out 10 changesets (bug 1406181) as per developers request.
Backed out changeset 06461ddb2699 (bug 1406181)
Backed out changeset fd61d9faedf0 (bug 1406181)
Backed out changeset b52c2fb70ae1 (bug 1406181)
Backed out changeset 4f387b4a76a9 (bug 1406181)
Backed out changeset db783c96c076 (bug 1406181)
Backed out changeset 62e9126ecd0d (bug 1406181)
Backed out changeset d34810cab822 (bug 1406181)
Backed out changeset 3241c2dfb296 (bug 1406181)
Backed out changeset 912a2eaf4d26 (bug 1406181)
Backed out changeset fdac47b8ef20 (bug 1406181)
2018-06-03 16:10:23 +03:00
Luca Greco
c751280589 Bug 1406181 - Add ExtensionStorageIDB JSM module. r=aswan
This patch defined a new ExtensionStorageIDB module, which provides the
same "internal" API currently provided by ExtensionStorage and uses
IndexedDB as its backend (instead of the JSONFile used as the backend
provided by ExtensionStorage).

MozReview-Commit-ID: DsvPudExcyr
2017-10-17 04:12:15 +02:00