From ce9c1bc500ef1e22aca775eb59e6e88797cde7a1 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Tue, 8 Jun 1999 04:29:03 +0000 Subject: [PATCH] we can now use the frame directly instead of the IFRAME --- mailnews/base/src/nsMessenger.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mailnews/base/src/nsMessenger.cpp b/mailnews/base/src/nsMessenger.cpp index 6f8f7b01f2af..db43a1120318 100644 --- a/mailnews/base/src/nsMessenger.cpp +++ b/mailnews/base/src/nsMessenger.cpp @@ -315,7 +315,7 @@ nsMessenger::SetWindow(nsIDOMWindow* aWin) if(!aWin) return NS_ERROR_NULL_POINTER; - nsAutoString webShellName("browser.webwindow"); + nsAutoString webShellName("messagepane"); NS_IF_RELEASE(mWindow); mWindow = aWin; NS_ADDREF(aWin); @@ -341,9 +341,9 @@ nsMessenger::SetWindow(nsIDOMWindow* aWin) webShell->GetRootWebShell(rootWebShell); if (nsnull != rootWebShell) { - rootWebShell->FindChildWithName(webShellName.GetUnicode(), mWebShell); + nsresult rv = rootWebShell->FindChildWithName(webShellName.GetUnicode(), mWebShell); #ifdef NS_DEBUG - if (nsnull != mWebShell) + if (NS_SUCCEEDED(rv) && nsnull != mWebShell) printf("nsMessenger::SetWindow(): Got the webShell %s.\n", (const char *) nsAutoCString(webShellName)); else printf("nsMessenger::SetWindow(): Failed to find webshell %s.\n", (const char *) nsAutoCString(webShellName));