tobie / ua-parser

A multi-language port of Browserscope's user agent parser.
Other
1.97k stars 497 forks source link

Opera's UA string is changing #43

Closed brucelawson closed 12 years ago

brucelawson commented 12 years ago

Hi

Opera 12.50 alpha (aka Opera Next http://www.opera.com/browser/next/) on desktop doesn't render http://detector.dmolsen.com/, whereas Opera 12.01 does. In Opera.Next, masking as Firefox makes it work. That's often indicative of UA detection at play. detector.dmolsen.com uses ua-parser, hence filing this issue.

Opera 12.50 simplifies the UA string (see http://my.opera.com/ODIN/blog/2012/08/03/a-hot-opera-12-50-summer-time-snapshot). Opera Mobile and Opera Mini will move to the new UA string in the future, too.

Opera 12.50 will ship with a simplified UA string. Firstly, we have dropped the "U;" token, which signified that the browser provides crypto support that is stronger than what the "international" builds of Netscape offered circa 1995. The second change is removal of the language indicator. As an example, while the UA string for Opera 12.01 on Mac is currently Opera/9.80 (Macintosh; Intel Mac OS X 10.8.0; U; en) Presto/2.10.289 Version/12.01

today's snapshot for Opera 12.50 on Mac shows Opera/9.80 (Macintosh; Intel Mac OS X 10.8.0) Presto/2.12.363 Version/12.50

Both these changes correspond to similar changes in the IE, Firefox, Chrome and Safari browsers' UA strings."

tobie commented 12 years ago

Happy to merge a change that fixes the regexes stored here: https://github.com/tobie/ua-parser/blob/master/regexes.yaml

I don't have the time to look into it myself atm.

dmolsen commented 12 years ago

This is a problem with a specific test in Modernizr. ua-parser appears to classify the browser correctly. For a longer explanation check out my update on this issue opened on Detector's repo.