{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/nightlytt/issues/199","labels_url":"https://api.github.com/repos/mozilla/nightlytt/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/nightlytt/issues/199/comments","events_url":"https://api.github.com/repos/mozilla/nightlytt/issues/199/events","html_url":"https://github.com/mozilla/nightlytt/issues/199","id":111305185,"number":199,"title":"${Changeset} unknown in openSUSE Firefox (but ${PlatformChangeset} is known if NTT supports it)","user":{"login":"tonymec","id":541759,"avatar_url":"https://avatars.githubusercontent.com/u/541759?v=3","gravatar_id":"","url":"https://api.github.com/users/tonymec","html_url":"https://github.com/tonymec","followers_url":"https://api.github.com/users/tonymec/followers","following_url":"https://api.github.com/users/tonymec/following{/other_user}","gists_url":"https://api.github.com/users/tonymec/gists{/gist_id}","starred_url":"https://api.github.com/users/tonymec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonymec/subscriptions","organizations_url":"https://api.github.com/users/tonymec/orgs","repos_url":"https://api.github.com/users/tonymec/repos","events_url":"https://api.github.com/users/tonymec/events{/privacy}","received_events_url":"https://api.github.com/users/tonymec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-14T01:46:11Z","updated_at":"2016-01-07T03:36:26Z","closed_at":null,"body":"UA:\"Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0\" (en-US) ID:2015091800 CSet:78c82e5cd777\r\n\r\nTested with both the \"stable\" version 3.7.1-signed from AMO, and the \"development\" version 3.7pre20131013. Both give \"Undefined\" for ${Changeset}. The \"development\" version gives a reasonable value for ${PlatformChangeset}, as shown above with a \"customized\" nightly.templates.buildid == 'UA:\"${UserAgent}\" (${Locale}) ID:${AppBuildID}${Flags} CSet:${PlatformChangeset}'\r\n\r\nN.B. This Firefox build comes from the latest openSUSE 13.2 x86_64 Firefox package. Please test also with some build from ftp.m.o. and/or releases.m.o. If ${Changeset} is defined on Mozilla Firefox 41.0 for Linux x86_64 then Wolfgang Rosenauer (WolfiR on moznet; mozilla@rosenauer.org), the liaison officer between Mozilla and SUSE, might be interested."},"comment":{"url":"https://api.github.com/repos/mozilla/nightlytt/issues/comments/169539762","html_url":"https://github.com/mozilla/nightlytt/issues/199#issuecomment-169539762","issue_url":"https://api.github.com/repos/mozilla/nightlytt/issues/199","id":169539762,"user":{"login":"tonymec","id":541759,"avatar_url":"https://avatars.githubusercontent.com/u/541759?v=3","gravatar_id":"","url":"https://api.github.com/users/tonymec","html_url":"https://github.com/tonymec","followers_url":"https://api.github.com/users/tonymec/followers","following_url":"https://api.github.com/users/tonymec/following{/other_user}","gists_url":"https://api.github.com/users/tonymec/gists{/gist_id}","starred_url":"https://api.github.com/users/tonymec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonymec/subscriptions","organizations_url":"https://api.github.com/users/tonymec/orgs","repos_url":"https://api.github.com/users/tonymec/repos","events_url":"https://api.github.com/users/tonymec/events{/privacy}","received_events_url":"https://api.github.com/users/tonymec/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T03:36:26Z","updated_at":"2016-01-07T03:36:26Z","body":"Let's try in more detail than in the above comment. My default Firefox, living at /usr/local/firefox/firefox with /usr/local/bin/firefox pointing to it, is now the latest trunk nightly from Mozilla. I still have the current openSUSE build (now at openSUSE release Leap 42.1) but after it in the $PATH: /usr/bin/firefox points to /usr/lib64/firefox/firefox.sh\r\n\r\nThis:\r\n\r\nUA:\"Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0\" (en-US) ID:20160106030225 CSet:9d6ffc7a08b6b47056eefe1e652710a3849adbf7\r\n\r\nis what I get in my default (Mozilla Nightly) Firefox with nightly.templates.buildid set to UA:\"${UserAgent}\" (${Locale}) ID:${AppBuildID}${Flags} CSet:${Changeset} which IIUC isn't the default anymore. The NTT version installed there calls itself \"Nightly Tester Tools 3.7.1-signed\" which IIUC means the stable version from AMO.\r\n\r\nReplacing ${Changeset} by ${PlatformChangeset} gives\r\n\r\nUA:\"Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0\" (en-US) ID:20160106030225 CSet:${PlatformChangeset}\r\n\r\nbecause this NTT version is not Platform-Changeset-aware.\r\n\r\nNow let's close this Firefox \"from Mozilla\" and start Firefox \"from openSUSE\" with the same profile. The titlebar says (thanks NTT) that this is Firefox 43.0.3.\r\n\r\nClicking the NTT button, then \"Copy to Cipboard\" gives\r\n\r\nUA:\"Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0\" (en-US) ID:2015122500 CSet:Undefined\r\n\r\nNow let's test in *even* more detail.\r\n\r\nLet us clone, package and install the \"branch-issue-129-platform-changeset\" branch from https://github.com/xabolcs/nightlytt (This may take some time…)<br>&nbsp;&nbsp;&nbsp;The resulting XPI calls itself \"nightlytt-3.8pre-201601070332.xpi\" and is to be found in the \"xpi\" subdirectory of my clone of xabolcs/nightlytt.<br>&nbsp;&nbsp;&nbsp;\"This site wants to install an unverified add-on into Firefox, proceed with caution\" → [Install]<br>&nbsp;&nbsp;&nbsp;\"Nightly Tester Tools will be updated after you restart Firefox\" → Restart Now<br>&nbsp;&nbsp;&nbsp;\"/!\\ Nightly Tester Tools could not be verified for use with Firefox. Proceed with caution.\" (\"More information\" leads to a SUMO page about add-on signing.) → OK, this XPI was indeed (intentionally) not sent to Mozilla for preliminary inspection and (if successful) signing.\r\n\r\nWith the same nightly.templates.buildid value as above I get the same results (with Undefined) in the openSUSE version.<br>&nbsp;&nbsp;&nbsp;Now let's add back the \"Platform\" between ${ and Changeset}.<br>&nbsp;&nbsp;&nbsp;This is what I now get in the openSUSE Firefox 43.0.3:\r\n\r\nUA:\"Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0\" (en-US) ID:2015122500 CSet:f227eec41a24\r\n\r\nand in the Mozilla Firefox 46.0a1:\r\n\r\nUA:\"Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0\" (en-US) ID:20160106030225 CSet:9d6ffc7a08b6b47056eefe1e652710a3849adbf7\r\n\r\n**Conclusion:**<br>&nbsp;&nbsp;&nbsp;In a PlatformChangeset-aware NTT, such as the \"development\" version at AMO or the somewhat more advanced \"branch-issue-129-platform-changeset\" branch of xabolcs/nightlytt, both ${Changeset} and ${PlatformChangeset} give the same 40-nybble result in Mozilla builds of Firefox.<br>&nbsp;&nbsp;&nbsp;In openSUSE builds, ${Changeset} results in the value \"Undefined\" while ${PlatformChangeset} gives an abbreviated (12-nybble) hex identifier.\r\n\r\nIn any version not-PlatformChangeset-aware, ${Changeset} gives the same values as above (including \"Undefined\" in openSUSE builds), but ${PlatformChangeset} returns the value '${PlatformChangeset}' (without the quotes), as expected.\r\n\r\n**In Firefox builds from my Linux distro, the Mercurial repository changeset can thus not be obtained from \"stable\" versions of NTT.**"}}