From 0c4e3755f00a1e1de91fc68c92f61ec52b91d0f7 Mon Sep 17 00:00:00 2001 From: "morse%netscape.com" Date: Sun, 11 Apr 1999 05:49:38 +0000 Subject: [PATCH] get wallet working again now that frame structure of apprunner has been altered (for sidebar) --- xpfe/AppCores/src/nsBrowserAppCore.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xpfe/AppCores/src/nsBrowserAppCore.cpp b/xpfe/AppCores/src/nsBrowserAppCore.cpp index 9cd4bd3a790..269016628dc 100644 --- a/xpfe/AppCores/src/nsBrowserAppCore.cpp +++ b/xpfe/AppCores/src/nsBrowserAppCore.cpp @@ -409,6 +409,8 @@ nsBrowserAppCore::WalletSafeFillin() return NS_OK; } +#include "nsIDOMHTMLDocument.h" +static NS_DEFINE_IID(kIDOMHTMLDocumentIID, NS_IDOMHTMLDOCUMENT_IID); NS_IMETHODIMP nsBrowserAppCore::WalletQuickFillin() { @@ -416,7 +418,9 @@ nsBrowserAppCore::WalletQuickFillin() shell = nsnull; nsCOMPtr webcontent; mWebShell->FindChildWithName(nsAutoString("content"), *getter_AddRefs(webcontent)); - shell = GetPresShellFor(webcontent); + nsCOMPtr webcontent2; + webcontent->ChildAt(1, (nsIWebShell*&)webcontent2); + shell = GetPresShellFor(webcontent2); nsIWalletService *walletservice; nsresult res;