Bug 1061112 - test_app_rep_windows.js needs some preference variables to be passed on comm-central. r=mmc

This commit is contained in:
Hiroyuki Ikezoe 2014-09-10 07:49:03 +01:00
Родитель 7abf58cbcc
Коммит 92538ce6bc
1 изменённых файлов: 10 добавлений и 0 удалений

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

@ -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();