Bug 1099296 - Attach LoadInfo to remaining callers of ioService and ProtocolHandlers - in security/ (r=keeler)

This commit is contained in:
Christoph Kerschbaumer 2015-02-17 10:09:40 -08:00
parent 3a1d79ca07
commit aa5bc08574

View File

@ -86,7 +86,15 @@ nsHTTPDownloadEvent::Run()
NS_ENSURE_STATE(ios);
nsCOMPtr<nsIChannel> chan;
ios->NewChannel(mRequestSession->mURL, nullptr, nullptr, getter_AddRefs(chan));
ios->NewChannel2(mRequestSession->mURL,
nullptr,
nullptr,
nullptr, // aLoadingNode
nsContentUtils::GetSystemPrincipal(),
nullptr, // aTriggeringPrincipal
nsILoadInfo::SEC_NORMAL,
nsIContentPolicy::TYPE_OTHER,
getter_AddRefs(chan));
NS_ENSURE_STATE(chan);
// Security operations scheduled through normal HTTP channels are given