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 committed 2014-08-18 10:57:30 -07:00
1 parent d9f078e090
commit 0270bcaf23
14 files changed
+32 -64

No files matched your search

+1 -1
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;