Bug 1173182: Fix false positives in telemetry environment CPU extensions field; r=gfritzsche a=sledru
authorAaron Klotz <aklotz@mozilla.com>
Wed, 10 Jun 2015 11:02:29 -0600
changeset 275017 b7fbb032f2a2c7280f7887b78ca0d51da8f95f24
parent 275016 b807b5614da320fa25c3ed02f84cb53e88fed769
child 275018 8a53f67d0f6c249daf25f46e0a4f66ad19693538
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgfritzsche, sledru
bugs1173182
milestone40.0a2
Bug 1173182: Fix false positives in telemetry environment CPU extensions field; r=gfritzsche a=sledru
toolkit/components/telemetry/TelemetryEnvironment.jsm
--- a/toolkit/components/telemetry/TelemetryEnvironment.jsm
+++ b/toolkit/components/telemetry/TelemetryEnvironment.jsm
@@ -938,21 +938,19 @@ EnvironmentCache.prototype = {
 
     const CPU_EXTENSIONS = ["hasMMX", "hasSSE", "hasSSE2", "hasSSE3", "hasSSSE3",
                             "hasSSE4A", "hasSSE4_1", "hasSSE4_2", "hasEDSP", "hasARMv6",
                             "hasARMv7", "hasNEON"];
 
     // Enumerate the available CPU extensions.
     let availableExts = [];
     for (let ext of CPU_EXTENSIONS) {
-      try {
-        Services.sysinfo.getProperty(ext);
-        // If it doesn't throw, add it to the list.
+      if (getSysinfoProperty(ext, false)) {
         availableExts.push(ext);
-      } catch (e) {}
+      }
     }
 
     cpuData.extensions = availableExts;
 
     return cpuData;
   },
 
 #if defined(MOZ_WIDGET_GONK) || defined(MOZ_WIDGET_ANDROID)