diff --git a/gfx/layers/ipc/CompositorBridgeChild.cpp b/gfx/layers/ipc/CompositorBridgeChild.cpp index c50ae212cba2..a7e4cf0484a8 100644 --- a/gfx/layers/ipc/CompositorBridgeChild.cpp +++ b/gfx/layers/ipc/CompositorBridgeChild.cpp @@ -337,6 +337,17 @@ CompositorBridgeChild::AllocPLayerTransactionChild(const nsTArray { LayerTransactionChild* c = new LayerTransactionChild(aId); c->AddIPDLReference(); + + TabChild* tabChild = TabChild::GetFrom(c->GetId()); + + // Do the DOM Labeling. + if (tabChild) { + nsCOMPtr target = + tabChild->TabGroup()->EventTargetFor(TaskCategory::Other); + SetEventTargetForActor(c, target); + MOZ_ASSERT(c->GetActorEventTarget()); + } + return c; }