Bug 1195606 - Use channel->ascynOpen2 in security/manager/ssl/nsNSSCallbacks.cpp (r=sicking)

This commit is contained in:
Christoph Kerschbaumer 2015-08-18 09:54:09 -07:00
parent 9138f5e230
commit 301815979b

View File

@ -90,7 +90,7 @@ nsHTTPDownloadEvent::Run()
nullptr, // aLoadingNode
nsContentUtils::GetSystemPrincipal(),
nullptr, // aTriggeringPrincipal
nsILoadInfo::SEC_NORMAL,
nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
nsIContentPolicy::TYPE_OTHER,
getter_AddRefs(chan));
NS_ENSURE_STATE(chan);
@ -157,7 +157,7 @@ nsHTTPDownloadEvent::Run()
if (NS_SUCCEEDED(rv)) {
mStartTime = TimeStamp::Now();
rv = hchan->AsyncOpen(mListener->mLoader, nullptr);
rv = hchan->AsyncOpen2(mListener->mLoader);
}
if (NS_FAILED(rv)) {