Fix bug 606645. r=gal

This commit is contained in:
Blake Kaplan 2010-12-14 16:38:51 -08:00
parent 9decea4995
commit 36ad684a62

View File

@ -649,6 +649,11 @@ EnumerateNames(JSContext *cx, JSObject *wrapper, uintN flags, js::AutoIdVector &
return js::GetPropertyNames(cx, wnObject, flags, &props);
}
if (WrapperFactory::IsPartiallyTransparent(wrapper)) {
JS_ReportError(cx, "Not allowed to enumerate cross origin objects");
return false;
}
// Enumerate expando properties first.
JSObject *expando = GetExpandoObject(cx, holder);
if (!expando)