mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout changeset 000ed86d069f (bug 861117) which caused bug 871560
--HG-- extra : rebase_source : 6359c671885b93f7885ca2cabfd8da772692d548
This commit is contained in:
parent
819ece47cb
commit
edfad880d3
@ -371,12 +371,12 @@ nsHttpChannel::Connect()
|
||||
uint32_t flags = mPrivateBrowsing ? nsISocketProvider::NO_PERMANENT_STORAGE : 0;
|
||||
rv = stss->IsStsURI(mURI, flags, &isStsHost);
|
||||
|
||||
// if the URI check fails, it's likely because this load is on a
|
||||
// malformed URI or something else in the setup is wrong, so any error
|
||||
// should be reported.
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
// if STS fails, there's no reason to cancel the load, but it's
|
||||
// worrisome.
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv),
|
||||
"Something is wrong with STS: IsStsURI failed.");
|
||||
|
||||
if (isStsHost) {
|
||||
if (NS_SUCCEEDED(rv) && isStsHost) {
|
||||
LOG(("nsHttpChannel::Connect() STS permissions found\n"));
|
||||
return AsyncCall(&nsHttpChannel::HandleAsyncRedirectChannelToHttps);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user