mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Bug 629933 - WebGL mochitest mistakenly disabled on Mac OS 10.6 - r=vlad, a=obviously-should-be-blocking2.0
This commit is contained in:
parent
83beb561bb
commit
69809e7cb0
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user