зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 2ad68bdfb2ed (bug 1344590) for mochitest bustage
MozReview-Commit-ID: 7lUtSXTsmnT
This commit is contained in:
Родитель
3cb0726c57
Коммит
8ff285737a
|
@ -96,11 +96,6 @@ let StartupCache = {
|
|||
},
|
||||
|
||||
async reallyOpen(invalidate = false) {
|
||||
if (Services.appinfo.processType !== Services.appinfo.PROCESS_TYPE_DEFAULT) {
|
||||
throw new Error("Startup cache only supported in parent process");
|
||||
}
|
||||
Services.obs.addObserver(StartupCache, "startupcache-invalidate", false);
|
||||
|
||||
if (this.dbPromise) {
|
||||
let db = await this.dbPromise;
|
||||
db.close();
|
||||
|
@ -109,7 +104,9 @@ let StartupCache = {
|
|||
if (invalidate) {
|
||||
this.cacheInvalidated = ExtensionManagement.cacheInvalidated;
|
||||
|
||||
IndexedDB.deleteDatabase(this.DB_NAME, {storage: "persistent"});
|
||||
if (Services.appinfo.processType === Services.appinfo.PROCESS_TYPE_DEFAULT) {
|
||||
IndexedDB.deleteDatabase(this.DB_NAME, {storage: "persistent"});
|
||||
}
|
||||
}
|
||||
|
||||
return IndexedDB.open(this.DB_NAME,
|
||||
|
@ -134,6 +131,8 @@ let StartupCache = {
|
|||
},
|
||||
};
|
||||
|
||||
Services.obs.addObserver(StartupCache, "startupcache-invalidate", false);
|
||||
|
||||
class CacheStore {
|
||||
constructor(storeName) {
|
||||
this.storeName = storeName;
|
||||
|
|
|
@ -438,7 +438,7 @@ add_task(function* () {
|
|||
});
|
||||
|
||||
|
||||
add_task(function* test_invalidated_lazy_injection() {
|
||||
add_task(function* test_neuter() {
|
||||
context.permissionsChanged = null;
|
||||
|
||||
let root = {};
|
||||
|
|
Загрузка…
Ссылка в новой задаче