Bug 761695 - Fix inaccurate commenting. r=peterv

The .wrappedJSObject property only exists when the Xray wrapper subsumes the wrappee.
This commit is contained in:
Bobby Holley 2012-10-05 18:59:22 +02:00
Родитель fec49a84ee
Коммит 54bd828407
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -463,9 +463,7 @@ WrapperFactory::Rewrap(JSContext *cx, JSObject *obj, JSObject *wrappedProto, JSO
"bad object exposed across origins");
// Cross origin we want to disallow scripting and limit access to
// a predefined set of properties. XrayWrapper adds a property
// (.wrappedJSObject) which allows bypassing the XrayWrapper, but
// we filter out access to that property.
// a predefined set of properties.
XrayType type = GetXrayType(obj);
if (type == NotXray) {
wrapper = &FilteringWrapper<CrossCompartmentSecurityWrapper,