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

This commit is contained in:
Christoph Kerschbaumer 2015-02-17 10:08:48 -08:00
parent adf9417bff
commit af75181528

View File

@ -590,7 +590,16 @@ SendPing(void* aClosure, nsIContent* aContent, nsIURI* aURI,
nsIDocument* doc = aContent->OwnerDoc();
nsCOMPtr<nsIChannel> chan;
aIOService->NewChannelFromURI(aURI, getter_AddRefs(chan));
NS_NewChannel(getter_AddRefs(chan),
aURI,
doc,
nsILoadInfo::SEC_NORMAL,
nsIContentPolicy::TYPE_PING,
nullptr, // aLoadGroup
nullptr, // aCallbacks
nsIRequest::LOAD_NORMAL, // aLoadFlags,
aIOService);
if (!chan) {
return;
}