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 108823 2575a2f89d22c5b2a1d5e76c85c270d5314f88c6
parent 108822 bae96aa5f1adb4c04801db0ad7bd71569c026830
child 108824 15cc0aabab67288f2a2f3ed6408060450bc5cd1d
push id15713
push userjlebar@mozilla.com
push dateTue, 02 Oct 2012 04:11:59 +0000
treeherdermozilla-inbound@17b5b5dcd308 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscjones
bugs790417
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);