mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
bug 311775: objects created with GeckoActiveXObject are broken,
patch by David Bradley <dbradley@gmail.com>, r=jst, sr=brendan
This commit is contained in:
parent
1ec26dd86d
commit
30bbc6c214
@ -237,16 +237,14 @@ JSBool XPCIDispatchExtension::DefineProperty(XPCCallContext & ccx,
|
||||
// Look up the native interface for IDispatch and then find a tearoff
|
||||
XPCNativeInterface* iface = XPCNativeInterface::GetNewOrUsed(ccx,
|
||||
"IDispatch");
|
||||
// The native interface isn't defined so just exit with an error
|
||||
if(iface == nsnull)
|
||||
return JS_FALSE;
|
||||
XPCWrappedNativeTearOff* to =
|
||||
wrapperToReflectInterfaceNames->LocateTearOff(ccx, iface);
|
||||
// This object has no IDispatch interface so bail.
|
||||
if(to == nsnull)
|
||||
return JS_FALSE;
|
||||
// get the JS Object for the tea
|
||||
JSObject* jso = to->GetJSObject();
|
||||
if(jso == nsnull)
|
||||
return JS_FALSE;
|
||||
// Look up the member in the interface
|
||||
const XPCDispInterface::Member * member = to->GetIDispatchInfo()->FindMember(idval);
|
||||
if(!member)
|
||||
|
Loading…
Reference in New Issue
Block a user