Bug 1582589 - Client cert checking fails when CAs differ on server and client certs r=davidwalsh

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jan Odvarko 2019-10-29 14:00:28 +00:00
Родитель 50a693991f
Коммит 69a35cc0f0
1 изменённых файлов: 8 добавлений и 3 удалений

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

@ -330,9 +330,14 @@ NetworkResponseListener.prototype = {
const info = NetworkHelper.parseSecurityInfo(secinfo, this.httpActivity);
let isRacing = false;
const channel = this.httpActivity.channel;
if (channel instanceof Ci.nsICacheInfoChannel) {
isRacing = channel.isRacing();
try {
const channel = this.httpActivity.channel;
if (channel instanceof Ci.nsICacheInfoChannel) {
isRacing = channel.isRacing();
}
} catch (err) {
// See the following bug for more details:
// https://bugzilla.mozilla.org/show_bug.cgi?id=1582589
}
this.httpActivity.owner.addSecurityInfo(info, isRacing);