Clear startup cache when uninstalling/upgrading plugins

https://groups.google.com/g/zotero-dev/c/0nfU-F2q1uI/m/1jBVmMZxBAAJ

Removed by Mozilla in
https://bugzilla.mozilla.org/show_bug.cgi?id=1445739, since
WebExtensions don't put anything in the startup cache
This commit is contained in:
Dan Stillman 2023-07-15 18:38:35 -04:00
parent 838152155e
commit 65fe50d11f

View file

@ -363,6 +363,7 @@ Zotero.Plugins = new function () {
await _callMethod(existingAddon, 'shutdown', reason);
}
await _callMethod(existingAddon, 'uninstall', reason);
Services.obs.notifyObservers(null, "startupcache-invalidate");
}
},
@ -415,6 +416,7 @@ Zotero.Plugins = new function () {
await _callMethod(addon, 'shutdown', REASONS.ADDON_UNINSTALL);
}
await _callMethod(addon, 'uninstall', REASONS.ADDON_UNINSTALL);
Services.obs.notifyObservers(null, "startupcache-invalidate");
unregisterLocales(addon);
clearDefaultPrefs(addon);
},