Fix for bug 82461. Need to complete the initialization of the url fetcher before calling OpenURI else... boom! R=varada, SR=sspitzer, A=asa@mozilla.org

git-svn-id: svn://10.0.0.236/trunk@95916 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ducarroz%netscape.com
2001-05-25 17:47:23 +00:00
parent 8ab26342e4
commit 2e25d15c19

View File

@@ -357,15 +357,8 @@ nsURLFetcher::FireURLRequest(nsIURI *aURL, nsOutputFileStream *fOut,
{
nsresult rv;
if ( (!aURL) || (!fOut) )
{
return NS_ERROR_INVALID_ARG;
}
if (!fOut->is_open())
{
return NS_ERROR_FAILURE;
}
rv = Initialize(fOut, cb, tagData);
NS_ENSURE_SUCCESS(rv, rv);
// we're about to fire a new url request so make sure the on stop request flag is cleared...
mOnStopRequestProcessed = PR_FALSE;
@@ -382,10 +375,6 @@ nsURLFetcher::FireURLRequest(nsIURI *aURL, nsOutputFileStream *fOut,
rv = pURILoader->OpenURI(channel, nsIURILoader::viewNormal, cntListener);
mOutStream = fOut;
mCallback = cb;
mTagData = tagData;
return NS_OK;
}