Skip to content

Commit 2a045f8

Browse files
committed
Revert "Begrudgingly adds chrome detection to jQuery.browser (1.7). Fixes #9385"
This reverts commit dd93d0e.
1 parent e2187f4 commit 2a045f8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/core.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ var jQuery = function( selector, context ) {
3939
rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
4040

4141
// Useragent RegExp
42-
rchrome = /(chrome)[ \/]([\w.]+)/,
4342
rwebkit = /(webkit)[ \/]([\w.]+)/,
4443
ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
4544
rmsie = /(msie) ([\w.]+)/,
@@ -838,8 +837,7 @@ jQuery.extend({
838837
uaMatch: function( ua ) {
839838
ua = ua.toLowerCase();
840839

841-
var match = rchrome.exec( ua ) ||
842-
rwebkit.exec( ua ) ||
840+
var match = rwebkit.exec( ua ) ||
843841
ropera.exec( ua ) ||
844842
rmsie.exec( ua ) ||
845843
ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||

test/data/ua.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ mozilla 1.0.1 Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.0.1) G
3737
mozilla 1.8.0.10 Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.10) Gecko/20070228 Camino/1.0.4
3838
webkit 418.9 Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.9 (KHTML, like Gecko, Safari) Safari/419.3 Cheshire/1.0.ALPHA
3939
webkit 419 Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/419 (KHTML, like Gecko, Safari/419.3) Cheshire/1.0.ALPHA
40-
chrome 525.19 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19
41-
chrome 525.19 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19
40+
webkit 525.19 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19
41+
webkit 525.19 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19
4242
mozilla 1.9.0.10 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042815 Firefox/3.0.10 CometBird/3.0.10
4343
mozilla 1.9.0.5 Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2009011615 Firefox/3.0.5 CometBird/3.0.5
4444
msie 7.0 Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Crazy Browser 3.0.0 Beta2)

0 commit comments

Comments
 (0)