Skip to content

Commit 6071d43

Browse files
committed
Fix lint warnings in blocked domain page.
1 parent c3d8105 commit 6071d43

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

browser/locales/en-US/chrome/overrides/appstrings.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ corruptedContentErrorv2=The site at %S has experienced a network protocol violat
4444
## LOCALIZATION NOTE (sslv3Used) - Do not translate "%S".
4545
sslv3Used=Firefox cannot guarantee the safety of your data on %S because it uses SSLv3, a broken security protocol.
4646
inadequateSecurityError=The website tried to negotiate an inadequate level of security.
47-
blockedByPolicy=Your organization has blocked access to this page or website.
4847
blockedByPolicy2=This website has been blocked by your organisation.\nYour company has applied network restrictions that prevent access to certain websites for security, compliance, or productivity reasons.
4948
blockedByCORP=Firefox didn't load this page because it looks like the security configuration doesn't match the previous page.
5049
invalidHeaderValue=%S sent back a header with empty characters not allowed by web security standards.

docshell/base/nsDocShell.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3713,6 +3713,7 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI* aURI,
37133713
case NS_ERROR_BLOCKED_BY_POLICY:
37143714
// Page blocked by policy
37153715
error = "blockedByPolicy";
3716+
errorDescriptionID = "blockedByPolicy2";
37163717
break;
37173718
case NS_ERROR_DOM_COOP_FAILED:
37183719
error = "blockedByCOOP";

dom/locales/en-US/chrome/appstrings.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ corruptedContentErrorv2=The site at %S has experienced a network protocol violat
3737
sslv3Used=The safety of your data on %S could not be guaranteed because it uses SSLv3, a broken security protocol.
3838
weakCryptoUsed=The owner of %S has configured their website improperly. To protect your information from being stolen, the connection to this website has not been established.
3939
inadequateSecurityError=The website tried to negotiate an inadequate level of security.
40-
blockedByPolicy=Your organization has blocked access to this page or website.
4140
blockedByPolicy2=This website has been blocked by your organisation.\nYour company has applied network restrictions that prevent access to certain websites for security, compliance, or productivity reasons.
4241
blockedByCORP=This page has not been loaded because it looks like the security configuration doesn't match the previous page.
4342
invalidHeaderValue=%S sent back a header with empty characters not allowed by web security standards.

toolkit/content/aboutNetError.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ const KNOWN_ERROR_TITLE_IDS = new Set([
5959
"corruptedContentErrorv2-title",
6060
"sslv3Used-title",
6161
"inadequateSecurityError-title",
62-
"blockedByPolicy-title",
63-
"blockedByPolicy-title2",
62+
"blocked-by-policy-title2",
6463
"blocked-by-corp-headers-title",
6564
"clockSkewError-title",
6665
"networkProtocolError-title",
@@ -320,7 +319,7 @@ function initTitleAndBodyIds(baseURL, isTRROnlyFailure) {
320319
break;
321320
case "blockedByPolicy": {
322321
pageTitleId = "neterror-blocked-by-policy-page-title2";
323-
bodyTitleId = "blockedByPolicy-title2";
322+
bodyTitleId = "blocked-by-policy-title2";
324323
document.body.classList.add("blocked");
325324

326325
// Remove the "Try again" button from pages that don't need it.

toolkit/locales/en-US/toolkit/neterror/certError.ftl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ csp-xfo-error-title = { -brand-short-name } Can’t Open This Page
147147
corruptedContentErrorv2-title = Corrupted Content Error
148148
sslv3Used-title = Unable to Connect Securely
149149
inadequateSecurityError-title = Your connection is not secure
150-
blockedByPolicy-title = Blocked Page
151-
blockedByPolicy-title2 = Access to this site is restricted
150+
blocked-by-policy-title2 = Access to this site is restricted
152151
clockSkewError-title = Your Computer Clock is Wrong
153152
networkProtocolError-title = Network Protocol Error
154153
nssBadCert-title = Warning: Potential Security Risk Ahead

toolkit/locales/en-US/toolkit/neterror/netError.ftl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
neterror-page-title = Problem loading page
88
certerror-page-title = Warning: Potential Security Risk Ahead
99
certerror-sts-page-title = Did Not Connect: Potential Security Issue
10-
neterror-blocked-by-policy-page-title = Blocked Page
1110
neterror-blocked-by-policy-page-title2 = Access to this site is restricted
1211
neterror-captive-portal-page-title = Log in to network
1312
neterror-dns-not-found-title = Server Not Found
1413
neterror-malformed-uri-page-title = Invalid URL
15-
general-body-title = Be careful. Something doesn't look right.
16-
problem-with-this-site-title = Looks like there's a problem with this site
14+
general-body-title = Be careful. Something doesnt look right.
15+
problem-with-this-site-title = Looks like theres a problem with this site
1716
1817
## Error page actions
1918

0 commit comments

Comments
 (0)