From afaf8618053c95496767e6b979d09f34e188043b Mon Sep 17 00:00:00 2001 From: vivek Date: Fri, 19 Sep 2014 16:40:22 -0700 Subject: [PATCH] Bug 1066062 - Add additional fields to about:feedback submission. r=margaret --- mobile/android/chrome/content/aboutFeedback.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mobile/android/chrome/content/aboutFeedback.js b/mobile/android/chrome/content/aboutFeedback.js index 4ce4a00555f..d42708164e4 100644 --- a/mobile/android/chrome/content/aboutFeedback.js +++ b/mobile/android/chrome/content/aboutFeedback.js @@ -13,6 +13,7 @@ let Cu = Components.utils; Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://gre/modules/Messaging.jsm"); +Cu.import("resource://gre/modules/UpdateChannel.jsm"); document.addEventListener("DOMContentLoaded", init, false); function dump(a) { @@ -116,10 +117,13 @@ function sendFeedback(aEvent) { data["url"] = urlElement.value; } - let sysInfo = Cc["@mozilla.org/system-info;1"].getService(Ci.nsIPropertyBag2); - data["device"] = sysInfo.get("device"); - data["manufacturer"] = sysInfo.get("manufacturer"); + data["device"] = Services.sysinfo.get("device"); + data["manufacturer"] = Services.sysinfo.get("manufacturer"); data["source"] = "about:feedback"; + data["platform"] = Services.appinfo.OS; + data["version"] = Services.appinfo.version; + data["locale"] = Services.locale.getSystemLocale().getCategory("NSILOCALE_CTYPE"); + data["channel"] = UpdateChannel.get(); let req = new XMLHttpRequest(); req.addEventListener("error", function() {