const char* url; aURL->GetSpec(&url); if (0 == PL_strcmp(url, mURL.GetBuffer())) StopAfterURLAvailable();
nsWebShell::OnStartURLLoad(nsIDocumentLoader* loader, #ifdef NECKO                           nsIChannel* channel, #else                           nsIURI* aURL, #endif                           const char* aContentType,                            nsIContentViewer* aViewer){  nsresult rv;#ifdef NECKO  nsCOMPtr<nsIURI> aURL;  rv = channel->GetURI(getter_AddRefs(aURL));  if (NS_FAILED(rv)) return rv;#endif  // XXX This is a temporary hack for meeting the M4 milestone  // for seamonkey.  I think Netlib should send a message to all stream listeners  // when it changes the URL like this.  That would mean adding a new method  // to nsIStreamListener.  Need to talk to Rick, Kipp, Gagan about this.  /* Overriding comments: History mechanism has changed. So is Necko changing.    * Need to check in the new world if this is still valid. If so, new methods   * need to be added to nsISessionHistory. Until then. We don't need this.   * This is being done so that old History code can be removed.   *///  CheckForTrailingSlash(aURL);  /*   *Fire the OnStartDocumentLoad of the webshell observer   */  if ((nsnull != mContainer) && (nsnull != mDocLoaderObserver))  {#ifdef NECKO    mDocLoaderObserver->OnStartURLLoad(mDocLoader, channel, aContentType, aViewer);#else    mDocLoaderObserver->OnStartURLLoad(mDocLoader, aURL, aContentType, aViewer);#endif  }  return NS_OK;}