Bug 577266 - Correct misspellings in source code
authorFelix Fung <ffung@mozilla.com>
Tue, 06 Sep 2011 17:20:35 -0700
changeset 78018 750c300b9928476d11fbe37c9e253ae4224a209d
parent 78017 84694ee135e9911afd1be4de0a6621ff67139c27
child 78019 e76839f98b187d0cd364e593cc18864ae0228e7a
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs577266
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 577266 - Correct misspellings in source code
browser/base/content/nsContextMenu.js
browser/base/content/test/browser_sanitize-download-history.js
content/html/content/src/nsHTMLFrameSetElement.cpp
editor/libeditor/text/nsInternetCiter.cpp
intl/lwbrk/src/nsJISx4501LineBreaker.cpp
intl/uconv/src/nsUnicodeToUTF8.cpp
js/src/jscntxt.cpp
layout/base/nsDisplayList.cpp
layout/doc/obsolete/nav4-html.html
layout/generic/nsImageMap.cpp
layout/style/nsRuleProcessorData.h
layout/tables/nsTableFrame.h
mobile/chrome/content/downloads.js
mobile/components/BrowserCLH.js
mobile/locales/en-US/chrome/browser.properties
netwerk/base/src/nsProtocolProxyService.cpp
parser/htmlparser/tests/html/span001.html
toolkit/components/passwordmgr/storage-Legacy.js
toolkit/components/places/nsPlacesImportExportService.cpp
toolkit/crashreporter/google-breakpad/src/common/mac/macho_id.cc
toolkit/mozapps/extensions/test/browser/browser_globalwarnings.js
xpcom/io/nsEscape.h
--- a/browser/base/content/nsContextMenu.js
+++ b/browser/base/content/nsContextMenu.js
@@ -1031,17 +1031,17 @@ nsContextMenu.prototype = {
     this.saveHelper(this.linkURL, this.linkText(), null, true, doc);
   },
 
   sendLink: function() {
     // we don't know the title of the link so pass in an empty string
     MailIntegration.sendMessage( this.linkURL, "" );
   },
 
-  // Backwards-compatability wrapper
+  // Backwards-compatibility wrapper
   saveImage : function() {
     if (this.onCanvas || this.onImage)
         this.saveMedia();
   },
 
   // Save URL of the clicked upon image, video, or audio.
   saveMedia: function() {
     var doc =  this.target.ownerDocument;
@@ -1057,17 +1057,17 @@ nsContextMenu.prototype = {
     }
     else if (this.onVideo || this.onAudio) {
       urlSecurityCheck(this.mediaURL, doc.nodePrincipal);
       var dialogTitle = this.onVideo ? "SaveVideoTitle" : "SaveAudioTitle";
       this.saveHelper(this.mediaURL, null, dialogTitle, false, doc);
     }
   },
 
-  // Backwards-compatability wrapper
+  // Backwards-compatibility wrapper
   sendImage : function() {
     if (this.onCanvas || this.onImage)
         this.sendMedia();
   },
 
   sendMedia: function() {
     MailIntegration.sendMessage(this.mediaURL, "");
   },
--- a/browser/base/content/test/browser_sanitize-download-history.js
+++ b/browser/base/content/test/browser_sanitize-download-history.js
@@ -68,17 +68,17 @@ function test()
   {
     let doc = aWin.document;
     let downloads = doc.getElementById("downloads-checkbox");
     let history = doc.getElementById("history-checkbox");
 
     // Add download to DB
     let file = Cc["@mozilla.org/file/directory_service;1"].
                getService(Ci.nsIProperties).get("TmpD", Ci.nsIFile);
-    file.append("satitize-dm-test.file");
+    file.append("sanitize-dm-test.file");
     file.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0666);
     let testPath = Services.io.newFileURI(file).spec;
     let data = {
       name: "381603.patch",
       source: "https://bugzilla.mozilla.org/attachment.cgi?id=266520",
       target: testPath,
       startTime: 1180493839859230,
       endTime: 1180493839859239,
--- a/content/html/content/src/nsHTMLFrameSetElement.cpp
+++ b/content/html/content/src/nsHTMLFrameSetElement.cpp
@@ -317,17 +317,17 @@ nsHTMLFrameSetElement::ParseRowCol(const
       // Treat 0* as 1* in quirks mode (bug 40383)
       if (isInQuirks) {
         if ((eFramesetUnit_Relative == specs[i].mUnit) &&
           (0 == specs[i].mValue)) {
           specs[i].mValue = 1;
         }
       }
         
-      // Catch zero and negative frame sizes for Nav compatability
+      // Catch zero and negative frame sizes for Nav compatibility
       // Nav resized absolute and relative frames to "1" and
       // percent frames to an even percentage of the width
       //
       //if (isInQuirks && (specs[i].mValue <= 0)) {
       //  if (eFramesetUnit_Percent == specs[i].mUnit) {
       //    specs[i].mValue = 100 / count;
       //  } else {
       //    specs[i].mValue = 1;
--- a/editor/libeditor/text/nsInternetCiter.cpp
+++ b/editor/libeditor/text/nsInternetCiter.cpp
@@ -78,17 +78,17 @@ nsInternetCiter::GetCiteString(const nsA
 
   // Loop over the string:
   while (beginIter != endIter)
   {
     if (uch == nl)
     {
       aOutString.Append(gt);
       // No space between >: this is ">>> " style quoting, for
-      // compatability with RFC 2646 and format=flowed.
+      // compatibility with RFC 2646 and format=flowed.
       if (*beginIter != gt)
         aOutString.Append(space);
     }
 
     uch = *beginIter;
     ++beginIter;
 
     aOutString += uch;
--- a/intl/lwbrk/src/nsJISx4501LineBreaker.cpp
+++ b/intl/lwbrk/src/nsJISx4501LineBreaker.cpp
@@ -455,17 +455,17 @@ GetClass(PRUnichar u)
      c = GETCLASSFROMTABLE(gLBClass20, l);
    } else if (0x2100 == h) {
      c = GETCLASSFROMTABLE(gLBClass21, l);
    } else if (0x3000 == h) {
      c = GETCLASSFROMTABLE(gLBClass30, l);
    } else if (((0x3200 <= u) && (u <= 0xA4CF)) || // CJK and Yi
               ((0xAC00 <= h) && (h <= 0xD7FF)) || // Hangul
               ((0xf900 <= h) && (h <= 0xfaff))) {
-     c = CLASS_BREAKABLE; // CJK character, Han, and Han Compatability
+     c = CLASS_BREAKABLE; // CJK character, Han, and Han Compatibility
    } else if (0xff00 == h) {
      if (l < 0x0060) { // Fullwidth ASCII variant
        c = GETCLASSFROMTABLE(gLBClass00, (l+0x20));
      } else if (l < 0x00a0) {
        switch (l) {
          case 0x61: c = GetClass(0x3002); break;
          case 0x62: c = GetClass(0x300c); break;
          case 0x63: c = GetClass(0x300d); break;
--- a/intl/uconv/src/nsUnicodeToUTF8.cpp
+++ b/intl/uconv/src/nsUnicodeToUTF8.cpp
@@ -48,17 +48,17 @@ NS_IMPL_ISUPPORTS1(nsUnicodeToUTF8, nsIU
 
 NS_IMETHODIMP nsUnicodeToUTF8::GetMaxLength(const PRUnichar * aSrc, 
                                               PRInt32 aSrcLength,
                                               PRInt32 * aDestLength)
 {
   // aSrc is interpreted as UTF16, 3 is normally enough.
   // But when previous buffer only contains part of the surrogate pair, we 
   // need to complete it here. If the first word in following buffer is not
-  // in valid surrogate rang, we need to convert the remaining of last buffer 
+  // in valid surrogate range, we need to convert the remaining of last buffer
   // to 3 bytes.
   *aDestLength = 3*aSrcLength + 3;
   return NS_OK;
 }
 
 NS_IMETHODIMP nsUnicodeToUTF8::Convert(const PRUnichar * aSrc, 
                                 PRInt32 * aSrcLength, 
                                 char * aDest, 
--- a/js/src/jscntxt.cpp
+++ b/js/src/jscntxt.cpp
@@ -641,17 +641,17 @@ ReportError(JSContext *cx, const char *m
         reportp->errorNumber == JSMSG_UNCAUGHT_EXCEPTION)
         reportp->flags |= JSREPORT_EXCEPTION;
 
     /*
      * Call the error reporter only if an exception wasn't raised.
      *
      * If an exception was raised, then we call the debugErrorHook
      * (if present) to give it a chance to see the error before it
-     * propagates out of scope.  This is needed for compatability
+     * propagates out of scope.  This is needed for compatibility
      * with the old scheme.
      */
     if (!JS_IsRunning(cx) ||
         !js_ErrorToException(cx, message, reportp, callback, userRef)) {
         js_ReportErrorAgain(cx, message, reportp);
     } else if (cx->debugHooks->debugErrorHook && cx->errorReporter) {
         JSDebugErrorHook hook = cx->debugHooks->debugErrorHook;
         /* test local in case debugErrorHook changed on another thread */
--- a/layout/base/nsDisplayList.cpp
+++ b/layout/base/nsDisplayList.cpp
@@ -2577,17 +2577,17 @@ PRBool nsDisplayTransform::ComputeVisibi
                        mFrame, 
                        aBuilder->ToReferenceFrame(mFrame), 
                        &untransformedVisibleRect)) 
   {
     untransformedVisibleRect = mFrame->GetVisualOverflowRectRelativeToSelf() +  
                                aBuilder->ToReferenceFrame(mFrame);
   }
   nsRegion untransformedVisible = untransformedVisibleRect;
-  // Call RecomputeVisiblity instead of ComputeVisibilty since
+  // Call RecomputeVisiblity instead of ComputeVisibility since
   // nsDisplayItem::ComputeVisibility should only be called from
   // nsDisplayList::ComputeVisibility (which sets mVisibleRect on the item)
   mStoredList.RecomputeVisibility(aBuilder, &untransformedVisible);
   return PR_TRUE;
 }
 
 #ifdef DEBUG_HIT
 #include <time.h>
--- a/layout/doc/obsolete/nav4-html.html
+++ b/layout/doc/obsolete/nav4-html.html
@@ -71,17 +71,17 @@ the tag. The HTML parser serves as the t
 tags documented below. Tag attribute handling is done during translation
 of tags into content. This mapping translates the tag attributes into content
 data and into style data. The translation to style data is documented below
 by indicating the mapping from tag attributes to their CSS1 (plus extensions)
 equivalents.
 <H3>
 Special Hacks</H3>
 The following list describes hacks added to the magellan parsing engine
-to deal with navigator compatability. These are just the parser hacks,
+to deal with navigator compatibility. These are just the parser hacks,
 not the layout or presentation hacks. Most hacks are intriduced for HTML
 syntax error recovering. HTML doesn't specify much how to handle those
 error conditions. Netscape has made big effort to render pages with non-prefect
 HTML. For many reasons, new browsers need to keep compatible in thsi area.
 <UL>
 <LI>
 Entities can be used as escape in quoted string. For value string in name-value
 pair,&nbsp; see <A HREF="../testhtml/quote001.html">compatibility test
--- a/layout/generic/nsImageMap.cpp
+++ b/layout/generic/nsImageMap.cpp
@@ -398,17 +398,17 @@ void RectArea::ParseCoords(const nsAStri
 
   if (!saneRect) {
     logMessage(mArea, aSpec, flag, "ImageMapRectBoundsError");
   }
 }
 
 PRBool RectArea::IsInside(nscoord x, nscoord y) const
 {
-  if (mNumCoords >= 4) {       // Note: > is for nav compatability
+  if (mNumCoords >= 4) {       // Note: > is for nav compatibility
     nscoord x1 = mCoords[0];
     nscoord y1 = mCoords[1];
     nscoord x2 = mCoords[2];
     nscoord y2 = mCoords[3];
     NS_ASSERTION(x1 <= x2 && y1 <= y2,
                  "Someone screwed up RectArea::ParseCoords");
     if ((x >= x1) && (x <= x2) && (y >= y1) && (y <= y2)) {
       return PR_TRUE;
@@ -633,17 +633,17 @@ void CircleArea::ParseCoords(const nsASt
                aSpec,
                flag,
                "ImageMapCircleWrongNumberOfCoords");
   }
 }
 
 PRBool CircleArea::IsInside(nscoord x, nscoord y) const
 {
-  // Note: > is for nav compatability
+  // Note: > is for nav compatibility
   if (mNumCoords >= 3) {
     nscoord x1 = mCoords[0];
     nscoord y1 = mCoords[1];
     nscoord radius = mCoords[2];
     if (radius < 0) {
       return PR_FALSE;
     }
     nscoord dx = x1 - x;
--- a/layout/style/nsRuleProcessorData.h
+++ b/layout/style/nsRuleProcessorData.h
@@ -39,17 +39,17 @@
 /*
  * data structures passed to nsIStyleRuleProcessor methods (to pull loop
  * invariant computations out of the loop)
  */
 
 #ifndef nsRuleProcessorData_h_
 #define nsRuleProcessorData_h_
 
-#include "nsPresContext.h" // for nsCompatability
+#include "nsPresContext.h" // for nsCompatibility
 #include "nsString.h"
 #include "nsChangeHint.h"
 #include "nsIContent.h"
 #include "nsCSSPseudoElements.h"
 #include "nsRuleWalker.h"
 #include "nsNthIndexCache.h"
 
 class nsIStyleSheet;
--- a/layout/tables/nsTableFrame.h
+++ b/layout/tables/nsTableFrame.h
@@ -548,18 +548,18 @@ protected:
 
   /** return the width of the table taking into account visibility collapse
     * on columns and colgroups
     * @param aBorderPadding  the border and padding of the table
     */
   nscoord GetCollapsedWidth(nsMargin aBorderPadding);
 
   
-  /** Adjust the table for visibilty.collapse set on rowgroups, rows, colgroups
-    * and cols
+  /** Adjust the table for visibility.collapse set on rowgroups, rows,
+    * colgroups and cols
     * @param aDesiredSize    the metrics of the table
     * @param aBorderPadding  the border and padding of the table
     */
   void AdjustForCollapsingRowsCols(nsHTMLReflowMetrics& aDesiredSize,
                                    nsMargin             aBorderPadding);
 
   nsITableLayoutStrategy* LayoutStrategy() const {
     return static_cast<nsTableFrame*>(GetFirstInFlow())->
--- a/mobile/chrome/content/downloads.js
+++ b/mobile/chrome/content/downloads.js
@@ -345,17 +345,17 @@ var DownloadsView = {
     // Figure out if the end time is from today, yesterday, this week, etc.
     let dateTime;
     if (end >= today) {
       // Download finished after today started, show the time
       dateTime = dts.FormatTime("", dts.timeFormatNoSeconds, end.getHours(), end.getMinutes(), 0);
     }
     else if (today - end < (24 * 60 * 60 * 1000)) {
       // Download finished after yesterday started, show yesterday
-      dateTime = strings.GetStringFromName("donwloadsYesterday");
+      dateTime = strings.GetStringFromName("downloadsYesterday");
     }
     else if (today - end < (6 * 24 * 60 * 60 * 1000)) {
       // Download finished after last week started, show day of week
       dateTime = end.toLocaleFormat("%A");
     }
     else {
       // Download must have been from some time ago.. show month/day
       let month = end.toLocaleFormat("%B");
--- a/mobile/components/BrowserCLH.js
+++ b/mobile/components/BrowserCLH.js
@@ -121,17 +121,17 @@ function showPanelWhenReady(aWindow, aPa
 function haveSystemLocale() {
   let localeService = Cc["@mozilla.org/intl/nslocaleservice;1"].getService(Ci.nsILocaleService);
   let systemLocale = localeService.getSystemLocale().getCategory("NSILOCALE_CTYPE");
   return isLocaleAvailable(systemLocale);
 }
 
 function checkCurrentLocale() {
   if (Services.prefs.prefHasUserValue("general.useragent.locale")) {
-    // if the user has a compatable locale from a different buildid, we need to update
+    // if the user has a compatible locale from a different buildid, we need to update
     var buildID = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULAppInfo).appBuildID;
     let localeBuildID = Services.prefs.getCharPref("extensions.compatability.locales.buildid");
     if (buildID != localeBuildID)
       return false;
 
     let currentLocale = Services.prefs.getCharPref("general.useragent.locale");
     return isLocaleAvailable(currentLocale);
   }
--- a/mobile/locales/en-US/chrome/browser.properties
+++ b/mobile/locales/en-US/chrome/browser.properties
@@ -73,17 +73,17 @@ addonErrorBlocklisted=#1 could not be in
 # LOCALIZATION NOTE (Status): — is the "em dash" (long dash)
 # #1 download size for FINISHED or download state; #2 host (e.g., eTLD + 1, IP)
 downloadsStatus=#1 — #2
 # LOCALIZATION NOTE (Time): #1 left time for UNFINISHED, total time for FINISHED
 downloadsTime= — #1
 downloadsUnknownSize=Unknown size
 # LOCALIZATION NOTE (KnownSize): #1 size number; #2 size unit
 downloadsKnownSize=#1 #2
-donwloadsYesterday=Yesterday
+downloadsYesterday=Yesterday
 # LOCALIZATION NOTE (MonthDate): #1 month name; #2 date number; e.g., January 22
 downloadsMonthDate=#1 #2
 downloadsEmpty=No downloads
 downloadsDeleteTitle=Delete File
 
 # Alerts
 alertAddons=Add-ons
 alertAddonsDownloading=Downloading add-on
--- a/netwerk/base/src/nsProtocolProxyService.cpp
+++ b/netwerk/base/src/nsProtocolProxyService.cpp
@@ -389,17 +389,17 @@ nsProtocolProxyService::PrefsChanged(nsI
     nsresult rv = NS_OK;
     PRBool reloadPAC = PR_FALSE;
     nsXPIDLCString tempString;
 
     if (!pref || !strcmp(pref, PROXY_PREF("type"))) {
         PRInt32 type = -1;
         rv = prefBranch->GetIntPref(PROXY_PREF("type"), &type);
         if (NS_SUCCEEDED(rv)) {
-            // bug 115720 - for ns4.x backwards compatability
+            // bug 115720 - for ns4.x backwards compatibility
             if (type == PROXYCONFIG_DIRECT4X) {
                 type = PROXYCONFIG_DIRECT;
                 // Reset the type so that the dialog looks correct, and we
                 // don't have to handle this case everywhere else
                 // I'm paranoid about a loop of some sort - only do this
                 // if we're enumerating all prefs, and ignore any error
                 if (!pref)
                     prefBranch->SetIntPref(PROXY_PREF("type"), type);
--- a/parser/htmlparser/tests/html/span001.html
+++ b/parser/htmlparser/tests/html/span001.html
@@ -6,17 +6,17 @@
 
 </HEAD>
 
 <BODY>
 <p>
 In HTML standard, SPANs are not allowed to cross Paragraphs.
 <br> In Vav4.0, SPAN tags go thour paragraphs and other block-level elements,
 except tbles.
-<br>It be compatable with Nav4.0 and HTML standard, HTMLParser
+<br>It be compatible with Nav4.0 and HTML standard, HTMLParser
 close all SPANs before open a new paragraph, and reopen SPANs
 inside the new paragraph
 <br>
 
 <FONT color=red>
   Text ater the color=red SPAN is opend.
 </P>
   Text in a new paragraph.
--- a/toolkit/components/passwordmgr/storage-Legacy.js
+++ b/toolkit/components/passwordmgr/storage-Legacy.js
@@ -1057,17 +1057,17 @@ LoginManagerStorage_legacy.prototype = {
                         processEntry = true;
 
                     parseState++;
                     break;
 
                 // Line is unused filler for future use
                 case STATE.FILLER:
                     // Save the line's value (so we can dump it back out when
-                    // we save the file next time) for forwards compatability.
+                    // we save the file next time) for forwards compatibility.
                     entry.wrappedJSObject.filler = line.value;
                     processEntry = true;
 
                     parseState++;
                     break;
             }
 
             // If we've read all the lines for the current entry,
--- a/toolkit/components/places/nsPlacesImportExportService.cpp
+++ b/toolkit/components/places/nsPlacesImportExportService.cpp
@@ -44,17 +44,17 @@
  * "bookmarks.html"
  *
  * Format:
  *
  * Primary heading := h1
  *   Old version used this to set attributes on the bookmarks RDF root, such
  *   as the last modified date. We only use H1 to check for the attribute
  *   PLACES_ROOT, which tells us that this hierarchy root is the places root.
- *   For backwards compatability, if we don't find this, we assume that the
+ *   For backwards compatibility, if we don't find this, we assume that the
  *   hierarchy is rooted at the bookmarks menu.
  * Heading := any heading other than h1
  *   Old version used this to set attributes on the current container. We only
  *   care about the content of the heading container, which contains the title
  *   of the bookmark container.
  * Bookmark := a
  *   HREF is the destination of the bookmark
  *   FEEDURL is the URI of the RSS feed if this is a livemark.
--- a/toolkit/crashreporter/google-breakpad/src/common/mac/macho_id.cc
+++ b/toolkit/crashreporter/google-breakpad/src/common/mac/macho_id.cc
@@ -167,17 +167,17 @@ bool MachoID::IDCommand(int cpu_type, un
 
   dylib_cmd.cmd = 0;
   if (!walker.WalkHeader(cpu_type))
     return false;
 
   // If we found the command, we'll have initialized the dylib_command
   // structure
   if (dylib_cmd.cmd == LC_ID_DYLIB) {
-    // Take the hashed filename, version, and compatability version bytes
+    // Take the hashed filename, version, and compatibility version bytes
     // to form the first 12 bytes, pad the rest with zeros
 
     // create a crude hash of the filename to generate the first 4 bytes
     identifier[0] = 0;
     identifier[1] = 0;
     identifier[2] = 0;
     identifier[3] = 0;
 
--- a/toolkit/mozapps/extensions/test/browser/browser_globalwarnings.js
+++ b/toolkit/mozapps/extensions/test/browser/browser_globalwarnings.js
@@ -37,17 +37,17 @@ add_test(function() {
   open_manager("addons://list/extension", function(aWindow) {
     var hbox = aWindow.document.querySelector("#list-view hbox.global-warning-checkcompatibility");
     is_element_visible(hbox, "Check Compatibility warning hbox should be visible");
     var button = aWindow.document.querySelector("#list-view button.global-warning-checkcompatibility");
     is_element_visible(button, "Check Compatibility warning button should be visible");
 
     info("Clicking 'Enable' button");
     EventUtils.synthesizeMouse(button, 2, 2, { }, aWindow);
-    is(Services.prefs.prefHasUserValue(pref), false, "Check Compatability pref should be cleared");
+    is(Services.prefs.prefHasUserValue(pref), false, "Check Compatibility pref should be cleared");
     is_element_hidden(hbox, "Check Compatibility warning hbox should be hidden");
     is_element_hidden(button, "Check Compatibility warning button should be hidden");
 
     close_manager(aWindow, function() {
       run_next_test();
     });
   });
 });
--- a/xpcom/io/nsEscape.h
+++ b/xpcom/io/nsEscape.h
@@ -46,17 +46,17 @@
 #include "nsString.h"
 
 /**
  * Valid mask values for nsEscape
  * Note: these values are copied in nsINetUtil.idl. Any changes should be kept
  * in sync.
  */
 typedef enum {
- 	url_All       = 0         /**< %-escape every byte uncondtionally */
+ 	url_All       = 0         /**< %-escape every byte unconditionally */
 ,	url_XAlphas   = PR_BIT(0) /**< Normal escape - leave alphas intact, escape the rest */
 ,	url_XPAlphas  = PR_BIT(1) /**< As url_XAlphas, but convert spaces (0x20) to '+' and plus to %2B */
 ,	url_Path      = PR_BIT(2) /**< As url_XAlphas, but don't escape slash ('/') */
 } nsEscapeMask;
 
 #ifdef __cplusplus
 extern "C" {
 #endif