Bug 1277378 - Fix typo in Safe Browsing in-content preferences. r=past

MozReview-Commit-ID: KfZpVRWuzjV

--HG--
extra : rebase_source : 75e64eff52936c3c94eee9730b3d69f748b0c236
This commit is contained in:
Francois Marier 2016-06-01 16:35:48 -07:00
parent b21283649e
commit 0365bcf354
2 changed files with 4 additions and 4 deletions

View File

@ -189,10 +189,10 @@ var gSecurityPane = {
let malware = malwareTable.value
.split(",")
.filter(x => x !== "goog-unwanted-simple" && x !== "test-unwanted-simple");
.filter(x => x !== "goog-unwanted-shavar" && x !== "test-unwanted-simple");
if (blockUncommonUnwanted.checked) {
malware.push("goog-unwanted-simple");
malware.push("goog-unwanted-shavar");
malware.push("test-unwanted-simple");
}

View File

@ -112,8 +112,8 @@ add_task(function*() {
// when the preference is on, the malware table should include these ids
let malwareTable = Services.prefs.getCharPref("urlclassifier.malwareTable").split(",");
is(malwareTable.includes("goog-unwanted-simple"), !checked,
"malware table doesn't include goog-unwanted-simple");
is(malwareTable.includes("goog-unwanted-shavar"), !checked,
"malware table doesn't include goog-unwanted-shavar");
is(malwareTable.includes("test-unwanted-simple"), !checked,
"malware table doesn't include test-unwanted-simple");
let sortedMalware = malwareTable.slice(0);