зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c2a116cdd6
Коммит
2826a7e80f
|
@ -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_";
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче