mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
bug #174404 (sr=jst). forgot to check this file in with the rest of the patch...
This commit is contained in:
parent
da3220ba93
commit
edd519ef65
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user