mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1021312
- use a fresh zone for xpcshell. r=mccr8
This commit is contained in:
parent
1370d9ec74
commit
03388b10d1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user