const char* spec; #endif rv = m_Url->GetSpec(&spec); if (NS_SUCCEEDED(rv)) { PR_LOG(gDocLoaderLog, PR_LOG_DEBUG, ("DocumentBindInfo:%p: Stop(...) called for %s.\n", this, spec)); } #ifdef NECKO nsCRT::free(spec); #endif #endif
m_LoadingDocsList->EnumerateForwards(nsDocLoaderImpl::StopBindInfoEnumerator, nsnull);
nsresult nsDocumentBindInfo::Stop(void){  nsresult rv;  if (m_Url == nsnull) return NS_OK;#if defined(DEBUG)#ifdef NECKO  char* spec;#else  const char* spec;#endif  rv = m_Url->GetSpec(&spec);  if (NS_SUCCEEDED(rv)) {      PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,              ("DocumentBindInfo:%p: Stop(...) called for %s.\n", this, spec));  }#ifdef NECKO  nsCRT::free(spec);#endif#endif /* DEBUG */  /*    * Mark the IStreamListener as being aborted...  If more data is pushed   * down the stream, the connection will be aborted...   */  mStatus = NS_BINDING_ABORTED;  /* Stop the URL binding process... */#ifndef NECKO  nsINetService* inet;  rv = nsServiceManager::GetService(kNetServiceCID,                                    kINetServiceIID,                                    (nsISupports **)&inet);  if (NS_SUCCEEDED(rv)) {    rv = inet->InterruptStream(m_Url);    nsServiceManager::ReleaseService(kNetServiceCID, inet);  }#else  // XXX NECKO  // need to interrupt the load;#endif // NECKO  return rv;}