Bug 1358907 Part 1a Use callProvider() properly in AddonManager.getActiveAddons r=me
authorAndrew Swan <aswan@mozilla.com>
Thu, 29 Jun 2017 17:41:53 -0700
changeset 366922 34e563f2316bee8e241bb11c752c21ba19a08d3f
parent 366921 50b6fb73c9606d9bf77ab733038c73f71b07b3a5
child 366923 3bc8240fce3886b172cf4e4b907b8ad56e4d3a76
push id32109
push usercbook@mozilla.com
push dateFri, 30 Jun 2017 11:00:05 +0000
treeherdermozilla-central@d536973fe668 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1358907
milestone56.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 1358907 Part 1a Use callProvider() properly in AddonManager.getActiveAddons r=me MozReview-Commit-ID: 1Ocmxm3fLBg
toolkit/mozapps/extensions/AddonManager.jsm
--- a/toolkit/mozapps/extensions/AddonManager.jsm
+++ b/toolkit/mozapps/extensions/AddonManager.jsm
@@ -2512,17 +2512,17 @@ var AddonManagerInternal = {
       throw Components.Exception("aTypes must be an array or null",
                                  Cr.NS_ERROR_INVALID_ARG);
 
     let addons = [];
 
     for (let provider of this.providers) {
       let providerAddons;
       if ("getActiveAddons" in provider) {
-        providerAddons = await callProvider(provider, "getActiveAddons", aTypes);
+        providerAddons = await callProvider(provider, "getActiveAddons", null, aTypes);
       } else {
         providerAddons = await promiseCallProvider(provider, "getAddonsByTypes", aTypes);
         providerAddons = providerAddons.filter(a => a.isActive);
       }
 
       if (providerAddons)
         addons.push(...providerAddons);
     }