mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 13:52:37 +00:00
Bug 862380 - Silently fail for enumerate-like operations on XOWs. r=mrbkap
This commit is contained in:
parent
2fbd8f4d5c
commit
89be72dd4e
@ -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…
x
Reference in New Issue
Block a user