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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user