mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix bug 606645. r=gal
This commit is contained in:
parent
9decea4995
commit
36ad684a62
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user