author=ashuk

r=a=edburns
Bug=58791


git-svn-id: svn://10.0.0.236/trunk@82253 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ashuk%eng.sun.com
2000-11-03 01:28:27 +00:00
parent 49ef0e6172
commit 4a6f37d5be

View File

@@ -31,6 +31,7 @@
#include "nsCWebBrowser.h"
#include "nsIWebBrowser.h"
#include "nsIDOMNamedNodeMap.h"
#include "nsIDocShellTreeItem.h"
#include "prprf.h" // for PR_snprintf
#include "nsFileSpec.h" // for nsAutoCString
@@ -351,9 +352,10 @@ CBrowserContainer::ContentShellAdded(nsIDocShellTreeItem* aContentShell,
NS_IMETHODIMP
CBrowserContainer::GetPrimaryContentShell(nsIDocShellTreeItem** aShell)
{
NS_ERROR("Haven't Implemented this yet");
*aShell = nsnull;
return NS_ERROR_FAILURE;
nsCOMPtr<nsIDocShell> docShell = do_GetInterface(m_pOwner);
nsCOMPtr<nsIDocShellTreeItem> docShellAsItem(do_QueryInterface(docShell));
*aShell = (nsIDocShellTreeItem *) docShellAsItem;
return NS_OK;
}