mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
bug 580128 - Don't think the outer window isn't "native". r=mrbkap
This commit is contained in:
parent
bd7d445d26
commit
1539341407
@ -184,7 +184,7 @@ WrapperFactory::Rewrap(JSContext *cx, JSObject *obj, JSObject *wrappedProto, JSO
|
||||
// a predefined set of properties. XrayWrapper adds a property
|
||||
// (.wrappedJSObject) which allows bypassing the XrayWrapper, but
|
||||
// we filter out access to that property.
|
||||
if (!IS_WN_WRAPPER(obj)) {
|
||||
if (!IS_WN_WRAPPER(obj) && !obj->getClass()->ext.innerObject) {
|
||||
wrapper = &FilteringWrapper<JSCrossCompartmentWrapper,
|
||||
CrossOriginAccessiblePropertiesOnly>::singleton;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user