Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/ui/sendReport.js

Issue 29329820: Issue 3276 - Don`t use let blocks in Issue Reporter (Closed)
Patch Set: Created Nov. 6, 2015, 12:49 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"));
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld