mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 06:10:35 +00:00
bug 277587 nsSecureBrowserUIImpl's nsUIContext interface requestor doesn't give
access to the dom window patch by Christian Persch <chpe@gnome.org> r=jgmyers sr=roc a=asa
This commit is contained in:
parent
3af8e0c56e
commit
e519fb7724
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user