Bug 1201437 - Make cert override tests check for STATE_CERT_USER_OVERRIDDEN. r=keeler

MozReview-Commit-ID: G6KQPXHbEPL

--HG--
extra : rebase_source : 9ed61d521996d96d2d18f5d602439bedc46393c0
This commit is contained in:
Nihanth Subramanya 2016-02-24 22:45:12 -08:00
Родитель 0147157053
Коммит 45a1207cdf
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -662,7 +662,11 @@ function add_cert_override(aHost, aExpectedBits, aSecurityInfo) {
function add_cert_override_test(aHost, aExpectedBits, aExpectedError) {
add_connection_test(aHost, aExpectedError, null,
add_cert_override.bind(this, aHost, aExpectedBits));
add_connection_test(aHost, PRErrorCodeSuccess);
add_connection_test(aHost, PRErrorCodeSuccess, null, aSecurityInfo => {
Assert.ok(aSecurityInfo.securityState &
Ci.nsIWebProgressListener.STATE_CERT_USER_OVERRIDDEN,
"Cert override flag should be set on the security state");
});
}
// Helper function for add_prevented_cert_override_test. This is much like