Bug 1486762 - Add installTelemetryInfo to addon installed from WebIDE. r=jdescottes
authorLuca Greco <lgreco@mozilla.com>
Wed, 12 Sep 2018 10:05:03 +0000
changeset 436044 82ec584ba21dc00124c94aed3807cc0342f5aa42
parent 436043 cf6d981db639aaf6833e8b5f33cc00c84bca9b30
child 436045 a66a85285cb09523916bc95e30a42056b798e935
push id34625
push userdvarga@mozilla.com
push dateThu, 13 Sep 2018 02:31:40 +0000
treeherdermozilla-central@51e9e9660b3e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes
bugs1486762
milestone64.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 1486762 - Add installTelemetryInfo to addon installed from WebIDE. r=jdescottes Differential Revision: https://phabricator.services.mozilla.com/D5550
devtools/client/webide/modules/addons.js
--- a/devtools/client/webide/modules/addons.js
+++ b/devtools/client/webide/modules/addons.js
@@ -76,17 +76,18 @@ Addon.prototype = {
     if (addon && !addon.userDisabled) {
       this.status = "installed";
       return;
     }
     this.status = "preparing";
     if (addon && addon.userDisabled) {
       await addon.enable();
     } else {
-      const install = await AddonManager.getInstallForURL(this.xpiLink, "application/x-xpinstall");
+      const install = await AddonManager.getInstallForURL(this.xpiLink, "application/x-xpinstall", null,
+                                                          null, null, null, null, {source: "webide"});
       install.addListener(this);
       install.install();
     }
   },
 
   uninstall: async function() {
     const addon = await AddonManager.getAddonByID(this.addonID);
     addon.uninstall();