summaryrefslogtreecommitdiffstats
path: root/extensions/GuidedBugEntry/web/js/guided.js
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-05-09 10:11:22 +0200
committerByron Jones <bjones@mozilla.com>2013-05-09 10:11:22 +0200
commit7f2ece8ca6504db73da9eec51588063e5ee2db26 (patch)
treecae001f2d600d362a685fb09b0b4a46a81fb86f3 /extensions/GuidedBugEntry/web/js/guided.js
parent18366bfc65096883510d8b14449a763c804a2250 (diff)
downloadbugzilla-7f2ece8ca6504db73da9eec51588063e5ee2db26.tar.gz
bugzilla-7f2ece8ca6504db73da9eec51588063e5ee2db26.tar.xz
Bug 868044: Bugzilla should be automagically aware of which product channel a bug-filer is using.
Diffstat (limited to 'extensions/GuidedBugEntry/web/js/guided.js')
-rw-r--r--extensions/GuidedBugEntry/web/js/guided.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/extensions/GuidedBugEntry/web/js/guided.js b/extensions/GuidedBugEntry/web/js/guided.js
index 98d637d60..5cb2839d2 100644
--- a/extensions/GuidedBugEntry/web/js/guided.js
+++ b/extensions/GuidedBugEntry/web/js/guided.js
@@ -580,7 +580,13 @@ var bugForm = {
_mandatoryFields: [],
onInit: function() {
- Dom.get('user_agent').value = navigator.userAgent;
+ var user_agent = navigator.userAgent;
+ if (YAHOO.env.ua.gecko > 0) {
+ user_agent += navigator.userAgent.search('Gecko/20100101') != -1
+ ? ' (Beta/Release)'
+ : ' (Nightly/Aurora)';
+ }
+ Dom.get('user_agent').value = user_agent;
if (navigator.buildID && navigator.buildID != navigator.userAgent) {
Dom.get('build_id').value = navigator.buildID;
}