Bug 1657616 - Remove the link to StopBadware.org in SafeBrowsing interstitial page r=gcp,fluent-reviewers,flod

Differential Revision: https://phabricator.services.mozilla.com/D86321
This commit is contained in:
Dimi Lee 2020-08-07 15:08:10 +00:00
parent 2273fb74fa
commit 6a8e625db6
3 changed files with 9 additions and 7 deletions

View File

@ -94,12 +94,8 @@ class BlockedSiteChild extends JSWindowActorChild {
.getElementById("report_detection")
.setAttribute(
"href",
SafeBrowsing.getReportURL("MalwareMistake", blockedInfo) ||
"https://www.stopbadware.org/firefox"
SafeBrowsing.getReportURL("MalwareMistake", blockedInfo)
);
doc
.getElementById("learn_more_link")
.setAttribute("href", "https://www.stopbadware.org/firefox");
break;
case "unwanted":
doc

View File

@ -120,10 +120,16 @@ function initPage() {
});
// Add the learn more content:
// Map specific elements to a different message ID, to allow updates to
// existing labels
let stringMapping = {
malware: "safeb-blocked-malware-page-learn-more-sumo",
};
let learnMore = document.getElementById("learn_more");
document.l10n.setAttributes(
learnMore,
"safeb-blocked-" + error + "-page-learn-more"
stringMapping[error] || `safeb-blocked-${error}-page-learn-more`
);
// Set sitename to bold by adding class

View File

@ -18,7 +18,7 @@ safeb-blocked-phishing-page-error-desc-no-override = <span data-l10n-name='siten
safeb-blocked-phishing-page-learn-more = Learn more about deceptive sites and phishing at <a data-l10n-name='learn_more_link'>www.antiphishing.org</a>. Learn more about { -brand-short-name }s Phishing and Malware Protection at <a data-l10n-name='firefox_support'>support.mozilla.org</a>.
safeb-blocked-malware-page-error-desc-override = <span data-l10n-name='sitename'>{ $sitename }</span> has been <a data-l10n-name='error_desc_link'>reported as containing malicious software</a>. You can <a data-l10n-name='report_detection'>report a detection problem</a> or <a data-l10n-name='ignore_warning_link'>ignore the risk</a> and go to this unsafe site.
safeb-blocked-malware-page-error-desc-no-override = <span data-l10n-name='sitename'>{ $sitename }</span> has been <a data-l10n-name='error_desc_link'>reported as containing malicious software</a>. You can <a data-l10n-name='report_detection'>report a detection problem</a>.
safeb-blocked-malware-page-learn-more = Learn more about harmful web content including viruses and other malware and how to protect your computer at <a data-l10n-name='learn_more_link'>StopBadware.org</a>. Learn more about { -brand-short-name }s Phishing and Malware Protection at <a data-l10n-name='firefox_support'>support.mozilla.org</a>.
safeb-blocked-malware-page-learn-more-sumo = Learn more about { -brand-short-name }s Phishing and Malware Protection at <a data-l10n-name='firefox_support'>support.mozilla.org</a>.
safeb-blocked-unwanted-page-error-desc-override = <span data-l10n-name='sitename'>{ $sitename }</span> has been <a data-l10n-name='error_desc_link'>reported as containing harmful software</a>. You can <a data-l10n-name='ignore_warning_link'>ignore the risk</a> and go to this unsafe site.
safeb-blocked-unwanted-page-error-desc-no-override = <span data-l10n-name='sitename'>{ $sitename }</span> has been <a data-l10n-name='error_desc_link'>reported as containing harmful software</a>.
safeb-blocked-unwanted-page-learn-more = Learn more about harmful and unwanted software at <a data-l10n-name='learn_more_link'>Unwanted Software Policy</a>. Learn more about { -brand-short-name }s Phishing and Malware Protection at <a data-l10n-name='firefox_support'>support.mozilla.org</a>.