Bug 965981 - Wrap ids in XPCWrappedNativeXrayTraits::enumerateNames. r=mccr8

This commit is contained in:
Bobby Holley 2014-02-13 10:54:08 -08:00
parent 73ce31f07f
commit d11531d2a6

View File

@ -1007,6 +1007,8 @@ XPCWrappedNativeXrayTraits::enumerateNames(JSContext *cx, HandleObject wrapper,
if (!js::GetPropertyNames(cx, target, flags, &wnProps)) if (!js::GetPropertyNames(cx, target, flags, &wnProps))
return false; return false;
} }
if (!JS_WrapAutoIdVector(cx, wnProps))
return false;
// Go through the properties we got and enumerate all native ones. // Go through the properties we got and enumerate all native ones.
for (size_t n = 0; n < wnProps.length(); ++n) { for (size_t n = 0; n < wnProps.length(); ++n) {