зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1883171 - Reset the pref properly, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D205031
This commit is contained in:
Родитель
3f906682d9
Коммит
a70e3047cb
|
@ -19,12 +19,15 @@ async function doTest()
|
|||
{
|
||||
await SpecialPowers.setBoolPref("network.http.debug-observations", true);
|
||||
|
||||
SimpleTest.registerCleanupFunction(async () => {
|
||||
await SpecialPowers.setBoolPref("network.http.debug-observations", false);
|
||||
});
|
||||
|
||||
observer = SpecialPowers.wrapCallback(function() {
|
||||
remainder--;
|
||||
ok(true, "observed remainder = " + remainder);
|
||||
if (!remainder) {
|
||||
SpecialPowers.removeObserver(observer, "speculative-connect-request");
|
||||
SpecialPowers.setBoolPref("network.http.debug-observations", false);
|
||||
SimpleTest.finish();
|
||||
}
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче