Bug 1021312 - use a fresh zone for xpcshell. r=mccr8

This commit is contained in:
Bobby Holley 2014-06-05 22:32:36 -07:00
parent 1370d9ec74
commit 03388b10d1

View File

@ -1529,8 +1529,10 @@ XRE_XPCShellMain(int argc, char **argv, char **envp)
return 1;
}
// Make the default XPCShell global use a fresh zone (rather than the
// System Zone) to improve cross-zone test coverage.
JS::CompartmentOptions options;
options.setZone(JS::SystemZone)
options.setZone(JS::FreshZone)
.setVersion(JSVERSION_LATEST);
nsCOMPtr<nsIXPConnectJSObjectHolder> holder;
rv = xpc->InitClassesWithNewWrappedGlobal(cx,