Bug 948545: Nuwa process shouldn't exist if dom.ipc.processPrelaunch.enabled is false r=khuey

This commit is contained in:
Patrick Wang 2013-12-13 16:38:08 +08:00
parent 6417716869
commit 74fa88d0c4

View File

@ -246,7 +246,7 @@ PreallocatedProcessManagerImpl::DelayedNuwaFork()
mPreallocateAppProcessTask = nullptr;
if (!mIsNuwaReady) {
if (!mPreallocatedAppProcess && !mShutdown) {
if (!mPreallocatedAppProcess && !mShutdown && mEnabled) {
mPreallocatedAppProcess = ContentParent::RunNuwaProcess();
}
// else mPreallocatedAppProcess is starting. It will NuwaFork() when ready.