Fixed it so prompts could come up. Was missing the ability to QI properly.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user