[tor-commits] [tor-browser/tor-browser-45.9.0esr-6.5-1] fixup! Bug #4234: Use the Firefox Update Process for Tor Browser.

gk at torproject.org gk at torproject.org
Thu Apr 13 14:48:06 UTC 2017


commit db3f92ed23e12a2a9b9eac5be773d475897edfca
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Fri Mar 10 17:32:04 2017 +0100

    fixup! Bug #4234: Use the Firefox Update Process for Tor Browser.
    
    Bug 19316: add support for a minInstructionSet attribute in the update
    manifests.
---
 toolkit/mozapps/update/nsUpdateService.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/toolkit/mozapps/update/nsUpdateService.js b/toolkit/mozapps/update/nsUpdateService.js
index 4ad5bb8..d098597 100644
--- a/toolkit/mozapps/update/nsUpdateService.js
+++ b/toolkit/mozapps/update/nsUpdateService.js
@@ -1512,6 +1512,15 @@ function Update(update) {
       this.unsupported = (Services.vc.compare(osVersion, minOSVersion) < 0);
     } catch (e) {}
   }
+  if (!this.unsupported && update.hasAttribute("minSupportedInstructionSet")) {
+    let minInstructionSet = update.getAttribute("minSupportedInstructionSet");
+    if (['MMX', 'SSE', 'SSE2', 'SSE3',
+        'SSE4A', 'SSE4_1', 'SSE4_2'].indexOf(minInstructionSet) >= 0) {
+      try {
+        this.unsupported = !Services.sysinfo.getProperty("has" + minInstructionSet);
+      } catch (e) {}
+    }
+  }
 
   if (this._patches.length == 0 && !this.unsupported) {
     throw Cr.NS_ERROR_ILLEGAL_VALUE;



More information about the tor-commits mailing list