Bug 629933 - WebGL mochitest mistakenly disabled on Mac OS 10.6 - r=vlad, a=obviously-should-be-blocking2.0

This commit is contained in:
Benoit Jacob 2011-01-29 22:31:21 -05:00
parent 83beb561bb
commit 69809e7cb0

View File

@ -372,9 +372,12 @@ function start() {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var version = Components.classes["@mozilla.org/system-info;1"]
.getService(Components.interfaces.nsIPropertyBag2)
.getProperty("version");
is106orHigher = (parseFloat(version) >= 10.6);
.getService(Components.interfaces.nsIPropertyBag2)
.getProperty("version");
// the next line is correct: Mac OS 10.6 corresponds to Darwin version 10 !
// Mac OS 10.5 would be Darwin version 9. the |version| string we've got here
// is the Darwin version.
is106orHigher = (parseFloat(version) >= 10.0);
} catch (ex) { }
if (!is106orHigher) {
dump("WebGL mochitest disabled on Mac OSX versions older than 10.6");