5 May 2012 19:01
Re: [RELEASE] new DL test...needs review and comments, and probably correction
Marcus (OOo <marcus.mail <at> wtnet.de>
2012-05-05 17:01:16 GMT
2012-05-05 17:01:16 GMT
Am 05/05/2012 06:47 PM, schrieb Kay Schenk: > On Sat, May 5, 2012 at 6:46 AM, Marcus (OOo)<marcus.mail <at> wtnet.de> wrote: > >> Am 05/05/2012 02:55 PM, schrieb Claudio Filho: >> >> 2012/5/5 Marcus (OOo)<marcus.mail <at> wtnet.de>: >>> >>>> The platform seems not recognized. Please post what you get from this >>>> webpage: >>>> >>> >>> My results. >>> >>> Claudio >>> >>> >>> ----- Chromium 18.0.1025.168~r134367-1 ----- >>> navigator.platform: Linux i686 >>> navigator.UserAgent: Mozilla/5.0 (X11; Linux x86_64) >>> AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 >>> Safari/535.19 >>> navigator.UserAgent lower case: mozilla/5.0 (x11; linux x86_64) >>> applewebkit/535.19 (khtml, like gecko) chrome/18.0.1025.168 >>> safari/535.19 >>> navigator.UserAgent lower case: -1 >>> getLink(): undefined >>> getPlatform(): Linux >>> getLanguage(): Portuguese (Brazilian) >>> >>> >>> window.location.href http://www.openoffice.org/** >>> download/test/analyze.html<http://www.openoffice.org/download/test/analyze.html> >>> navigator.platform Linux i686 >>> navigator.platform.**toLowerCase() linux i686 >>> navigator.userAgent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 >>> (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19 >>> navigator.userAgent.**toLowerCase() mozilla/5.0 (x11; linux x86_64) >>> applewebkit/535.19 (khtml, like gecko) chrome/18.0.1025.168 >>> safari/535.19 >>> navigator.language pt-BR >>> navigator.userLanguage undefined >>> navigator.systemLanguage undefined >>> navigator.javaEnabled() Yes >>> >> >> Chrome is available for rpm- and deb-based Linux. Unfortunately, the >> "navigator.userAgent" doesn't show an indicator to split into rpm or deb, >> so it defaults to rpm. Maybe we are at the limit to recognize and provide >> the correct URL for download. >> >> If you - or someone else - knows about how to recognize Chrome browser on >> rpm and deb Linux, please tell us. >> >> >> ----- Iceweasel (FFox) 10.0.4esr-2 ------ >>> navigator.platform: Linux x86_64 >>> navigator.UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) >>> Gecko/20100101 Firefox/10.0.4 Iceweasel/10.0.4 >>> navigator.UserAgent lower case: mozilla/5.0 (x11; linux x86_64; >>> rv:10.0.4) gecko/20100101 firefox/10.0.4 iceweasel/10.0.4 >>> navigator.UserAgent lower case: -1 >>> getLink(): undefined >>> getPlatform(): Linux x86-64 >>> getLanguage(): Portuguese (Brazilian) >>> >>> >>> window.location.href http://www.openoffice.org/** >>> download/test/analyze.html<http://www.openoffice.org/download/test/analyze.html> >>> navigator.platform Linux x86_64 >>> navigator.platform.**toLowerCase() linux x86_64 >>> navigator.userAgent Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) >>> Gecko/20100101 Firefox/10.0.4 Iceweasel/10.0.4 >>> navigator.userAgent.**toLowerCase() mozilla/5.0 (x11; linux x86_64; >>> rv:10.0.4) gecko/20100101 firefox/10.0.4 iceweasel/10.0.4 >>> navigator.language pt-BR >>> navigator.userLanguage undefined >>> navigator.systemLanguage undefined >>> navigator.javaEnabled() Yes >>> >> >> The DL magic checks if "navigator.userAgent" contains the term "debian". >> If so, a URL with a deb package will be created. >> Here it seems we have to extend it with the term "iceweasel". > > > Yes, your analysis is correct. Since I don't use debian, or any of it's > derivatives, I didn't know what we should expect here. Is "iceweasel" > something ONLY used by debian distros? I'm confused... I'm pretty sure that it's technically possible to use it also on Fedora & Co. However, the Debian project has initiated this Firefox fork and therefore I think it's OK to assume that the very most Iceweasel browser are running on Debian, Ubuntu & Co. Marcus
RSS Feed