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
b6f5a8c755
commit
40b9a11acf
@ -1529,8 +1529,10 @@ XRE_XPCShellMain(int argc, char **argv, char **envp)
|
|||||||
return 1;
|
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;
|
JS::CompartmentOptions options;
|
||||||
options.setZone(JS::SystemZone)
|
options.setZone(JS::FreshZone)
|
||||||
.setVersion(JSVERSION_LATEST);
|
.setVersion(JSVERSION_LATEST);
|
||||||
nsCOMPtr<nsIXPConnectJSObjectHolder> holder;
|
nsCOMPtr<nsIXPConnectJSObjectHolder> holder;
|
||||||
rv = xpc->InitClassesWithNewWrappedGlobal(cx,
|
rv = xpc->InitClassesWithNewWrappedGlobal(cx,
|
||||||
|
Loading…
Reference in New Issue
Block a user