Closed Bug 549957 Opened 15 years ago Closed 15 years ago

BrowserDetect reports wrong version for Opera 10.5

Categories

(Websites :: plugins.mozilla.org, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ozten, Unassigned)

Details

In an upcoming release we will be using browserdetect.js This library doesn't identify Opera 10.5 on Windows XP correctly. Actual: Version: 9.80 Build: 2.5.22 Expected: Version: 10.50 or 10.5 Build: 3296 or Build: 2.5.22 would be acceptable (Presto value)
This is not an issue, until we need to accurately detect Opera version. Patching browserdetect.js with diff --git a/lib/browserdetect.js b/lib/browserdetect.js index 8dd9c9b..668649c 100644 --- a/lib/browserdetect.js +++ b/lib/browserdetect.js @@ -63,11 +63,12 @@ BrowserDetect = { versionSearch: "Version", buildSearch: "Safari" }, - { + { prop: window.opera, identity: "Opera", - buildSearch: "Presto" - }, + buildSearch: "Presto", + versionSearch: "Version" + }, { string: navigator.vendor, subString: "iCab", Fixes this for 10.5, but breaks version detection for older version before 10. History of User Agent Strings: http://www.useragentstring.com/pages/Opera/ We'll let sleeping dogs lie, creating bug to capture known issue.
No action, bug for reference.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.