Bug 1562314 - Follow-up: Check for type number explicitly. r+a=me THUNDERBIRD_68_0b3_BUILD3 THUNDERBIRD_68_0b3_RELEASE
authorJorg K <jorgk@jorgk.com>
Sun, 30 Jun 2019 07:38:00 +0200
changeset 34745 96d38d6dddca91c3d78b412c7361ff2bea1be17c
parent 34744 9ed5bdca53042b8aa3cb0b22a1ce39b5f5eeb8d3
child 34746 e530701c09be5c42b42b1381d26756755cedd5c2
push id2445
push usermozilla@jorgk.com
push dateSun, 30 Jun 2019 05:43:17 +0000
treeherdercomm-beta@96d38d6dddca [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1562314
Bug 1562314 - Follow-up: Check for type number explicitly. r+a=me
mail/components/im/content/imAccountWizard.js
--- a/mail/components/im/content/imAccountWizard.js
+++ b/mail/components/im/content/imAccountWizard.js
@@ -358,17 +358,18 @@ var accountWizard = {
 
     return true;
   },
 
   getValue(aId) {
     var elt = document.getElementById(aId);
     if ("selectedItem" in elt)
       return elt.selectedItem.value;
-    if ((elt.getAttribute("type") == "checkbox") && ("checked" in elt))
+    // Strangely for <input type="number"> "checked" is also set.
+    if ((elt.getAttribute("type") != "number") && ("checked" in elt))
       return elt.checked;
     if ("value" in elt)
       return elt.value;
     // If the groupbox has never been opened, the binding isn't attached
     // so the attributes don't exist. The calling code in showSummary
     // has a special handling of the undefined value for this case.
     return undefined;
   },