Bug 1356331 Remove hotfix from telemetry r=chutten

MozReview-Commit-ID: GmNhsQnZ8Mh

--HG--
extra : rebase_source : 54c612f7875841968ae836fe501547498bc602bc
extra : source : 1f10773e304757ecefea9d75400960ee23ba101a
This commit is contained in:
Andrew Swan 2018-01-04 14:16:56 -08:00
Родитель 7e53463587
Коммит cf4c6f2553
3 изменённых файлов: 1 добавлений и 10 удалений

Просмотреть файл

@ -268,7 +268,6 @@ const PREF_DISTRIBUTION_ID = "distribution.id";
const PREF_DISTRIBUTION_VERSION = "distribution.version";
const PREF_DISTRIBUTOR = "app.distributor";
const PREF_DISTRIBUTOR_CHANNEL = "app.distributor.channel";
const PREF_HOTFIX_LASTVERSION = "extensions.hotfix.lastVersion";
const PREF_APP_PARTNER_BRANCH = "app.partner.";
const PREF_PARTNER_ID = "mozilla.partner.id";
const PREF_UPDATE_ENABLED = "app.update.enabled";
@ -1301,7 +1300,6 @@ EnvironmentCache.prototype = {
vendor: Services.appinfo.vendor || null,
platformVersion: Services.appinfo.platformVersion || null,
xpcomAbi: Services.appinfo.XPCOMABI,
hotfixVersion: Services.prefs.getStringPref(PREF_HOTFIX_LASTVERSION, null),
updaterAvailable: AppConstants.MOZ_UPDATER,
};

Просмотреть файл

@ -31,7 +31,6 @@ Structure:
vendor: <string>, // e.g. "Mozilla"
platformVersion: <string>, // e.g. "35.0"
xpcomAbi: <string>, // e.g. "x86-msvc"
hotfixVersion: <string>, // e.g. "20141211.01"
updaterAvailable: <bool>, // Whether the app was built with app update available (MOZ_UPDATER)
},
settings: {

Просмотреть файл

@ -38,7 +38,6 @@ const PLATFORM_VERSION = "1.9.2";
const APP_VERSION = "1";
const APP_ID = "xpcshell@tests.mozilla.org";
const APP_NAME = "XPCShell";
const APP_HOTFIX_VERSION = "2.3.4a";
const DISTRIBUTION_ID = "distributor-id";
const DISTRIBUTION_VERSION = "4.5.6b";
@ -391,10 +390,8 @@ function checkBuildSection(data) {
Assert.equal(data.build[f], expectedInfo[f], f + " must have the correct value.");
}
// Make sure architecture and hotfixVersion are in the environment.
// Make sure architecture is in the environment.
Assert.ok(checkString(data.build.architecture));
Assert.ok(checkString(data.build.hotfixVersion));
Assert.equal(data.build.hotfixVersion, APP_HOTFIX_VERSION);
if (gIsMac) {
let macUtils = Cc["@mozilla.org/xpcom/mac-utils;1"].getService(Ci.nsIMacUtils);
@ -910,9 +907,6 @@ add_task(async function setup() {
gHttpServer.registerDirectory("/data/", do_get_cwd());
registerCleanupFunction(() => gHttpServer.stop(() => {}));
// Spoof the the hotfixVersion
Preferences.set("extensions.hotfix.lastVersion", APP_HOTFIX_VERSION);
// Allow non-multiprocessCompatible extensions
Preferences.set("extensions.allow-non-mpc-extensions", true);