Bug 1558775 - Revert part of rev 423c3668781b (bug 1547581) to fix new language 'confirm and restart' button. a=backout DONTBUILD
authorJorg K <jorgk@jorgk.com>
Wed, 12 Jun 2019 13:16:49 +0200
changeset 35839 08f782cdbba08eac23bd41d5638e600b331db091
parent 35838 d350f0aa49d51d0b606a7325f69a46ca54f9dac6
child 35840 f6f0c189c55a7e2d1acf453c220da679b2e17dae
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersbackout
bugs1558775, 1547581
Bug 1558775 - Revert part of rev 423c3668781b (bug 1547581) to fix new language 'confirm and restart' button. a=backout DONTBUILD
mail/components/preferences/advanced.js
--- a/mail/components/preferences/advanced.js
+++ b/mail/components/preferences/advanced.js
@@ -738,17 +738,17 @@ var gAdvancedPane = {
 
       let description = document.createXULElement("description");
       description.classList.add("message-bar-description");
       description.setAttribute("flex", "1");
       description.textContent = messages[i];
       messageContainer.appendChild(description);
 
       let button = document.createXULElement("button");
-      button.addEventListener("command", () => gAdvancedPane.confirmLanguageChange());
+      button.addEventListener("command", gAdvancedPane.confirmLanguageChange);
       button.classList.add("message-bar-button");
       button.setAttribute("locales", locales.join(","));
       button.setAttribute("label", buttonLabels[i]);
       messageContainer.appendChild(button);
 
       contentContainer.appendChild(messageContainer);
     }