if (!mOverURL.Equals(aURLSpec) || !mOverTarget.Equals(aTargetSpec)) { #ifdef NOISY_LINKS fputs("Was '", stdout); fputs(mOverURL, stdout); fputs("' '", stdout); fputs(mOverTarget, stdout); fputs("'\n", stdout); fputs("Over link '", stdout); fputs(aURLSpec, stdout); fputs("' '", stdout); fputs(aTargetSpec, stdout); fputs("'\n", stdout); #endif
nsCOMPtr<nsIWebBrowserChrome> browserChrome(do_GetInterface(mTreeOwner)); nsresult rv = NS_ERROR_FAILURE;
nsWebShell::OnOverLink(nsIContent* aContent,                       const PRUnichar* aURLSpec,                       const PRUnichar* aTargetSpec){  if (!mOverURL.Equals(aURLSpec) || !mOverTarget.Equals(aTargetSpec)) {#ifdef NOISY_LINKS    fputs("Was '", stdout);     fputs(mOverURL, stdout);     fputs("' '", stdout);     fputs(mOverTarget, stdout);     fputs("'\n", stdout);     fputs("Over link '", stdout);    fputs(aURLSpec, stdout);    fputs("' '", stdout);    fputs(aTargetSpec, stdout);    fputs("'\n", stdout);#endif /* NS_DEBUG */    mOverURL = aURLSpec;    mOverTarget = aTargetSpec;    // Get the browser window and setStatus    nsIBrowserWindow *browserWindow;    browserWindow = GetBrowserWindow();    if (nsnull != browserWindow) {      browserWindow->SetStatus(aURLSpec);      NS_RELEASE(browserWindow);    }  }  return NS_OK;}