mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 990353 - Flip off source discarding for XPCShell. r=fabrice
This commit is contained in:
parent
2e28b98fa7
commit
c99fbf5e66
@ -1550,6 +1550,11 @@ XRE_XPCShellMain(int argc, char **argv, char **envp)
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Even if we're building in a configuration where source is
|
||||
// discarded, there's no reason to do that on XPCShell, and doing so
|
||||
// might break various automation scripts.
|
||||
JS::CompartmentOptionsRef(glob).setDiscardSource(false);
|
||||
|
||||
backstagePass->SetGlobalObject(glob);
|
||||
|
||||
JSAutoCompartment ac(cx, glob);
|
||||
|
Loading…
Reference in New Issue
Block a user