From 62feb6709e79ecc851341f9975ded7d6f2ff00b7 Mon Sep 17 00:00:00 2001 From: Brian Hackett Date: Mon, 23 Jul 2018 14:49:33 +0000 Subject: [PATCH] Bug 1465294 Part 1 - Always use the chrome tab group in middleman processes, r=smaug. --HG-- extra : rebase_source : 608e3c225526b42e126293f068ed01a45f36432c --- dom/base/TabGroup.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dom/base/TabGroup.cpp b/dom/base/TabGroup.cpp index 5884bb6df7a7..26441d4ffb86 100644 --- a/dom/base/TabGroup.cpp +++ b/dom/base/TabGroup.cpp @@ -120,6 +120,11 @@ TabGroup::GetFromActor(TabChild* aTabChild) { MOZ_RELEASE_ASSERT(NS_IsMainThread()); + // Middleman processes do not assign event targets to their tab children. + if (recordreplay::IsMiddleman()) { + return GetChromeTabGroup(); + } + nsCOMPtr target = aTabChild->Manager()->GetEventTargetFor(aTabChild); if (!target) { return nullptr;