зеркало из https://github.com/mozilla/gecko-dev.git
Bug 901198 Ensure safe browsing is enabled when running test_app_rep.js so that testing applications that don't enable it will pass as well. r=paolo
This commit is contained in:
Родитель
27731f2af6
Коммит
bcbb560ea9
|
@ -19,6 +19,13 @@ function run_test() {
|
|||
// Set up a local HTTP server to return bad verdicts.
|
||||
Services.prefs.setCharPref("browser.safebrowsing.appRepURL",
|
||||
"http://localhost:4444/download");
|
||||
// Ensure safebrowsing is enabled for this test, even if the app
|
||||
// doesn't have it enabled.
|
||||
Services.prefs.setBoolPref("browser.safebrowsing.malware.enabled", true);
|
||||
do_register_cleanup(function() {
|
||||
Services.prefs.clearUserPref("browser.safebrowsing.malware.enabled");
|
||||
});
|
||||
|
||||
gHttpServ = new HttpServer();
|
||||
gHttpServ.registerDirectory("/", do_get_cwd());
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче