Bug 1277359 - Report SSE2 instruction support on linux update pings. r=rstrong
We need to advertise this to the update server to avoid downloading
updates which won't run because of unsupported cpu features on
the recipient's hardware.
MozReview-Commit-ID: H36VXnD3TnW
--- a/toolkit/modules/UpdateUtils.jsm
+++ b/toolkit/modules/UpdateUtils.jsm
@@ -182,16 +182,24 @@ XPCOMUtils.defineLazyGetter(this, "gSyst
Cu.reportError("Error getting processor instruction set. " +
"Exception: " + e);
}
lib.close();
return instructionSet;
}
+ if (AppConstants == "linux") {
+ let instructionSet = "unknown";
+ if navigator.cpuHasSSE2 {
+ instructionSet = "SSE2";
+ }
+ return instructionSet;
+ }
+
return "NA"
});
/* Windows only getter that returns the processor architecture. */
XPCOMUtils.defineLazyGetter(this, "gWinCPUArch", function aus_gWinCPUArch() {
// Get processor architecture
let arch = "unknown";