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

This commit is contained in:
Bobby Holley 2014-04-18 23:46:27 -07:00
parent 469bd16d39
commit 163413cd27

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