From 92538ce6bcd060babc147c65d59c62353cd2203c Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Wed, 10 Sep 2014 07:49:03 +0100 Subject: [PATCH] Bug 1061112 - test_app_rep_windows.js needs some preference variables to be passed on comm-central. r=mmc --- .../downloads/test/unit/test_app_rep_windows.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/toolkit/components/downloads/test/unit/test_app_rep_windows.js b/toolkit/components/downloads/test/unit/test_app_rep_windows.js index 950a24aede62..12753483a6bb 100644 --- a/toolkit/components/downloads/test/unit/test_app_rep_windows.js +++ b/toolkit/components/downloads/test/unit/test_app_rep_windows.js @@ -179,8 +179,18 @@ add_task(function test_setup() // Ensure safebrowsing is enabled for this test, even if the app // doesn't have it enabled. Services.prefs.setBoolPref("browser.safebrowsing.malware.enabled", true); + Services.prefs.setBoolPref("browser.safebrowsing.downloads.enabled", true); + // Set block and allow tables explicitly, since the allowlist is normally + // disabled on comm-central. + Services.prefs.setCharPref("urlclassifier.downloadBlockTable", + "goog-badbinurl-shavar"); + Services.prefs.setCharPref("urlclassifier.downloadAllowTable", + "goog-downloadwhite-digest256"); do_register_cleanup(function() { Services.prefs.clearUserPref("browser.safebrowsing.malware.enabled"); + Services.prefs.clearUserPref("browser.safebrowsing.downloads.enabled"); + Services.prefs.clearUserPref("urlclassifier.downloadBlockTable"); + Services.prefs.clearUserPref("urlclassifier.downloadAllowTable"); }); gHttpServer = new HttpServer();