Bug 1590935 - Offer to re-enable TLS 1.0 on SSL_ERROR_PROTOCOL_VERSION_ALERT, r=johannh

As it turns out, there are some sites that generate this error.  It's a small
number, but enough to justify the change.

No new tests because we can't generate this condition in our test setup.

Differential Revision: https://phabricator.services.mozilla.com/D50396

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Martin Thomson 2019-10-25 00:25:34 +00:00
Родитель 571742b7bd
Коммит 44f6080af9
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -277,7 +277,9 @@ function initPage() {
setupErrorUI();
const errorCode = document.getNetErrorInfo().errorCodeString;
const isTlsVersionError = errorCode == "SSL_ERROR_UNSUPPORTED_VERSION";
const isTlsVersionError =
errorCode == "SSL_ERROR_UNSUPPORTED_VERSION" ||
errorCode == "SSL_ERROR_PROTOCOL_VERSION_ALERT";
const tls10OverrideEnabled = RPMGetBoolPref(
"security.tls.version.enable-deprecated"
);