Bug 990353 - Flip off source discarding for XPCShell. r=fabrice

This commit is contained in:
Bobby Holley 2014-04-22 14:08:29 -07:00
parent 2e28b98fa7
commit c99fbf5e66

View File

@ -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);