зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1357517 - Remove Preferences.jsm usage from workers test. r=bz
--HG-- extra : rebase_source : def289709e87e2afb4ab587985777a2bfbabfef1
This commit is contained in:
Родитель
fad7d3b87b
Коммит
7944b79d44
|
@ -9,14 +9,10 @@ const WORKER_URL = EXAMPLE_URL + "bug1047663_worker.sjs";
|
|||
function test() {
|
||||
waitForExplicitFinish();
|
||||
|
||||
// Disable rcwn to make cache behavior deterministic.
|
||||
let rcwnEnabled = Preferences.get("network.http.rcwn.enabled");
|
||||
Preferences.set("network.http.rcwn.enabled", false);
|
||||
registerCleanupFunction(()=>{
|
||||
Preferences.set("network.http.rcwn.enabled", rcwnEnabled);
|
||||
});
|
||||
|
||||
(async function() {
|
||||
// Disable rcwn to make cache behavior deterministic.
|
||||
await SpecialPowers.pushPrefEnv({set: [["network.http.rcwn.enabled", false]]});
|
||||
|
||||
let tab = await addTab(TAB_URL);
|
||||
|
||||
// Create a worker. Post a message to it, and check the reply. Since the
|
||||
|
|
Загрузка…
Ссылка в новой задаче