Changeset 1229


Ignore:
Timestamp:
11/14/09 20:07:25 (7 years ago)
Author:
ray
Message:

Mozilla changed navigator.productSub from a 12 digit number to a 10 digit number, so that recent Firefoxes triggered Xinha.is_ff2 because the number seemed lower.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r1226 r1229  
    192192 */ 
    193193Xinha.is_real_gecko = (navigator.product == "Gecko" && !Xinha.is_webkit); 
    194 /** Gecko version 1.9 (or greater) 
    195  * @type Boolean  
    196  */ 
    197 Xinha.is_ff3 = Xinha.is_real_gecko && parseInt(navigator.productSub, 10) >= 2007121016; 
     194 
    198195/** Gecko version lower than 1.9 
    199196 * @type Boolean  
    200197 */ 
    201 Xinha.is_ff2 = Xinha.is_real_gecko && parseInt(navigator.productSub, 10) < 2007121016; 
     198Xinha.is_ff2 = Xinha.is_real_gecko && parseInt(navigator.productSub.substr(0,10), 10) < 20071210; 
    202199 
    203200/** File is opened locally opened ("file://" protocol) 
Note: See TracChangeset for help on using the changeset viewer.