mIsLoadingDocument = PR_FALSE;       FireOnEndDocumentLoad(this, docChannel, status);
if (!(loadAttribs & nsIChannel::LOAD_BACKGROUND)) { mDocLoader->FireOnEndURLLoad(mDocLoader, aChannel, aStatus); }
nsDocLoaderImpl::OnStopRequest(nsIChannel *channel, nsISupports *ctxt,                                nsresult status, const PRUnichar *errorMsg){  PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,          ("DocLoader:%p: Is now idle...\n", this));  //  // Only fire the OnEndDocumentLoad(...) if the document loader   // has initiated a load...  //  if (mIsLoadingDocument) {    nsCOMPtr<nsIChannel> docChannel(mDocumentChannel);    mDocumentChannel = null_nsCOMPtr();    mIsLoadingDocument = PR_FALSE;    //    // Do nothing after firing the OnEndDocumentLoad(...). The document    // loader may be loading a *new* document - if LoadDocument()    // was called from a handler!    //    FireOnEndDocumentLoad(this, docChannel, status);  }  return NS_OK;}