mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 862380 - Silently fail for enumerate-like operations on XOWs. r=mrbkap
This commit is contained in:
parent
4b3957c0bc
commit
66cef80cfe
@ -75,6 +75,9 @@ struct CrossOriginAccessiblePropertiesOnly : public Policy {
|
||||
return AccessCheck::isCrossOriginAccessPermitted(cx, wrapper, id, act);
|
||||
}
|
||||
static bool deny(js::Wrapper::Action act, JSHandleId id) {
|
||||
// Silently fail for enumerate-like operations.
|
||||
if (act == js::Wrapper::GET && id == JS::JSID_VOIDHANDLE)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
static bool allowNativeCall(JSContext *cx, JS::IsAcceptableThis test, JS::NativeImpl impl)
|
||||
|
Loading…
Reference in New Issue
Block a user