docshell's GetInterface returns nsIPrompt to allow dialog boxes on a per window basis.

This commit is contained in:
gagan@netscape.com
2000-03-08 00:38:58 +00:00
parent a93f8ff686
commit 2b34c20afd

View File

@@ -157,6 +157,18 @@ NS_IMETHODIMP nsDocShell::GetInterface(const nsIID& aIID, void** aSink)
aSink), NS_ERROR_FAILURE);
return NS_OK;
}
else if(aIID.Equals(NS_GET_IID(nsIPrompt)))
{
nsCOMPtr<nsIPrompt> prompter(do_GetInterface(mTreeOwner));
if (prompter)
{
*aSink = prompter;
NS_ADDREF((nsISupports*)*aSink);
return NS_OK;
}
else
return NS_NOINTERFACE;
}
else
return QueryInterface(aIID, aSink);