Bug 1479363 part 10 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in other directories. r=mrbkap

This commit is contained in:
Jan de Mooij
2018-08-02 19:30:17 +02:00
parent 0c82b15935
commit 9d3bc542f6
12 changed files with 20 additions and 20 deletions

View File

@@ -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);