Backed out changeset e642f1df626d (bug 1318506)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Thu, 01 Dec 2016 13:35:15 +0100
changeset 325004 ca73f213f05a4ae120619fbee6fe6cd11d577638
parent 325003 d48bc2da8280c50096c8dbc587ed1e2113c4f908
child 325005 9efd9724f08fd0dfe83f1deafe5375b12f6111ad
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
bugs1318506
milestone53.0a1
backs oute642f1df626dbca714a2adbae3b3d2365a9b9bfe
Backed out changeset e642f1df626d (bug 1318506)
dom/messagechannel/MessagePort.cpp
--- a/dom/messagechannel/MessagePort.cpp
+++ b/dom/messagechannel/MessagePort.cpp
@@ -561,22 +561,16 @@ MessagePort::Dispatch()
       break;
   }
 
   RefPtr<SharedMessagePortMessage> data = mMessages.ElementAt(0);
   mMessages.RemoveElementAt(0);
 
   mPostMessageRunnable = new PostMessageRunnable(this, data);
 
-  nsCOMPtr<nsIGlobalObject> global = GetOwnerGlobal();
-  if (NS_IsMainThread() && global) {
-    MOZ_ALWAYS_SUCCEEDS(global->Dispatch("MessagePortMessage", TaskCategory::Other, do_AddRef(mPostMessageRunnable)));
-    return;
-  }
-
   MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(mPostMessageRunnable));
 }
 
 void
 MessagePort::Close()
 {
   CloseInternal(true /* aSoftly */);
 }