startup: Lower blacklist for Firefox from 4 to 3.
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 10 Apr 2013 07:37:19 +0000 (09:37 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 10 Apr 2013 07:37:19 +0000 (09:37 +0200)
Though Firefox is 3.6 is both unsupported by Mozilla, by jQuery
and by MediaWiki JS, it is not known to have fatal errors in
javascript run time execution so moving from Grade B (blacklist)
to Grade X (unsupported but given Grade A source code at own risk).

This is done following a thread in English Wikipedia's Village
pump requesting to get the Grade A resources again.

Follows-up 02fe025e6364ebf6f.

Change-Id: Ia54dd738b3ce0995fab6aae7a2729cc7b1a0dcb1

resources/startup.js
tests/qunit/suites/resources/startup.test.js

index 39302bc..e4a16d8 100644 (file)
@@ -26,8 +26,8 @@ function isCompatible( ua ) {
        return !(
                // Internet Explorer < 6
                ( ua.indexOf( 'MSIE' ) !== -1 && parseFloat( ua.split( 'MSIE' )[1] ) < 6 ) ||
-               // Firefox < 4
-               ( ua.indexOf( 'Firefox/' ) !== -1 && parseFloat( ua.split( 'Firefox/' )[1] ) < 4 ) ||
+               // Firefox < 3
+               ( ua.indexOf( 'Firefox/' ) !== -1 && parseFloat( ua.split( 'Firefox/' )[1] ) < 3 ) ||
                // BlackBerry < 6
                ua.match( /BlackBerry[^\/]*\/[1-5]\./ ) ||
                // Open WebOS < 1.5
index 8b33df4..cc8e640 100644 (file)
                        'Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)',
                        'Mozilla/4.0 (compatible; MSIE 5.0; Windows 98;)',
                        'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)',
-                       // Firefox < 4
+                       // Firefox < 3.6
                        'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2',
                        'Mozilla/5.0 (X11; U; Linux i686; nl; rv:1.8.1.1) Gecko/20070311 Firefox/2.0.0.1',
-                       'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3',
                        // BlackBerry < 6
                        'BlackBerry9300/5.0.0.716 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/133',
                        'BlackBerry7250/4.0.0 Profile/MIDP-2.0 Configuration/CLDC-1.1',
@@ -75,6 +74,8 @@
                // No explicit support for or against these browsers, they're
                // given a shot at Grade A at their own risk.
                gradeX: [
+                       // Firefox 3.6
+                       'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3',
                        // Gecko
                        'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060928 (Debian|Debian-1.8.0.7-1) Epiphany/2.14',
                        'Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.6) Gecko/20070817 IceWeasel/2.0.0.6-g2',