Bug 1052089 - Rename JunkScope to PrivilegedJunkScope and remove fallibility of singleton scope access. r=billm

These two things ended up getting mushed together in my tree.
This commit is contained in:
Bobby Holley
2014-08-18 10:57:30 -07:00
parent d9f078e090
commit 0270bcaf23
14 changed files with 32 additions and 64 deletions

View File

@@ -395,7 +395,7 @@ JavaScriptShared::findObjectById(JSContext *cx, uint32_t objId)
}
// If there's no TabChildGlobal, we use the junk scope.
JSAutoCompartment ac(cx, xpc::GetJunkScope());
JSAutoCompartment ac(cx, xpc::PrivilegedJunkScope());
if (!JS_WrapObject(cx, &obj))
return nullptr;
return obj;