зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1d3899d566
Коммит
a781bf9f5a
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче