Bug 1087442 - Attach LoadInfo inside each individual ProtocolHandler - widget/ changes (r=blassey)

This commit is contained in:
Christoph Kerschbaumer 2014-12-12 09:08:14 -08:00
parent ad23c605d2
commit f84bc01c05

View File

@ -170,6 +170,11 @@ nsAndroidProtocolHandler::NewChannel2(nsIURI* aURI,
nsCOMPtr<nsIChannel> channel = AndroidChannel::CreateChannel(aURI);
if (!channel)
return NS_ERROR_FAILURE;
// set the loadInfo on the new channel
nsresult rv = channel->SetLoadInfo(aLoadInfo);
NS_ENSURE_SUCCESS(rv, rv);
NS_ADDREF(*aResult = channel);
return NS_OK;
}