mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 788914 - Recompute cross-compartment wrappers when UniversalXPConnect is enabled. r=mrbkap
This commit is contained in:
parent
c07d959563
commit
7161c1a972
@ -4407,6 +4407,13 @@ inline void EnableUniversalXPConnect(JSContext *cx)
|
||||
if (!priv)
|
||||
return;
|
||||
priv->universalXPConnectEnabled = true;
|
||||
|
||||
// Recompute all the cross-compartment wrappers leaving the newly-privileged
|
||||
// compartment.
|
||||
mozilla::DebugOnly<bool> rv;
|
||||
rv = js::RecomputeWrappers(cx, js::SingleCompartment(compartment),
|
||||
js::AllCompartments());
|
||||
MOZ_ASSERT(rv);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user