Bug 1696151 - Make sure network.jar.record_failure_reason is true when the test is running r=zbraniecki

Differential Revision: https://phabricator.services.mozilla.com/D107061
This commit is contained in:
Kershaw Chang 2021-03-03 15:54:59 +00:00
parent 3aa91efcfc
commit 970b68dbba
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,8 @@ Services.prefs.setBoolPref(
true
);
Services.prefs.setBoolPref("network.jar.record_failure_reason", true);
const fileBase = "test_empty_file.zip";
const file = do_get_file("data/" + fileBase);
const jarBase = "jar:" + Services.io.newFileURI(file).spec + "!";
@ -45,6 +47,7 @@ function setup() {
setup();
registerCleanupFunction(async () => {
Services.prefs.clearUserPref("network.jar.record_failure_reason");
try {
copy.remove(false);
} catch (e) {}

View File

@ -9034,7 +9034,7 @@
# Whether to record the telemetry event when a JAR channel is failed to load.
- name: network.jar.record_failure_reason
type: RelaxedAtomicBool
value: @IS_NIGHTLY_OR_DEV_EDITION@
value: true
mirror: always
#---------------------------------------------------------------------------