mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 750183 - Don't nuke chrome->chrome cross-compartment wrappers. r=bholley
This commit is contained in:
parent
e61ab6cba6
commit
9d19220495
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user