aLoadInitiator->mDocumentChannel,
aDocChannel,
void nsDocLoaderImpl::FireOnEndDocumentLoad(nsDocLoaderImpl* aLoadInitiator,                                            nsresult aStatus)									{#if defined(DEBUG)    nsCOMPtr<nsIURI> uri;    nsresult rv = NS_OK;    if (aLoadInitiator->mDocumentChannel)        rv = aLoadInitiator->mDocumentChannel->GetURI(getter_AddRefs(uri));    if (NS_SUCCEEDED(rv)) {        char* buffer = nsnull;        if (uri)            rv = uri->GetSpec(&buffer);        if (NS_SUCCEEDED(rv) && buffer != nsnull) {            PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,                    ("DocLoader:%p: Firing OnEndDocumentLoad(...) called for [DocLoader:%p] %s\n",                     this, aLoadInitiator, buffer));            nsCRT::free(buffer);        }    }#endif /* DEBUG */    /*     * First notify any observers that the document load has finished...     */    PRInt32 count = mDocObservers.Count();    PRInt32 index;    for (index = 0; index < count; index++) {        nsIDocumentLoaderObserver* observer = (nsIDocumentLoaderObserver*)            mDocObservers.ElementAt(index);        observer->OnEndDocumentLoad(aLoadInitiator,                                     aLoadInitiator->mDocumentChannel,                                    aStatus, observer);    }    /*     * Next notify the parent...     */    if (mParent) {        mParent->FireOnEndDocumentLoad(aLoadInitiator, aStatus);    }}