From 65fe50d11f8df8bbb28a96e4714f1b6eeefd2515 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 15 Jul 2023 18:38:35 -0400 Subject: [PATCH] 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 --- chrome/content/zotero/xpcom/plugins.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/plugins.js b/chrome/content/zotero/xpcom/plugins.js index a717f4b20b..de0b87433a 100644 --- a/chrome/content/zotero/xpcom/plugins.js +++ b/chrome/content/zotero/xpcom/plugins.js @@ -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); },