Bug 1879936: don't ASSERT if the user overrides a cert error r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D202267
This commit is contained in:
Randell Jesup 2024-02-21 15:12:26 +00:00
parent 2648d2bb1e
commit 6d1644c5a8

View File

@ -2277,8 +2277,10 @@ nsresult nsHttpChannel::ContinueProcessResponse1() {
// Given a successful connection, process any STS or PKP data that's
// relevant.
DebugOnly<nsresult> rv = ProcessSecurityHeaders();
MOZ_ASSERT(NS_SUCCEEDED(rv), "ProcessSTSHeader failed, continuing load.");
nsresult rv = ProcessSecurityHeaders();
if (NS_FAILED(rv)) {
NS_WARNING("ProcessSTSHeader failed, continuing load.");
}
if ((httpStatus < 500) && (httpStatus != 421)) {
ProcessAltService();