Bug 750183 - Don't nuke chrome->chrome cross-compartment wrappers. r=bholley

This commit is contained in:
Kyle Huey 2012-05-03 09:10:08 +02:00
parent e61ab6cba6
commit 9d19220495

View File

@ -1152,6 +1152,9 @@ js::NukeChromeCrossCompartmentWrappersForGlobal(JSContext *cx, JSObject *obj,
JSObject *wobj = &e.front().value.get().toObject();
JSObject *wrapped = UnwrapObject(wobj, false);
if (js::IsSystemCompartment(wrapped->compartment()))
continue; // Not interested in chrome->chrome wrappers.
if (nukeGlobal == DontNukeForGlobalObject && wrapped == global)
continue;