diff --git a/widget/android/nsAndroidProtocolHandler.cpp b/widget/android/nsAndroidProtocolHandler.cpp index 5b0011609cf9..2650a64529db 100644 --- a/widget/android/nsAndroidProtocolHandler.cpp +++ b/widget/android/nsAndroidProtocolHandler.cpp @@ -170,6 +170,11 @@ nsAndroidProtocolHandler::NewChannel2(nsIURI* aURI, nsCOMPtr 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; }