Bug 1343754 - Label PLayerTransaction; r=bevistseng,kats
authorKevin Chen <kechen@mozilla.com>
Tue, 21 Mar 2017 03:57:56 +0000
changeset 356586 e92e9340219c5b0cde2ee936750dff9e96cdbe42
parent 356585 0630447dd5b6f1f4fa5e070968d1b5c3946e2a99
child 356587 d401cd6d2fd00771c818e80746f37a972070b11a
push id89950
push usercbook@mozilla.com
push dateFri, 05 May 2017 13:26:37 +0000
treeherdermozilla-inbound@e95e5825fd40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbevistseng, kats
bugs1343754
milestone55.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 1343754 - Label PLayerTransaction; r=bevistseng,kats MozReview-Commit-ID: 8QF5SQKuFhY
gfx/layers/ipc/CompositorBridgeChild.cpp
--- a/gfx/layers/ipc/CompositorBridgeChild.cpp
+++ b/gfx/layers/ipc/CompositorBridgeChild.cpp
@@ -332,16 +332,27 @@ CompositorBridgeChild::CompositorIsInGPU
 PLayerTransactionChild*
 CompositorBridgeChild::AllocPLayerTransactionChild(const nsTArray<LayersBackend>& aBackendHints,
                                                    const uint64_t& aId,
                                                    TextureFactoryIdentifier*,
                                                    bool*)
 {
   LayerTransactionChild* c = new LayerTransactionChild(aId);
   c->AddIPDLReference();
+
+  TabChild* tabChild = TabChild::GetFrom(c->GetId());
+
+  // Do the DOM Labeling.
+  if (tabChild) {
+    nsCOMPtr<nsIEventTarget> target =
+      tabChild->TabGroup()->EventTargetFor(TaskCategory::Other);
+    SetEventTargetForActor(c, target);
+    MOZ_ASSERT(c->GetActorEventTarget());
+  }
+
   return c;
 }
 
 bool
 CompositorBridgeChild::DeallocPLayerTransactionChild(PLayerTransactionChild* actor)
 {
   uint64_t childId = static_cast<LayerTransactionChild*>(actor)->GetId();