On 5/7/2013 9:55 AM, Byron Jones wrote:

i initially thought about using browser/config/version/version.txt based on the version in the user-agent, however this reflects the current default channel, and not necessarily the channel the user's application is using. for example if someone downloads aurora just before the trains leave, and doesn't upgrade before filing a bug, we'd incorrectly think they are using beta.

It is possible to deduce this information given just the version from navigator.userAgent and the value of navigator.buildid. Unfortunately as far as I know there is currently not an API to make this easy. Maybe somebody from releng can correct me if I'm wrong: currently I mostly go looking through the dated build directories: e.g. currently my buildid is "20130504030913" so I go to http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2013/05/ and grep for 2013-05-04-03-09-13 which shows me that this is a mozilla-entral build.

Unfortunately the beta/release builds are not in this directory, they are separate so you have to use a different heuristic ;-)

i'm interested in either the value of app.update.channel, or the value passed to configure via --enable-update-channel.

is this currently available to javascript? if so, how? if not, do you think a request to expose it would be successful?
I do not think that we would want to expose this information to the web.

--BDS

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to