Bug 1357517 - Remove Preferences.jsm usage from workers test. r=bz

--HG--
extra : rebase_source : def289709e87e2afb4ab587985777a2bfbabfef1
This commit is contained in:
Marco Castelluccio 2017-07-28 21:20:53 +02:00
Родитель fad7d3b87b
Коммит 7944b79d44
1 изменённых файлов: 3 добавлений и 7 удалений

Просмотреть файл

@ -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