diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 48e9612f457b..c396eaa12901 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -4975,8 +4975,15 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI* aURI, } tsi = do_QueryInterface(securityInfo); if (tsi) { - // Usually we should have aFailedChannel and get a detailed message - tsi->GetErrorMessage(getter_Copies(messageStr)); + uint32_t securityState; + tsi->GetSecurityState(&securityState); + if (securityState & nsIWebProgressListener::STATE_USES_SSL_3) { + error.AssignLiteral("sslv3Used"); + addHostPort = true; + } else { + // Usually we should have aFailedChannel and get a detailed message + tsi->GetErrorMessage(getter_Copies(messageStr)); + } } else { // No channel, let's obtain the generic error message if (nsserr) { diff --git a/dom/locales/en-US/chrome/appstrings.properties b/dom/locales/en-US/chrome/appstrings.properties index 74d002cdfcd1..3ee5ee7006f2 100644 --- a/dom/locales/en-US/chrome/appstrings.properties +++ b/dom/locales/en-US/chrome/appstrings.properties @@ -33,3 +33,4 @@ phishingBlocked=The website at %S has been reported as a web forgery designed to cspBlocked=This page has a content security policy that prevents it from being loaded in this way. corruptedContentError=The page you are trying to view cannot be shown because an error in the data transmission was detected. remoteXUL=This page uses an unsupported technology that is no longer available by default. +sslv3Used=The safety of your data on %S could not be guaranteed because it uses SSLv3, a broken security protocol.