bug #174404 (sr=jst). forgot to check this file in with the rest of the patch...

This commit is contained in:
rpotts%netscape.com 2002-11-09 00:15:42 +00:00
parent da3220ba93
commit edd519ef65

View File

@ -129,6 +129,7 @@
#include "nsIJSNativeInitializer.h"
#include "nsIFullScreen.h"
#include "nsIStringBundle.h"
#include "nsIScriptEventManager.h" // For GetInterface()
#include "plbase64.h"
@ -4116,6 +4117,17 @@ GlobalWindowImpl::GetInterface(const nsIID & aIID, void **aSink)
}
}
}
else if (aIID.Equals(NS_GET_IID(nsIScriptEventManager))) {
nsCOMPtr<nsIDocument> doc(do_QueryInterface(mDocument));
if (doc) {
nsCOMPtr<nsIScriptEventManager> mgr;
doc->GetScriptEventManager(getter_AddRefs(mgr));
if (mgr) {
*aSink = mgr;
}
}
}
else {
return QueryInterface(aIID, aSink);
}