(bug 42604) fix faulty browser detection code for Opera
authorMatmaRex <matma.rex@gmail.com>
Sat, 1 Dec 2012 13:34:29 +0000 (14:34 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 9 Dec 2012 16:41:46 +0000 (16:41 +0000)
commitcd19809f11b56b0621115c51a62b2aa94b571362
treebedf96b982ba720ea5a48e5a2e47661cafb4986b
parent39351beea5510407c34678f829ca087297ed1e5e
(bug 42604) fix faulty browser detection code for Opera

Opera's `navigator.userAgent` might not include the "Version/major.minor"
part, causing the code relying on it being present to blow up. This patch
fixes the issue.

Also added tests for Opera.

Change-Id: I9ceb7517e00042366e45cf13aa89262ed19709c0
resources/jquery/jquery.client.js
tests/qunit/suites/resources/jquery/jquery.client.test.js