Bug 1433334 - Add installTelemetryInfo to distro addons installed on Firefox for Android.
MozReview-Commit-ID: HXiCQC2g8SI
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -6590,17 +6590,17 @@ var Distribution = {
try {
yield it.forEach(entry => {
// Only support extensions that are zipped in .xpi files.
if (entry.isDir || !entry.name.endsWith(".xpi")) {
dump("Ignoring distribution add-on that isn't an XPI: " + entry.path);
return;
}
- AddonManager.getInstallForFile(new FileUtils.File(entry.path)).then(install => {
+ AddonManager.getInstallForFile(new FileUtils.File(entry.path), null, {source: "distro"}).then(install => {
let id = entry.name.substring(0, entry.name.length - 4);
if (install.addon.id !== id) {
Cu.reportError("File entry " + entry.path + " contains an add-on with an incorrect ID");
return;
}
this.pendingAddonInstalls.add(install);
install.install();
}).catch(e => {