Fixed it so prompts could come up. Was missing the ability to QI properly.

This commit is contained in:
tbogard@aol.net
2000-02-08 16:11:10 +00:00
parent 601045319c
commit 6a30f95cab
2 changed files with 7 additions and 3 deletions

View File

@@ -33,6 +33,7 @@
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMXULElement.h"
#include "nsIPrompt.h"
#include "nsIWindowMediator.h"
// CIDs
@@ -77,6 +78,8 @@ NS_IMETHODIMP nsContentTreeOwner::GetInterface(const nsIID& aIID, void** aSink)
if(aIID.Equals(NS_GET_IID(nsIWebBrowserChrome)))
*aSink = NS_STATIC_CAST(nsIWebBrowserChrome*, this);
else if(aIID.Equals(NS_GET_IID(nsIPrompt)))
return mXULWindow->QueryInterface(aIID, aSink);
else
return QueryInterface(aIID, aSink);