summaryrefslogtreecommitdiffstats
path: root/extensions/GuidedBugEntry/web
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/GuidedBugEntry/web')
-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;
}