From f4a87f8d99a8c3016e5993d73e56cc73428ede59 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Wed, 17 Aug 2005 13:38:03 +0000 Subject: [PATCH] bug 277587 nsSecureBrowserUIImpl's nsUIContext interface requestor doesn't give access to the dom window patch by Christian Persch r=jgmyers sr=roc a=asa --- security/manager/boot/src/nsSecureBrowserUIImpl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/security/manager/boot/src/nsSecureBrowserUIImpl.cpp b/security/manager/boot/src/nsSecureBrowserUIImpl.cpp index 6ad6aa6410a..ff954e002cc 100644 --- a/security/manager/boot/src/nsSecureBrowserUIImpl.cpp +++ b/security/manager/boot/src/nsSecureBrowserUIImpl.cpp @@ -1366,6 +1366,10 @@ NS_IMETHODIMP nsUIContext::GetInterface(const nsIID & uuid, void * *result) rv = internal->GetPrompter(&prompt); *result = prompt; + } else if (uuid.Equals(NS_GET_IID(nsIDOMWindow))) { + *result = mWindow; + NS_ADDREF ((nsISupports*) *result); + rv = NS_OK; } else { rv = NS_ERROR_NO_INTERFACE; }