Bug 1688838 - Also disable other prefs that may trigger OMT use of MockRegistry.jsm r=necko-reviewers,kershaw

Differential Revision: https://phabricator.services.mozilla.com/D103464
This commit is contained in:
Valentin Gosu 2021-02-02 10:56:16 +00:00
parent ccd9d56677
commit 2ae4bc3d94

View File

@ -96,6 +96,16 @@ class MockRegistry {
);
Services.prefs.setBoolPref("network.notify.dnsSuffixList", false);
this.oldCheckForProxiesPref = Services.prefs.getBoolPref(
"network.notify.checkForProxies"
);
Services.prefs.setBoolPref("network.notify.checkForProxies", false);
this.oldCheckForNRPTPref = Services.prefs.getBoolPref(
"network.notify.checkForNRPT"
);
Services.prefs.setBoolPref("network.notify.checkForNRPT", false);
this.cid = MockRegistrar.register(
"@mozilla.org/windows-registry-key;1",
MockWindowsRegKey
@ -108,6 +118,14 @@ class MockRegistry {
"network.notify.dnsSuffixList",
this.oldSuffixListPref
);
Services.prefs.setBoolPref(
"network.notify.checkForProxies",
this.oldCheckForProxiesPref
);
Services.prefs.setBoolPref(
"network.notify.checkForNRPT",
this.oldCheckForNRPTPref
);
this.cid = null;
}