("DocLoader - OpenStream(...) called for %s.", buffer));
("DocLoader:%p: OpenStream(...) called for %s.", this, buffer));
nsDocLoaderImpl::OpenStream(nsIURL *aUrl, nsIStreamListener *aConsumer){  nsresult rv;  nsDocumentBindInfo* loader = nsnull;  nsURLLoadType loadType = nsURLLoadNormal;#if defined(DEBUG)  const char* buffer;  aUrl->GetSpec(&buffer);  PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,          ("DocLoader - OpenStream(...) called for %s.",           buffer));#endif /* DEBUG */  NS_NEWXPCOM(loader, nsDocumentBindInfo);  if (nsnull == loader) {    rv = NS_ERROR_OUT_OF_MEMORY;    goto done;  }  loader->Init(this,              // DocLoader               nsnull,            // Command               mContainer,        // Viewer Container               nsnull,            // Extra Info               mStreamObserver);  // Observer  /* The DocumentBindInfo reference is only held by the Array... */  m_LoadingDocsList->AppendElement(((nsISupports*)(nsIStreamObserver*)loader));  /* Update the URL counters... */  nsILoadAttribs* loadAttributes;  rv = aUrl->GetLoadAttribs(&loadAttributes);  if (NS_SUCCEEDED(rv)) {    rv = loadAttributes->GetLoadType(&loadType);    if (NS_FAILED(rv)) {      loadType = nsURLLoadNormal;    }    NS_RELEASE(loadAttributes);  }  if (nsURLLoadBackground != loadType) {    mForegroundURLs += 1;  }  mTotalURLs += 1;  rv = loader->Bind(aUrl, aConsumer);done:  return rv;}