diff --git a/dom/ipc/ProcessPriorityManager.cpp b/dom/ipc/ProcessPriorityManager.cpp index 90e630313df6..f4c3ee5b399a 100644 --- a/dom/ipc/ProcessPriorityManager.cpp +++ b/dom/ipc/ProcessPriorityManager.cpp @@ -1045,7 +1045,9 @@ ParticularProcessPriorityManager::ShutDown() mResetPriorityTimer = nullptr; } - ProcessPriorityManager::RemoveFromBackgroundLRUPool(mContentParent); + if (mPriority == PROCESS_PRIORITY_BACKGROUND && !IsPreallocated()) { + ProcessPriorityManager::RemoveFromBackgroundLRUPool(mContentParent); + } mContentParent = nullptr; }