Namespace bot.userAgent
code »Global Functions
code »bot.userAgent.isEngineVersion ( version ) ⇒ boolean
Whether the rendering engine version of the current browser is equal to or
greater than the given version. This implementation differs from
goog.userAgent.isVersion in the following ways:
- in a Firefox extension, tests the engine version through the XUL version
comparator service, because no window.navigator object is available
- in IE, compares the given version to the current documentMode
boolean
code »bot.userAgent.isProductVersion ( version ) ⇒ boolean
Whether the product version of the current browser is equal to or greater
than the given version. This implementation differs from
goog.userAgent.product.isVersion in the following ways:
- in a Firefox extension, tests the product version through the XUL version
comparator service, because no window.navigator object is available
- on Android, always compares to the version to the OS version
boolean
Global Properties
Whether the current browser is Android pre-gingerbread.
Whether the current browser is Android pre-icecreamsandwich
Android Operating System Version.
Whether we are in a Firefox extension.
code »bot.userAgent.FIREFOX_EXTENSION_IS_ENGINE_VERSION_ : (undefined|function((string|number)): boolean)
When we are in a Firefox extension, this is a function that accepts a version
and returns whether the version of Gecko we are on is the same or higher
than the given version. When we are not in a Firefox extension, this is null.
(undefined|function((string|number)): boolean)
code »bot.userAgent.FIREFOX_EXTENSION_IS_PRODUCT_VERSION_ : (undefined|function((string|number)): boolean)
When we are in a Firefox extension, this is a function that accepts a version
and returns whether the version of Firefox we are on is the same or higher
than the given version. When we are not in a Firefox extension, this is null.
(undefined|function((string|number)): boolean)