Bug 1479363 part 10 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in other directories. r=mrbkap
This commit is contained in:
@@ -536,7 +536,7 @@ 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.
|
||||
JSAutoRealmAllowCCW ar(cx, scopeForTargetObjects());
|
||||
JSAutoRealm ar(cx, scopeForTargetObjects());
|
||||
if (objId.hasXrayWaiver()) {
|
||||
{
|
||||
JSAutoRealmAllowCCW ar2(cx, obj);
|
||||
|
||||
Reference in New Issue
Block a user