ilINetReader *reader = mURL->GetReader(); if (reader->StreamCreated(mURL, IL_UNKNOWN) != PR_TRUE) {
ilINetReader *reader = mURL->GetReader();  nsresult rv = NS_OK; char* aContentType = NULL; rv = channel->GetContentType(&aContentType); if (NS_FAILED(rv)) { if(aContentType){ nsCRT::free(aContentType); } aContentType = nsCRT::strdup("unknown"); } if(nsCRT::strlen(aContentType) > 50){   nsCRT::free(aContentType); aContentType = nsCRT::strdup("unknown"); }  if (reader->StreamCreated(mURL, aContentType) != PR_TRUE) {
ImageConsumer::OnStartRequest(nsIChannel* channel, nsISupports* aContext){  if (mInterrupted) {    mStatus = MK_INTERRUPTED;    return NS_ERROR_ABORT;  }  mBuffer = (char *)PR_MALLOC(IMAGE_BUF_SIZE);  if (mBuffer == nsnull) {    mStatus = MK_IMAGE_LOSSAGE;    return NS_ERROR_ABORT;  }  ilINetReader *reader = mURL->GetReader();  if (reader->StreamCreated(mURL, IL_UNKNOWN) != PR_TRUE) {    mStatus = MK_IMAGE_LOSSAGE;    reader->StreamAbort(mStatus);    NS_RELEASE(reader);    return NS_ERROR_ABORT;  }  NS_RELEASE(reader);      return NS_OK;}