Bug 1647104 - Fix real bugs found with codespell. r=mkmelin a=wsmwk
authorJorg K <jorgk@jorgk.com>
Sun, 21 Jun 2020 02:16:41 +0200
changeset 39475 85f78035c5db080f36dacf07e950c7482470f32e
parent 39474 d033c8f1f3b8fe77ccb74a9958ca761f52e5f1ed
child 39476 a78e35148031051a5b2353ee389eae2508c79c84
push id402
push userclokep@gmail.com
push dateMon, 29 Jun 2020 20:48:04 +0000
reviewersmkmelin, wsmwk
bugs1647104
Bug 1647104 - Fix real bugs found with codespell. r=mkmelin a=wsmwk
chat/content/otr-auth.xhtml
mail/base/content/tabmail.js
mail/extensions/openpgp/content/modules/httpProxy.jsm
mailnews/build/nsMailModule.cpp
--- a/chat/content/otr-auth.xhtml
+++ b/chat/content/otr-auth.xhtml
@@ -2,17 +2,17 @@
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 
 <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css" ?>
 <?xml-stylesheet href="chrome://messenger/skin/messenger.css"?>
 <?xml-stylesheet type="text/css" href="chrome://messenger/skin/input-fields.css"?>
 
-<!DOCTYPE winodw>
+<!DOCTYPE window>
 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
         xmlns:html="http://www.w3.org/1999/xhtml"
         data-l10n-id="otr-auth"
         data-l10n-attrs="buttonlabelaccept"
         windowtype="OTR:Auth"
         onload="otrAuth.onload()">
 
   <dialog id="otrAuthDialog"
--- a/mail/base/content/tabmail.js
+++ b/mail/base/content/tabmail.js
@@ -116,17 +116,17 @@
           this._updateTabsVisibilityStatus();
           break;
       }
     }
 
     _updateTabsVisibilityStatus() {
       let tabStrip = this.tabmail.tabContainer.arrowScrollbox;
       // We don't want menu item decoration unless there is overflow.
-      if (tabStrip.getAttribute("overlfow") != "true") {
+      if (tabStrip.getAttribute("overflow") != "true") {
         return;
       }
 
       let tabStripBox = tabStrip.getBoundingClientRect();
 
       for (let i = 0; i < this.children.length; i++) {
         let currentTabBox = this.children[i].tab.getBoundingClientRect();
 
--- a/mail/extensions/openpgp/content/modules/httpProxy.jsm
+++ b/mail/extensions/openpgp/content/modules/httpProxy.jsm
@@ -22,17 +22,17 @@ function getPasswdForHost(hostname, user
   if (logins.length > 0) {
     userObj.value = logins[0].username;
     passwdObj.value = logins[0].password;
     return true;
   }
 
   // look for any other password for same host
   logins = loginmgr.getAllLogins({});
-  for (var i = 0; i < logins.lenth; i++) {
+  for (var i = 0; i < logins.length; i++) {
     if (hostname == logins[i].hostname.replace(/^.*:\/\//, "")) {
       userObj.value = logins[i].username;
       passwdObj.value = logins[i].password;
       return true;
     }
   }
   return false;
 }
--- a/mailnews/build/nsMailModule.cpp
+++ b/mailnews/build/nsMailModule.cpp
@@ -729,17 +729,17 @@ extern "C" MimeObjectClass *MIME_PgpMime
 static nsresult nsPgpMimeMimeContentTypeHandlerConstructor(nsISupports *aOuter,
                                                            REFNSIID aIID,
                                                            void **aResult) {
   NS_ENSURE_ARG_POINTER(aResult);
   NS_ENSURE_FALSE(aOuter, NS_ERROR_NO_AGGREGATION);
   *aResult = nullptr;
 
   RefPtr<nsMimeContentTypeHandler> inst(new nsMimeContentTypeHandler(
-      "mulitpart/encrypted", &MIME_PgpMimeCreateContentTypeHandlerClass));
+      "multipart/encrypted", &MIME_PgpMimeCreateContentTypeHandlerClass));
 
   NS_ENSURE_TRUE(inst, NS_ERROR_OUT_OF_MEMORY);
 
   return inst->QueryInterface(aIID, aResult);
 }
 
 ////////////////////////////////////////////////////////////////////////////////
 // i18n factories