SetStatus now uses the new API on nsIWebBrowserChrome. r=pavlov

git-svn-id: svn://10.0.0.236/trunk@60721 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tbogard%aol.net
2000-02-14 09:16:26 +00:00
parent ede0f006e0
commit 7a07fd1a8c
2 changed files with 10 additions and 14 deletions

View File

@@ -23,6 +23,7 @@
#include "nsDocShell.h"
#include "nsIWebShell.h"
#include "nsIWebBrowserChrome.h"
#include "nsIInterfaceRequestor.h"
#include "nsIDocumentLoader.h"
#include "nsIDocumentLoaderObserver.h"
@@ -2715,14 +2716,11 @@ nsWebShell::OnOverLink(nsIContent* aContent,
mOverURL = aURLSpec;
mOverTarget = aTargetSpec;
// Get the browser window and setStatus
nsIBrowserWindow *browserWindow;
browserWindow = GetBrowserWindow();
if (nsnull != browserWindow) {
browserWindow->SetStatus(aURLSpec);
NS_RELEASE(browserWindow);
}
nsCOMPtr<nsIWebBrowserChrome> browserChrome(do_GetInterface(mTreeOwner));
if (browserChrome)
browserChrome->SetJSStatus(aURLSpec);
}
return NS_OK;
}