mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
ccd9d56677
commit
2ae4bc3d94
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user