Bug 1556923 - Fix warning during email setup wizard. r=mkmelin
authorGeoff Lankow <geoff@darktrojan.net>
Wed, 05 Jun 2019 15:33:30 +1200
changeset 35792 20fc951885d9772e559459f83261e25f48bd77a0
parent 35791 72ff6b1ef248bc2cd44edcc3afbfc060e2cb1778
child 35793 0f025fb08630db2c60540b8a82fb0fbc9cc17964
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersmkmelin
bugs1556923
Bug 1556923 - Fix warning during email setup wizard. r=mkmelin
mail/components/accountcreation/content/emailWizard.js
--- a/mail/components/accountcreation/content/emailWizard.js
+++ b/mail/components/accountcreation/content/emailWizard.js
@@ -1108,20 +1108,21 @@ EmailConfigWizard.prototype = {
       config.outgoing.addThisServer = false;
       config.outgoing.useGlobalPreferredServer = false;
     } else {
       config.outgoing.existingServerKey = null;
       config.outgoing.addThisServer = true;
       config.outgoing.useGlobalPreferredServer = false;
 
       try {
-        config.outgoing.hostname = sanitize.hostname(
-              outHostnameCombo.inputField.value);
-        outHostnameCombo.inputField.value = config.outgoing.hostname;
-      } catch (e) { gEmailWizardLogger.warn(e); }
+        config.outgoing.hostname = sanitize.hostname(outHostnameCombo.value);
+        outHostnameCombo.value = config.outgoing.hostname;
+      } catch (e) {
+        gEmailWizardLogger.warn(e);
+      }
       try {
         config.outgoing.port = sanitize.integerRange(e("outgoing_port").value,
               kMinPort, kMaxPort);
       } catch (e) {
         config.outgoing.port = undefined; // incl. default "Auto"
       }
       config.outgoing.socketType = sanitize.integer(e("outgoing_ssl").value);
       config.outgoing.auth = sanitize.integer(e("outgoing_authMethod").value);