Bug 1465294 Part 5 - Only send first idle message from the middleman process, r=mrbkap.
authorBrian Hackett <bhackett1024@gmail.com>
Mon, 23 Jul 2018 14:51:34 +0000
changeset 482989 8bf1f931c2c0126eceed5a2d0d3cf4a1552995f3
parent 482988 1d25793b823cee764520c1c579e2d7d99e77e602
child 482990 d852c5eb2dd817dcf6a7550a162c23a37289d60d
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs1465294
milestone63.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 1465294 Part 5 - Only send first idle message from the middleman process, r=mrbkap.
dom/ipc/ContentChild.cpp
--- a/dom/ipc/ContentChild.cpp
+++ b/dom/ipc/ContentChild.cpp
@@ -1804,17 +1804,21 @@ ContentChild::RecvBidiKeyboardNotify(con
 
 static StaticRefPtr<CancelableRunnable> gFirstIdleTask;
 
 static void
 FirstIdle(void)
 {
   MOZ_ASSERT(gFirstIdleTask);
   gFirstIdleTask = nullptr;
-  ContentChild::GetSingleton()->SendFirstIdle();
+
+  // When recording or replaying, the middleman process will send this message instead.
+  if (!recordreplay::IsRecordingOrReplaying()) {
+    ContentChild::GetSingleton()->SendFirstIdle();
+  }
 }
 
 mozilla::jsipc::PJavaScriptChild *
 ContentChild::AllocPJavaScriptChild()
 {
   MOZ_ASSERT(ManagedPJavaScriptChild().IsEmpty());
 
   return nsIContentChild::AllocPJavaScriptChild();