*aResult = PR_FALSE;   if (mIsLoadingDocument) { rv = mLoadGroup->IsPending(aResult); if (NS_FAILED(rv)) return rv; }
if (0 != mForegroundURLs) { aResult = PR_TRUE; }
nsDocLoaderImpl::IsBusy(PRBool * aResult){  nsresult rv;  //  // A document loader is busy if either:  //  //   1. It is currently loading a document (ie. one or more URIs)  //   2. One of it's child document loaders is busy...  //  *aResult = PR_FALSE;  /* Is this document loader busy? */  if (mIsLoadingDocument) {    rv = mLoadGroup->IsPending(aResult);    if (NS_FAILED(rv)) return rv;  }  /* Otherwise, check its child document loaders... */  if (!*aResult) {    PRInt32 count, i;    count = mChildList.Count();    nsCOMPtr<nsIDocumentLoader> loader;    for (i=0; i < count; i++) {      loader = mChildList.ObjectAt(i);      if (loader) {        (void) loader->IsBusy(aResult);        if (*aResult) break;      }    }  }  return NS_OK;}