Index: chrome/content/ui/sendReport.js |
=================================================================== |
--- a/chrome/content/ui/sendReport.js |
+++ b/chrome/content/ui/sendReport.js |
@@ -65,37 +65,37 @@ function serializeReportData() |
let result = new XMLSerializer().serializeToString(reportData); |
// Insert line breaks before each new tag |
result = result.replace(/(<[^\/]([^"<>]*|"[^"]*")*>)/g, "\n$1"); |
result = result.replace(/^\n+/, ""); |
return result; |
} |
-let (element = reportElement("adblock-plus")) |
{ |
+ let element = reportElement("adblock-plus"); |
let {addonVersion} = require("info"); |
element.setAttribute("version", addonVersion); |
element.setAttribute("locale", Utils.appLocale); |
-}; |
-let (element = reportElement("application")) |
+} |
{ |
+ let element = reportElement("application"); |
element.setAttribute("name", Services.appinfo.name); |
element.setAttribute("vendor", Services.appinfo.vendor); |
element.setAttribute("version", Services.appinfo.version); |
element.setAttribute("userAgent", window.navigator.userAgent); |
-}; |
-let (element = reportElement("platform")) |
+} |
{ |
+ let element = reportElement("platform"); |
element.setAttribute("name", "Gecko"); |
element.setAttribute("version", Services.appinfo.platformVersion); |
element.setAttribute("build", Services.appinfo.platformBuildID); |
}; |
-let (element = reportElement("options")) |
{ |
+ let element = reportElement("options"); |
appendElement(element, "option", {id: "enabled"}, Prefs.enabled); |
appendElement(element, "option", {id: "objecttabs"}, Prefs.frameobjects); |
appendElement(element, "option", {id: "collapse"}, !Prefs.fastcollapse); |
appendElement(element, "option", {id: "privateBrowsing"}, PrivateBrowsing.enabledForWindow(contentWindow) || PrivateBrowsing.enabled); |
appendElement(element, "option", {id: "subscriptionsAutoUpdate"}, Prefs.subscriptions_autoupdate); |
appendElement(element, "option", {id: "javascript"}, Services.prefs.getBoolPref("javascript.enabled")); |
appendElement(element, "option", {id: "cookieBehavior"}, Services.prefs.getIntPref("network.cookie.cookieBehavior")); |
}; |