Backout changeset 000ed86d069f (bug 861117) which caused bug 871560

--HG--
extra : rebase_source : 6359c671885b93f7885ca2cabfd8da772692d548
This commit is contained in:
Sid Stamm 2013-05-16 11:26:33 -07:00
Родитель da157db5d0
Коммит 5136b7c1e1
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -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);
}