Bug 1634947 - Update the TLS deprecated error message in Firefox. r=johannh,necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D77021
This commit is contained in:
prathiksha 2020-05-27 21:58:30 +00:00
parent e80c22f3c4
commit f247187965
3 changed files with 4 additions and 5 deletions

View File

@ -17,9 +17,8 @@ const TRIGGER_MSG = "If you haven't seen ssl warnings yet, you won't";
const TLS_1_0_URL = "https://tls1.example.com" + TEST_URI_PATH;
const TLS_expected_message =
"This site uses a deprecated version of TLS that" +
" will be disabled in March 2020. Please upgrade" +
" to TLS 1.2 or 1.3.";
"This site uses a deprecated version of TLS. " +
"Please upgrade to TLS 1.2 or 1.3.";
registerCleanupFunction(function() {
// Set preferences back to their original values

View File

@ -67,7 +67,7 @@ NoValidMetadata=The integrity attribute does not contain any valid metadata.
# LOCALIZATION NOTE: Do not translate "RC4".
WeakCipherSuiteWarning=This site uses the cipher RC4 for encryption, which is deprecated and insecure.
DeprecatedTLSVersion=This site uses a deprecated version of TLS that will be disabled in March 2020. Please upgrade to TLS 1.2 or 1.3.
DeprecatedTLSVersion2=This site uses a deprecated version of TLS. Please upgrade to TLS 1.2 or 1.3.
#XCTO: nosniff
# LOCALIZATION NOTE: Do not translate "X-Content-Type-Options: nosniff".

View File

@ -2378,7 +2378,7 @@ void nsHttpChannel::ProcessSSLInformation() {
if (NS_SUCCEEDED(rv) &&
tlsVersion != nsITransportSecurityInfo::TLS_VERSION_1_2 &&
tlsVersion != nsITransportSecurityInfo::TLS_VERSION_1_3) {
nsString consoleErrorTag = NS_LITERAL_STRING("DeprecatedTLSVersion");
nsString consoleErrorTag = NS_LITERAL_STRING("DeprecatedTLSVersion2");
nsString consoleErrorCategory = NS_LITERAL_STRING("TLS");
Unused << AddSecurityMessage(consoleErrorTag, consoleErrorCategory);
}