Bug 1103036 - Don't send shutdown message to Nuwa processes; r=billm

This commit is contained in:
Jim Chen 2015-01-10 13:46:46 -05:00
Родитель 360963ab4a
Коммит 95447e5837
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -1500,6 +1500,14 @@ ContentParent::TransformPreallocatedIntoBrowser(ContentParent* aOpener)
void
ContentParent::ShutDownProcess(ShutDownMethod aMethod)
{
#ifdef MOZ_NUWA_PROCESS
if (aMethod == SEND_SHUTDOWN_MESSAGE && IsNuwaProcess()) {
// We shouldn't send shutdown messages to frozen Nuwa processes,
// so just close the channel.
aMethod = CLOSE_CHANNEL;
}
#endif
// Shutting down by sending a shutdown message works differently than the
// other methods. We first call Shutdown() in the child. After the child is
// ready, it calls FinishShutdown() on us. Then we close the channel.