Bug 1301094 - Fix bustage caused by changed HoldWorker function signature. a=bustage
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 15 Sep 2016 18:32:35 -0400
changeset 348204 2d4867f1d03306471fec3f679896365845985f69
parent 348203 7564ca26020e7c23b43d56b8ee68ef03c7e38dd6
child 348205 132a7234541cc6ea4fcf8c2fb5e16b0381306353
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1301094
milestone50.0a2
Bug 1301094 - Fix bustage caused by changed HoldWorker function signature. a=bustage
dom/ipc/Blob.cpp
--- a/dom/ipc/Blob.cpp
+++ b/dom/ipc/Blob.cpp
@@ -2165,17 +2165,17 @@ RemoteBlobImpl::CommonInit(BlobChild* aA
 
   if (!NS_IsMainThread()) {
     mWorkerPrivate = GetCurrentThreadWorkerPrivate();
     // We must comunicate via IPC in the owning thread, so, if this BlobImpl has
     // been created on a Workerr and then it's sent to a different thread (for
     // instance the main-thread), we still need to keep alive that Worker.
     if (mWorkerPrivate) {
       mWorkerHolder = new RemoteBlobImpl::WorkerHolder(this);
-      if (NS_WARN_IF(!mWorkerHolder->HoldWorker(mWorkerPrivate, Closing))) {
+      if (NS_WARN_IF(!mWorkerHolder->HoldWorker(mWorkerPrivate))) {
         // We don't care too much if the worker is already going away because no
         // sync-event-loop can be created at this point.
         mWorkerPrivate = nullptr;
         mWorkerHolder = nullptr;
       }
     }
   }