зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1061112 - test_app_rep_windows.js needs some preference variables to be passed on comm-central. r=mmc
This commit is contained in:
Родитель
7abf58cbcc
Коммит
92538ce6bc
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче