mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1061112 - test_app_rep_windows.js needs some preference variables to be passed on comm-central. r=mmc
This commit is contained in:
parent
bd912b962b
commit
135a0d2c89
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user