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

@@ -387,7 +387,7 @@ XPCShellEnvironment::~XPCShellEnvironment()
Rooted<JSObject*> global(cx, GetGlobalObject());
{
JSAutoRealmAllowCCW ar(cx, global);
JSAutoRealm ar(cx, global);
JS_SetAllNonReservedSlotsToUndefined(cx, global);
}
mGlobalHolder.reset();
@@ -448,7 +448,7 @@ XPCShellEnvironment::Init()
NS_ERROR("Failed to get global JSObject!");
return false;
}
JSAutoRealmAllowCCW ar(cx, globalObj);
JSAutoRealm ar(cx, globalObj);
backstagePass->SetGlobalObject(globalObj);