Ticket #2661 (closed bug: fixed)
Browser detection IE (and possibly other browsers)
| Reported by: | cybernetix | Owned by: | flesler |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | core | Version: | 1.4a1 |
| Keywords: | browser detection | Cc: | |
| Blocking: | Blocked by: |
Description
If MEGAUPLOAD or similar plugin is installed jQuery.browser returns wrong IE version.
For example userAgent string for IE7 with installed MEGAUPLOAD plugin is:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; MEGAUPLOAD 2.0)
jQuery.browser.version returns 6 instead of 7
First plus (+) should be removed from regExp and than it will work fine. So, this line:
| [])[1] |
should read:
| [])[1] |
Change History
comment:3 Changed 5 years ago by eventualbudd
The solution you posted doesn't actually work with Opera. Here's one that passes all the jQuery tests (thanks Brad Greenlee!):
/.+?(?:rv|it|ra|ie)[\/: ]([\d.]+)(?!.+opera)/
comment:6 Changed 4 years ago by mesoconcepts
Has anyone looked into this? It's clearly related, and his patch seems to work...
http://jamazon.co.uk/web/2008/03/14/jquerybrowserversion-doesnt-recognise-ie7/
http://jamazon.co.uk/web/2008/03/17/thickbox-31-ie7-positioning-bug/
comment:7 Changed 4 years ago by mesoconcepts
cross-referencing in case someone on the WP end submits a patch:
comment:10 Changed 4 years ago by dmethvin
Also dup #4722.
comment:11 Changed 4 years ago by dmethvin
Boop boop be dup #4754.
comment:12 Changed 4 years ago by dmethvin
See also #5279.
comment:13 Changed 4 years ago by dmethvin
See also #5127.
comment:14 Changed 4 years ago by thorn
comment:15 Changed 4 years ago by hm2k
comment:16 Changed 3 years ago by john
- Status changed from assigned to closed
- Version changed from 1.2.3 to 1.4a1
- Resolution set to fixed
- Milestone changed from 1.2.4 to 1.4
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Same as #2784