mIsLoadingDocument = PR_FALSE;
void nsDocLoaderImpl::AreAllConnectionsComplete(void){  PRBool bIsBusy = PR_TRUE;  /*   * Fire an OnConnectionsComplete(...) notification if the document loader    * is looading a document, but all of the document URLs have been completed.   */  if (mIsLoadingDocument) {    IsBusy(bIsBusy);    if (!bIsBusy) {      PRInt32 count = mDocObservers.Count();      PRInt32 index;      PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,              ("DocLoader [%p] - OnConnectionsComplete(...) called.\n", this));      /* Notify all observers that all connections have been loaded... */      for (index = 0; index < count; index++) {        nsIDocumentLoaderObserver* observer = (nsIDocumentLoaderObserver*)mDocObservers.ElementAt(index);        observer->OnConnectionsComplete();      }      /*       * Clear the flag indicating that the document loader is still loading a        * document...       */      mIsLoadingDocument = PR_FALSE;    }  }  /*   * See if the parent document loader has finished all of its connections    * too..   */  if ((!bIsBusy) && (nsnull != mParent)) {    mParent->AreAllConnectionsComplete();  }}