Bug 968297 - Prevent the priority manager from changing the Nuwa process priority. r=khuey

This commit is contained in:
Gabriele Svelto 2014-02-06 19:28:21 +01:00
parent 7ee00912e6
commit dabcdcbecc

View File

@ -971,6 +971,13 @@ ParticularProcessPriorityManager::SetPriorityNow(ProcessPriority aPriority,
return;
}
#ifdef MOZ_NUWA_PROCESS
// Do not attempt to change the priority of the Nuwa process
if (mContentParent->IsNuwaProcess()) {
return;
}
#endif
if (aBackgroundLRU > 0 &&
aPriority == PROCESS_PRIORITY_BACKGROUND &&
mPriority == PROCESS_PRIORITY_BACKGROUND) {