зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 3d94ebde9018 (bug 985720) for missing a file from the patch to fix a CLOSED TREE
This commit is contained in:
Родитель
a54f1591df
Коммит
7e6ad8beb5
|
@ -828,12 +828,12 @@ pref("urlclassifier.gethashnoise", 4);
|
|||
// the database.
|
||||
pref("urlclassifier.max-complete-age", 2700);
|
||||
// Tables for application reputation.
|
||||
pref("urlclassifier.downloadBlockTable", "goog-badbinurl-shavar");
|
||||
pref("urlclassifier.download_block_table", "goog-badbinurl-shavar");
|
||||
#ifdef XP_WIN
|
||||
// Only download the whitelist on Windows, since the whitelist is
|
||||
// only useful for suppressing remote lookups for signed binaries which we can
|
||||
// only verify on Windows (Bug 974579).
|
||||
pref("urlclassifier.downloadAllowTable", "goog-downloadwhite-digest256");
|
||||
pref("urlclassifier.download_allow_table", "goog-downloadwhite-digest256");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -55,8 +55,8 @@ using safe_browsing::ClientDownloadRequest_CertificateChain;
|
|||
#define PREF_SB_APP_REP_URL "browser.safebrowsing.appRepURL"
|
||||
#define PREF_SB_MALWARE_ENABLED "browser.safebrowsing.malware.enabled"
|
||||
#define PREF_GENERAL_LOCALE "general.useragent.locale"
|
||||
#define PREF_DOWNLOAD_BLOCK_TABLE "urlclassifier.downloadBlockTable"
|
||||
#define PREF_DOWNLOAD_ALLOW_TABLE "urlclassifier.downloadAllowTable"
|
||||
#define PREF_DOWNLOAD_BLOCK_TABLE "urlclassifier.download_block_table"
|
||||
#define PREF_DOWNLOAD_ALLOW_TABLE "urlclassifier.download_allow_table"
|
||||
|
||||
// NSPR_LOG_MODULES=ApplicationReputation:5
|
||||
#if defined(PR_LOGGING)
|
||||
|
|
|
@ -61,10 +61,10 @@ function run_test() {
|
|||
});
|
||||
|
||||
// Set download_block_table explicitly.
|
||||
Services.prefs.setCharPref("urlclassifier.downloadBlockTable",
|
||||
Services.prefs.setCharPref("urlclassifier.download_block_table",
|
||||
"goog-badbinurl-shavar");
|
||||
do_register_cleanup(function() {
|
||||
Services.prefs.clearUserPref("urlclassifier.downloadBlockTable");
|
||||
Services.prefs.clearUserPref("urlclassifier.download_block_table");
|
||||
});
|
||||
|
||||
gHttpServ = new HttpServer();
|
||||
|
|
|
@ -13,9 +13,9 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||
const phishingList = Services.prefs.getCharPref("urlclassifier.phish_table");
|
||||
const malwareList = Services.prefs.getCharPref("urlclassifier.malware_table");
|
||||
const downloadBlockList =
|
||||
Services.prefs.getCharPref("urlclassifier.downloadBlockTable");
|
||||
Services.prefs.getCharPref("urlclassifier.download_block_table");
|
||||
const downloadAllowList =
|
||||
Services.prefs.getCharPref("urlclassifier.downloadAllowTable");
|
||||
Services.prefs.getCharPref("urlclassifier.download_allow_table");
|
||||
|
||||
var debug = false;
|
||||
function log(...stuff) {
|
||||
|
|
|
@ -71,8 +71,8 @@ PRLogModuleInfo *gUrlClassifierDbServiceLog = nullptr;
|
|||
|
||||
#define MALWARE_TABLE_PREF "urlclassifier.malware_table"
|
||||
#define PHISH_TABLE_PREF "urlclassifier.phish_table"
|
||||
#define DOWNLOAD_BLOCK_TABLE_PREF "urlclassifier.downloadBlockTable"
|
||||
#define DOWNLOAD_ALLOW_TABLE_PREF "urlclassifier.downloadAllowTable"
|
||||
#define DOWNLOAD_BLOCK_TABLE_PREF "urlclassifier.download_block_table"
|
||||
#define DOWNLOAD_ALLOW_TABLE_PREF "urlclassifier.download_allow_table"
|
||||
#define DISALLOW_COMPLETION_TABLE_PREF "urlclassifier.disallow_completions"
|
||||
|
||||
#define CONFIRM_AGE_PREF "urlclassifier.max-complete-age"
|
||||
|
|
Загрузка…
Ссылка в новой задаче