Bug 1600122 - Use the complete list of addons for determing policy. r=mixedpuppy a=jcristau
authorMichael Kaply <mozilla@kaply.com>
Wed, 04 Dec 2019 09:56:50 +0000
changeset 566850 0c159faaff1985adede7330f7f48f19b25f782a0
parent 566849 6116c81ec095b3b9db543320756ada19dfe46b06
child 566851 63a39a6f28d152a01a349252c1c75cf11219e441
push id12436
push usernerli@mozilla.com
push dateMon, 16 Dec 2019 17:30:10 +0000
treeherdermozilla-beta@7e9e38f8bd84 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmixedpuppy, jcristau
bugs1600122
milestone72.0
Bug 1600122 - Use the complete list of addons for determing policy. r=mixedpuppy a=jcristau Differential Revision: https://phabricator.services.mozilla.com/D55732
browser/components/enterprisepolicies/Policies.jsm
--- a/browser/components/enterprisepolicies/Policies.jsm
+++ b/browser/components/enterprisepolicies/Policies.jsm
@@ -777,17 +777,17 @@ var Policies = {
         ) {
           blockAllExtensions = true;
           // Turn off discovery pane in about:addons
           setAndLockPref("extensions.getAddons.showPane", false);
           // Block about:debugging
           blockAboutPage(manager, "about:debugging");
         }
       }
-      let { addons } = await AddonManager.getActiveAddons();
+      let addons = await AddonManager.getAllAddons();
       let allowedExtensions = [];
       for (let extensionID in extensionSettings) {
         if (extensionID == "*") {
           // Ignore global settings
           continue;
         }
         if ("installation_mode" in extensionSettings[extensionID]) {
           if (