browserWindow = GetBrowserWindow(); if (nsnull != browserWindow) { browserWindow->SetStatus(aURLSpec); NS_RELEASE(browserWindow); }
nsCAutoString spec; rv = aURI->GetSpec(spec); NS_ENSURE_SUCCESS(rv, rv);  nsAutoString uStr; rv = textToSubURI->UnEscapeURIForUI(charset, spec, uStr);  if (NS_SUCCEEDED(rv)) rv = browserChrome->SetStatus(nsIWebBrowserChrome::STATUS_LINK, uStr.get());
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;}