Am 06/20/2013 09:21 PM, schrieb Hagar Delest:
Le 20/06/2013 01:22, Fernando Cassia a écrit :
You dont say if you downloaded FF using your distro s package manager, or
if you went to mozilla.org and manually downloaded it.

That makes a huge difference, as I suspect Firefox versions downloaded
from
a distro s repos are much more likely to include distro info as part
of the
user-agent rather than generic Firefox builds downloadable from the
Mozarella Foundation...

Bllame it on Mozilla know-it-all(s) whose best expertise if crippling
exiating working features, in thename of "simplicity" (Goolgle is full of
them,too)

https://bugzilla.mozilla.org/show_bug.cgi?id=591573

Aha! Nice catch.
Indeed, it works with the FF version delivered by the distro.
Here are the information with that version:

Variables from the browser Values
navigator.appCodeName Mozilla
navigator.appName Netscape
navigator.appVersion 5.0 (X11)
navigator.platform Linux x86_64
navigator.oscpu Linux x86_64
navigator.product Gecko
navigator.productSub 20100101
navigator.vendor
navigator.vendorSub
navigator.language fr
navigator.browserLanguage undefined
navigator.userLanguage undefined
navigator.systemLanguage undefined
navigator.userAgent Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0)
Gecko/20100101 Firefox/21.0
navigator.UserAgent (with Ubuntu ?) 18
JavaScript functions and variables Values
Native language name Français
ISO code fr
Language array data fr,French,Français,y,http://www.openoffice.org/fr/
Native platform name Linux Debian 64-bit (DEB)
Mirror platform name Linux_x86-64_install-deb
Native file name Apache_OpenOffice_4.0.0_Linux_x86-64_install-deb_fr.tar.gz
Native file extension .tar.gz
Return value of getLink()
http://people.apache.org/~marcus/aoo/4.0.0/binaries/fr/Apache_OpenOffice_4.0.0_Linux_x86-64_install-deb_fr.tar.gz

Checksum file (here for MD5)
http://people.apache.org/~marcus/aoo/4.0.0/binaries/fr/Apache_OpenOffice_4.0.0_Linux_x86-64_install-deb_fr.tar.gz.md5

hasMirrorLink() true

The Native platform name is correct this time.

Great to know that it's working.

I've google'd a bit and found out that Mozilla doesn't insert any customized strings into Firefox. So, this means Firefox doesn't show any information about the used Linux distribution in the user agent string when using the native version of Firefox.

When using the version from the distro repository and the package maintainer has changed the user agent string (like in your example), then everything is fine.

So, (still) not posible to recognize the Linux distro when using a native Firefox.

Marcus


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to