From 166bf1bbd448fdcc6e6170ee7e2aaa9c8a0cb861 Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Mon, 14 Feb 2000 09:16:26 +0000 Subject: [PATCH] SetStatus now uses the new API on nsIWebBrowserChrome. r=pavlov --- docshell/base/nsWebShell.cpp | 12 +++++------- webshell/src/nsWebShell.cpp | 12 +++++------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/docshell/base/nsWebShell.cpp b/docshell/base/nsWebShell.cpp index df2e83256ee6..938b3096f037 100644 --- a/docshell/base/nsWebShell.cpp +++ b/docshell/base/nsWebShell.cpp @@ -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 browserChrome(do_GetInterface(mTreeOwner)); + + if (browserChrome) + browserChrome->SetJSStatus(aURLSpec); } return NS_OK; } diff --git a/webshell/src/nsWebShell.cpp b/webshell/src/nsWebShell.cpp index df2e83256ee6..938b3096f037 100644 --- a/webshell/src/nsWebShell.cpp +++ b/webshell/src/nsWebShell.cpp @@ -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 browserChrome(do_GetInterface(mTreeOwner)); + + if (browserChrome) + browserChrome->SetJSStatus(aURLSpec); } return NS_OK; }