Bug 1433334 - Add installTelemetryInfo to addon installed from Marionette.
MozReview-Commit-ID: D3MDkGV7z0X
--- a/testing/marionette/addon.js
+++ b/testing/marionette/addon.js
@@ -16,17 +16,17 @@ const ERRORS = {
[-1]: "ERROR_NETWORK_FAILURE: A network error occured.",
[-2]: "ERROR_INCORECT_HASH: The downloaded file did not match the expected hash.",
[-3]: "ERROR_CORRUPT_FILE: The file appears to be corrupt.",
[-4]: "ERROR_FILE_ACCESS: There was an error accessing the filesystem.",
[-5]: "ERROR_SIGNEDSTATE_REQUIRED: The addon must be signed and isn't.",
};
async function installAddon(file) {
- let install = await AddonManager.getInstallForFile(file);
+ let install = await AddonManager.getInstallForFile(file, null, {source: "marionette"});
return new Promise(resolve => {
if (install.error) {
throw new UnknownError(ERRORS[install.error]);
}
let addonId = install.addon.id;