[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-52.0.2esr-7.0-2] fixup! Bug #4234: Use the Firefox Update Process for Tor Browser.



commit 3e531451125720e28f3b7fd113af19b5d02aad18
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
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 699632d..8abc55a 100644
--- a/toolkit/mozapps/update/nsUpdateService.js
+++ b/toolkit/mozapps/update/nsUpdateService.js
@@ -1550,6 +1550,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;

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits