Backout 115690326c5e for mochitest-2 orange on a CLOSED TREE
authorWes Kocher <wkocher@mozilla.com>
Fri, 09 Jan 2015 14:28:27 -0800
changeset 236131 367eacf58b48ccbee563964a111086fcbc46b6ff
parent 236130 21a26d8e745748a8b34d8cf03d338c31c099a71c
child 236132 eb4ffa05e89c100b85459f149264b3c2cd9b0461
push id389
push usermartin.thomson@gmail.com
push dateFri, 09 Jan 2015 23:59:51 +0000
milestone37.0a1
backs out115690326c5eb417d374f0b0978657662b79a0fd
Backout 115690326c5e for mochitest-2 orange on a CLOSED TREE
dom/workers/WorkerPrivate.cpp
--- a/dom/workers/WorkerPrivate.cpp
+++ b/dom/workers/WorkerPrivate.cpp
@@ -5057,17 +5057,17 @@ WorkerPrivate::RemoveChildWorker(JSConte
 bool
 WorkerPrivate::AddFeature(JSContext* aCx, WorkerFeature* aFeature)
 {
   AssertIsOnWorkerThread();
 
   {
     MutexAutoLock lock(mMutex);
 
-    if (mStatus >= Killing) {
+    if (mStatus >= Canceling) {
       return false;
     }
   }
 
   NS_ASSERTION(!mFeatures.Contains(aFeature), "Already know about this one!");
   mFeatures.AppendElement(aFeature);
 
   return mFeatures.Length() == 1 ?