Bug 1478955 part 1 - Rename JSAutoRealm to JSAutoRealmAllowCCW. r=luke

This commit is contained in:
Jan de Mooij
2018-07-28 12:12:26 +02:00
parent 1a6a7d2435
commit fddc23c346
127 changed files with 345 additions and 345 deletions

View File

@@ -536,10 +536,10 @@ JavaScriptShared::findObjectById(JSContext* cx, const ObjectId& objId)
// from the other process point to objects in this scope. From there, they
// can access objects in other compartments using cross-compartment
// wrappers.
JSAutoRealm ar(cx, scopeForTargetObjects());
JSAutoRealmAllowCCW ar(cx, scopeForTargetObjects());
if (objId.hasXrayWaiver()) {
{
JSAutoRealm ar2(cx, obj);
JSAutoRealmAllowCCW ar2(cx, obj);
obj = js::ToWindowProxyIfWindow(obj);
MOZ_ASSERT(obj);
}