Bug 1739284 - Override telemetry products check in test_GMPInstallManager.js. r=bryce

Differential Revision: https://phabricator.services.mozilla.com/D130325
This commit is contained in:
Geoff Lankow 2021-11-04 02:35:05 +00:00
Родитель 1d3899d566
Коммит a781bf9f5a
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -36,9 +36,17 @@ var ProductAddonCheckerScope = ChromeUtils.import(
Services.prefs.setBoolPref("security.allow_eval_with_system_principal", true);
Services.prefs.setBoolPref("media.gmp-manager.updateEnabled", true);
// Gather the telemetry even where the probes don't exist (i.e. Thunderbird).
Services.prefs.setBoolPref(
"toolkit.telemetry.testing.overrideProductsCheck",
true
);
registerCleanupFunction(() => {
Services.prefs.clearUserPref("security.allow_eval_with_system_principal");
Services.prefs.clearUserPref("media.gmp-manager.updateEnabled");
Services.prefs.clearUserPref(
"toolkit.telemetry.testing.overrideProductsCheck"
);
});
// Most tests do no handle the machinery for content signatures, so let
// specific tests that need it turn it on as needed.