Bug 1535666 - Explicitly turn on new cert error pages in browser_aboutCertError_noSubjectAltName.js to let it pass on beta r=Gijs

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Sebastian Hengst 2019-03-18 15:27:16 +00:00
Родитель a6b375e4cc
Коммит 757f55aa2c
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -3,6 +3,7 @@
"use strict";
const BROWSER_NAME = document.getElementById("bundle_brand").getString("brandShortName");
const UNKNOWN_ISSUER = "https://no-subject-alt-name.example.com:443";
const checkAdvancedAndGetTechnicalInfoText = async () => {
@ -30,8 +31,8 @@ const checkAdvancedAndGetTechnicalInfoText = async () => {
const checkCorrectMessages = (message) => {
let isCorrectMessage =
message.includes("Websites prove their identity via certificates."
+ " Nightly does not trust this site because it uses a certificate that is"
message.includes("Websites prove their identity via certificates. "
+ BROWSER_NAME + " does not trust this site because it uses a certificate that is"
+ " not valid for no-subject-alt-name.example.com");
is(isCorrectMessage, true, "That message should appear");
let isWrongMessage =