Bug 1600122 - Use the complete list of addons for determing policy. r=mixedpuppy
authorMichael Kaply <mozilla@kaply.com>
Wed, 04 Dec 2019 09:56:50 +0000
changeset 505446 d8b0a5b0a5afb91ec00330a5c2a9b341ff66ff5f
parent 505445 b2eeefe2fdec17f6ba98eb2074fca34ef2f7f167
child 505447 e4c1a6acc2b152f69aefa80f46b8c14d999cc385
push id36883
push userapavel@mozilla.com
push dateThu, 05 Dec 2019 04:11:08 +0000
treeherdermozilla-central@ba237def08d5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmixedpuppy
bugs1600122
milestone73.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1600122 - Use the complete list of addons for determing policy. r=mixedpuppy 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 (