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
Родитель 60ea4d2766
Коммит 8c7cf2c1e6
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1550,6 +1550,11 @@ XRE_XPCShellMain(int argc, char **argv, char **envp)
return 1; 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); backstagePass->SetGlobalObject(glob);
JSAutoCompartment ac(cx, glob); JSAutoCompartment ac(cx, glob);