Bug 1261678 - fix wrong copy-pasted variable name in nsActivityManager.js::getProcessesByContext() (value => activity). r=jorgk a=rkent
authoraceman <acelists@atlas.sk>
Sun, 03 Apr 2016 06:48:00 +0200
changeset 31278 62c174ec1e9b68a97ba01b7589d9b82a5aee375d
parent 31277 40113b7b498d42264334902a0a06401012e7749e
child 31279 1d0cdb38d264e3946f42a62144d0f19194b06c8f
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk, rkent
bugs1261678
Bug 1261678 - fix wrong copy-pasted variable name in nsActivityManager.js::getProcessesByContext() (value => activity). r=jorgk a=rkent
mail/components/activity/nsActivityManager.js
--- a/mail/components/activity/nsActivityManager.js
+++ b/mail/components/activity/nsActivityManager.js
@@ -41,17 +41,17 @@ nsActivityManager.prototype = {
     }
 
     return count;
   },
 
   getProcessesByContext: function(aContextType, aContextObj, aCount) {
     let list = [];
     for (let id in this._activities) {
-      let value = this._activities[id];
+      let activity = this._activities[id];
       if (activity instanceof Ci.nsIActivityProcess &&
           activity.contextType == aContextType &&
           activity.contextObj == aContextObj) {
         list.push(activity);
       }
     }
 
     aCount.value = list.length;