mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 965898 - All properties from cross-origin objects are "configurable", non-enumerable, and non-writable. r=gabor
This commit is contained in:
parent
7724a65eb8
commit
1ddc37dfd7
@ -189,6 +189,13 @@ CrossOriginXrayWrapper::getPropertyDescriptor(JSContext *cx,
|
|||||||
if (desc.object()) {
|
if (desc.object()) {
|
||||||
// All properties on cross-origin DOM objects are |own|.
|
// All properties on cross-origin DOM objects are |own|.
|
||||||
desc.object().set(wrapper);
|
desc.object().set(wrapper);
|
||||||
|
|
||||||
|
// All properties on cross-origin DOM objects are non-enumerable and
|
||||||
|
// "configurable". Any value attributes are read-only.
|
||||||
|
desc.attributesRef() &= ~JSPROP_ENUMERATE;
|
||||||
|
desc.attributesRef() &= ~JSPROP_PERMANENT;
|
||||||
|
if (!desc.getter() && !desc.setter())
|
||||||
|
desc.attributesRef() |= JSPROP_READONLY;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user