("DocLoader - OnDataAvailable(...) called for %s.  Bytes available: %d.\n", spec, aLength));
("DocumentBindInfo:%p: OnDataAvailable(...) called for %s.  Bytes available: %d.\n", this, spec, aLength));
NS_METHOD nsDocumentBindInfo::OnDataAvailable(nsIURL* aURL,                                               nsIInputStream *aStream, PRUint32 aLength){    nsresult rv = NS_OK;#if defined(DEBUG)    const char* spec;    (void)aURL->GetSpec(&spec);    PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,            ("DocLoader - OnDataAvailable(...) called for %s.  Bytes available: %d.\n",             spec, aLength));#endif /* DEBUG */    /* If the binding has been canceled via Stop() then abort the load... */    if (NS_BINDING_ABORTED == mStatus) {        rv = NS_BINDING_ABORTED;        goto done;    }    if (nsnull != m_NextStream) {       /*        * Bump the refcount in case the stream gets destroyed while the data        * is being processed...  If Stop(...) is called the stream could be        * freed prematurely :-(        *        * Currently this can happen if javascript loads a new URL         * (via nsIWebShell::LoadURL) during the parse phase...         */        nsIStreamListener* listener = m_NextStream;        NS_ADDREF(listener);        rv = listener->OnDataAvailable(aURL, aStream, aLength);        NS_RELEASE(listener);    } else {      rv = NS_BINDING_FAILED;    }done:    return rv;}