Bug 790417 - ContentParent::GetAll should include the pre-allocated process. r=cjones
authorJustin Lebar <justin.lebar@gmail.com>
Tue, 02 Oct 2012 00:11:41 -0400
changeset 108969 2575a2f89d22c5b2a1d5e76c85c270d5314f88c6
parent 108968 bae96aa5f1adb4c04801db0ad7bd71569c026830
child 108970 15cc0aabab67288f2a2f3ed6408060450bc5cd1d
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewerscjones
bugs790417
milestone18.0a1
Bug 790417 - ContentParent::GetAll should include the pre-allocated process. r=cjones
dom/ipc/ContentParent.cpp
--- a/dom/ipc/ContentParent.cpp
+++ b/dom/ipc/ContentParent.cpp
@@ -400,16 +400,20 @@ ContentParent::GetAll(nsTArray<ContentPa
 
     if (gNonAppContentParents) {
         aArray.AppendElements(*gNonAppContentParents);
     }
 
     if (gAppContentParents) {
         gAppContentParents->EnumerateRead(&AppendToTArray, &aArray);
     }
+
+    if (sPreallocatedAppProcess) {
+        aArray.AppendElement(sPreallocatedAppProcess);
+    }
 }
 
 void
 ContentParent::Init()
 {
     nsCOMPtr<nsIObserverService> obs = mozilla::services::GetObserverService();
     if (obs) {
         obs->AddObserver(this, "xpcom-shutdown", false);