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

This commit is contained in:
Christoph Kerschbaumer 2014-12-11 20:47:23 -08:00
parent ea269ab771
commit 033778a006

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