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 7616b984ae
commit 00ff1ea758

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