Better blacklisting of browsers using $.client

Change-Id: Ibc4d15008671700374fdc1e33d2e85f9899f9b35
This commit is contained in:
Santhosh Thottingal
2013-07-19 11:31:09 +05:30
committed by Amir E. Aharoni
parent 9d82e10a8c
commit 6ac12b6584
2 changed files with 7 additions and 3 deletions

View File

@@ -141,12 +141,15 @@
/**
* Checks whether the browser is supported.
* Browse support policy: http://www.mediawiki.org/wiki/Browser_support#Grade_A
* Browser support policy: http://www.mediawiki.org/wiki/Browser_support#Grade_A
* @return boolean
*/
function isBrowserSupported() {
// Blacklist Grade B browsers IE 6, 7 and IE60-IE79
return !/MSIE [67]/i.test( navigator.userAgent );
var blacklist = {
'msie': [['<=', 7]]
};
return !$.client.test( blacklist, null, true );
}
/**