adding nsIDOMWindow to GetInterface. More hookup of WindowWatcher from last revision. bug 65229 r=brendan and by extension hyatt
git-svn-id: svn://10.0.0.236/trunk@88141 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c269fc2228
commit
f952bb367b
@ -29,6 +29,7 @@
|
||||
#include "nsIDocShellTreeItem.h"
|
||||
#include "nsIRequest.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsIDOMWindow.h"
|
||||
#include "nsCWebBrowser.h"
|
||||
#include "nsWidgetsCID.h"
|
||||
#include "nsIWebBrowserSetup.h"
|
||||
@ -69,7 +70,13 @@ NS_INTERFACE_MAP_END
|
||||
|
||||
NS_IMETHODIMP WebBrowserChrome::GetInterface(const nsIID &aIID, void** aInstancePtr)
|
||||
{
|
||||
return QueryInterface(aIID, aInstancePtr);
|
||||
*aInstancePtr = 0;
|
||||
if (aIID.Equals(NS_GET_IID(nsIDOMWindow))) {
|
||||
if (mWebBrowser)
|
||||
return mWebBrowser->GetContentDOMWindow((nsIDOMWindow **) aInstancePtr);
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
return QueryInterface(aIID, aInstancePtr);
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user