Bug 774607 - Remove use of JS_{Is,Make}SystemObject from Gecko. r=bz

We currently set this for system globals and anything whose parent
chain leads to a system global. Maybe this was relevant before, but
with CPG this is just equivalent to asking whether the object is in
a system compartment. And the only place where we _check_ this bit
is immediately after checking for a system compartment, in
WrapperFactory. So AFAICT this can go away entirely.
This commit is contained in:
Bobby Holley
2012-09-05 11:32:07 -07:00
parent e9587c2607
commit ac1db9cd7f
9 changed files with 8 additions and 31 deletions

View File

@@ -1088,9 +1088,7 @@ XPCShellEnvironment::Init()
nsCOMPtr<nsIXPConnectJSObjectHolder> holder;
rv = xpc->InitClassesWithNewWrappedGlobal(cx, backstagePass,
principal,
nsIXPConnect::
FLAG_SYSTEM_GLOBAL_OBJECT,
principal, 0,
getter_AddRefs(holder));
if (NS_FAILED(rv)) {
NS_ERROR("InitClassesWithNewWrappedGlobal failed!");