Compatibility/UADetectionLibraries: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 58: Line 58:
=== JavaScript ===
=== JavaScript ===
* Detect.js https://github.com/darcyclarke/Detect.js
* Detect.js https://github.com/darcyclarke/Detect.js
* Detectizr [https://bugzilla.mozilla.org/show_bug.cgi?id=956998 Bug 956998] *
* detectmobilebrowsers.com [https://bugzilla.mozilla.org/show_bug.cgi?id=914241 Bug 914241*]
* Device.js [https://bugzilla.mozilla.org/show_bug.cgi?id=915853 915853] *
* Express Device https://npmjs.org/package/express-device
* Express Device https://npmjs.org/package/express-device
* isMobile https://github.com/kaimallea/isMobile
* isMobile https://github.com/kaimallea/isMobile
* is-mobile [https://bugzilla.mozilla.org/show_bug.cgi?id=914231 Bug 914231] *
* JS Redirection Mobile [https://bugzilla.mozilla.org/show_bug.cgi?id=932458 Bug 932458]*
* jQuery Mobile
* jQuery Mobile
* Mobile Agent https://github.com/fabdrol/mobileagent
* Mobile Agent https://github.com/fabdrol/mobileagent
* Mootools (https://github.com/mootools/mootools-core/blob/master/Source/Browser/Browser.js)
* Mootools (https://github.com/mootools/mootools-core/blob/master/Source/Browser/Browser.js)
* Node User Agent Parse https://github.com/jujhars13/node-user-agent-parse
* Node User Agent Parse https://github.com/jujhars13/node-user-agent-parse
* Platform.js [https://bugzilla.mozilla.org/show_bug.cgi?id=913633 Bug 913633]
* ua-parser-js https://github.com/faisalman/ua-parser-js
* ua-parser-js https://github.com/faisalman/ua-parser-js
* useragent https://github.com/3rd-Eden/useragent
* useragent https://github.com/3rd-Eden/useragent
* Woothee [https://bugzilla.mozilla.org/show_bug.cgi?id=914313 Bug 914313] *
* YUI - http://yuilibrary.com/yui/docs/yui/yui-ua.html
* YUI - http://yuilibrary.com/yui/docs/yui/yui-ua.html
* UA.js [https://bugzilla.mozilla.org/show_bug.cgi?id=913189 Bug 913189] *


=== Multiple Languages ===
=== Multiple Languages ===

Revision as of 04:06, 11 January 2014

User Agent Detection Libraries

This is a list of User Agent detection libraries to be tested for compatibility with Firefox OS and Firefox for Android. This may also include general purpose JS libraries that include some kind of UA detection.

The end goal is to contact these sites or (even better, in the case of open source libraries) provide patches so our mobile browsers are correctly identified as mobile (and not served desktop content or blocked outright).


UA strings to test with:

Firefox Mobile for Android:

  • Mozilla/5.0 (Android; Mobile; rv:24.0) Gecko/24.0 Firefox/24.0

Firefox OS phones:

  • Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

Firefox OS tablets:

  • Mozilla/5.0 (Tablet; rv:26.0) Gecko/18.0 Firefox/26.0

Some known Firefox OS UA strings with device ids (found in bugzil.la/873385):

  • Mozilla/5.0 (Mobile; ZTEOPEN; rv:18.1) Gecko/18.1 Firefox/18.1
  • Mozilla/5.0 (Mobile; HUAWEIY300-F1; rv:18.1) Gecko/18.1 Firefox/18.1
  • Mozilla/5.0 (Mobile; LG-D300; rv:18.1) Gecko/18.1 Firefox/18.1
  • Mozilla/5.0 (Mobile; ALCATELOneTouch4012X; rv:18.1) Gecko/18.1 Firefox/18.1

See also https://developer.mozilla.org/en-US/docs/Gecko_user_agent_string_reference#Firefox_OS_version_number.

Libraries to be tested

JavaScript

Server Modules

Tested, issues reported in Bugzilla

Meta Bug: 915706

*fixed

server frameworks

java

php

Libraries known to be compatibile

Go

Java

JavaScript

Multiple Languages

Perl

PHP

Python

Ruby

Server Detection Frameworks