icecat: add release icecat-140.8.0-2 for aramo
This commit is contained in:
parent
d9a6c0aa96
commit
d570f39e11
616 changed files with 39955 additions and 33937 deletions
|
|
@ -1175,6 +1175,7 @@ class RulesetsStore {
|
|||
let storeData = this.#getDefaults(extension);
|
||||
this._data.set(extension.uuid, storeData);
|
||||
this._dataPromises.set(extension.uuid, Promise.resolve(storeData));
|
||||
this._startupCacheData.delete(extension.uuid);
|
||||
this.unloadOnShutdown(extension);
|
||||
}
|
||||
}
|
||||
|
|
@ -1200,14 +1201,6 @@ class RulesetsStore {
|
|||
|
||||
#promiseStartupCacheLoaded() {
|
||||
if (!this._ensureCacheLoaded) {
|
||||
if (this._data.size) {
|
||||
return Promise.reject(
|
||||
new Error(
|
||||
"Unexpected non-empty DNRStore data. DNR startupCache data load aborted."
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
const startTime = Cu.now();
|
||||
const timerId = Glean.extensionsApisDnr.startupCacheReadTime.start();
|
||||
this._ensureCacheLoaded = (async () => {
|
||||
|
|
@ -1225,16 +1218,16 @@ class RulesetsStore {
|
|||
await IOUtils.remove(cacheFilePath, { ignoreAbsent: true });
|
||||
return;
|
||||
}
|
||||
if (this._data.size) {
|
||||
Cu.reportError(
|
||||
`Unexpected non-empty DNRStore data. DNR startupCache data load dropped.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
for (const [
|
||||
extUUID,
|
||||
cacheStoreData,
|
||||
] of decodedData.cacheData.entries()) {
|
||||
if (this._data.has(extUUID)) {
|
||||
// Already initialized elsewhere (#initExtension), initially with
|
||||
// empty data, but potentially already expanded with more data by
|
||||
// now. Ignore this startupcache entry.
|
||||
continue;
|
||||
}
|
||||
if (StoreData.isStaleCacheEntry(extUUID, cacheStoreData)) {
|
||||
StoreData.clearLastUpdateTagPref(extUUID);
|
||||
continue;
|
||||
|
|
@ -1364,7 +1357,21 @@ class RulesetsStore {
|
|||
// (because the StoreData instances get converted into plain objects when
|
||||
// serialized into the startupCache structured clone blobs).
|
||||
async #readStoreDataFromStartupCache(extension) {
|
||||
if (this._data.has(extension.uuid)) {
|
||||
// This should be unreachable.
|
||||
Cu.reportError(
|
||||
`Unexpected non-empty DNRStore data. DNR startupCache data load aborted for ${extension.id}.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
await this.#promiseStartupCacheLoaded();
|
||||
if (this._data.has(extension.uuid)) {
|
||||
// This should be unreachable.
|
||||
Cu.reportError(
|
||||
`Unexpected non-empty DNRStore data. DNR startupCache data load dropped for ${extension.id}.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this._startupCacheData.has(extension.uuid)) {
|
||||
Glean.extensionsApisDnr.startupCacheEntries.miss.add(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue