Bug 1197966 - Fixing typo when releasing content-side probes in PerformanceStats-content.js;r=felipe draft
authorDavid Rajchenbach-Teller <dteller@mozilla.com>
Tue, 25 Aug 2015 17:18:09 +0200
changeset 288027 5eb9e1c23f3b9bd190aebfcb24234bb00bdae77d
parent 287103 22c34579ae0720e7d3dc39a22b9d33f13bc0198b
child 508717 76671f403895b62a24ea853f1d194b8370193c95
push id4784
push userdteller@mozilla.com
push dateWed, 26 Aug 2015 18:50:25 +0000
reviewersfelipe
bugs1197966
milestone43.0a1
Bug 1197966 - Fixing typo when releasing content-side probes in PerformanceStats-content.js;r=felipe
toolkit/components/perfmonitoring/PerformanceStats-content.js
--- a/toolkit/components/perfmonitoring/PerformanceStats-content.js
+++ b/toolkit/components/perfmonitoring/PerformanceStats-content.js
@@ -74,18 +74,19 @@ Services.cpmm.addMessageListener("perfor
  *
  * @param {{payload: Array<string>}} msg.data The message received. `payload`
  * must be an array of probe names.
  */
 Services.cpmm.addMessageListener("performance-stats-service-release", function(msg) {
   if (!isContent) {
     return;
   }
+
   // Keep only the probes that do not appear in the payload
-  let probes = gMonitor.getProbeNames
+  let probes = gMonitor.probeNames
     .filter(x => msg.data.payload.indexOf(x) == -1);
   gMonitor = PerformanceStats.getMonitor(probes);
 });
 
 /**
  * Ensure that this process has all the probes it needs.
  *
  * @param {Array<string>} probeNames The name of all probes needed by the