Bug 1273353 - Replace usage of deprecated JS String.proto.contains(). r=francois

MozReview-Commit-ID: 4ZCxGdoGs7n

--HG--
extra : rebase_source : f89668d369608dd47446e3f4f4f9af6eb5509424
This commit is contained in:
Gian-Carlo Pascutto 2016-05-17 20:44:01 +02:00
Родитель c2a116cdd6
Коммит 2826a7e80f
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -5153,13 +5153,13 @@ var ErrorPageEventHandler = {
// can use the right strings/links
let bucketName = "";
let sendTelemetry = false;
if (errorDoc.documentURI.contains("e=malwareBlocked")) {
if (errorDoc.documentURI.includes("e=malwareBlocked")) {
sendTelemetry = true;
bucketName = "WARNING_MALWARE_PAGE_";
} else if (errorDoc.documentURI.contains("e=deceptiveBlocked")) {
} else if (errorDoc.documentURI.includes("e=deceptiveBlocked")) {
sendTelemetry = true;
bucketName = "WARNING_PHISHING_PAGE_";
} else if (errorDoc.documentURI.contains("e=unwantedBlocked")) {
} else if (errorDoc.documentURI.includes("e=unwantedBlocked")) {
sendTelemetry = true;
bucketName = "WARNING_UNWANTED_PAGE_";
}