Bug 506041 Part 2: Correct misspellings in source code
authorMichael Kohler <michaelkohler@live.com>
Thu, 13 May 2010 14:19:50 +0200
changeset 42263 7ef2a4732afe3ebc09763d3d0e2fa070328e5a5f
parent 42262 8f2f03fb6a8ffd6fe4ccdd980ed910d1ff1d6e25
child 42264 11ef0c724251f50524827d060a25e8489ce91c99
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs506041
milestone1.9.3a5pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
Bug 506041 Part 2: Correct misspellings in source code r=timeless
accessible/public/nsIAccessibilityService.h
accessible/public/nsIAccessibleProvider.idl
accessible/src/base/nsAccessibilityService.cpp
accessible/src/base/nsDocAccessible.cpp
accessible/src/html/nsHyperTextAccessible.cpp
accessible/src/msaa/nsAccessibleWrap.cpp
accessible/tests/mochitest/test_name_button.html
build/autoconf/glib.m4
build/autoconf/libIDL.m4
caps/idl/nsIScriptSecurityManager.idl
config/configobj.py
config/fast-update.pl
config/outofdate.pl
content/base/public/nsINode.h
content/base/src/nsContentAreaDragDrop.h
content/base/src/nsContentUtils.cpp
content/base/test/file_bug416317.xhtml
content/base/test/test_csp_redirects.html
content/events/src/nsEventStateManager.cpp
content/events/test/test_dragstart.html
content/html/content/src/nsHTMLFormElement.h
content/html/content/src/nsHTMLMediaElement.cpp
content/media/ogg/nsOggReader.cpp
content/media/test/file_access_controls.html
content/xbl/src/nsXBLContentSink.cpp
content/xbl/src/nsXBLContentSink.h
content/xslt/src/base/txErrorObserver.h
content/xslt/src/base/txSimpleErrorObserver.cpp
content/xslt/src/xslt/txKey.h
content/xslt/src/xslt/txKeyFunctionCall.cpp
dom/base/nsDOMClassInfo.cpp
dom/base/nsFocusManager.cpp
dom/base/nsGlobalWindow.cpp
dom/base/nsGlobalWindow.h
dom/locales/en-US/chrome/xslt/xslt.properties
intl/uconv/public/nsIUnicodeEncoder.h
intl/uconv/util/uscan.c
intl/unicharutil/note.txt
js/jsd/jsd.h
js/src/editline/README
js/src/jspubtd.h
js/src/tests/e4x/XML/13.4.4.25.js
js/src/tests/ecma/Date/15.9.4.2.js
js/src/tests/ecma/FunctionObjects/15.3.1.1-3.js
js/src/tests/ecma/FunctionObjects/15.3.2.1-1.js
js/src/tests/ecma/FunctionObjects/15.3.2.1-3.js
js/src/tests/ecma/extensions/15.3.2.1-1.js
js/src/tests/js1_5/GC/regress-203278-3.js
js/src/tests/js1_5/extensions/regress-313763.js
js/src/tests/js1_7/extensions/regress-346021.js
js/src/tests/jsDriver.pl
js/src/tests/spidermonkey-n-1.8.0.tests
js/src/tests/spidermonkey-n-1.8.1.tests
js/src/tests/spidermonkey-n-1.9.0.tests
js/src/tests/spidermonkey-n-1.9.1.tests
js/src/tests/spidermonkey-n-1.9.2.tests
js/src/tests/spidermonkey-n-1.9.3.tests
js/src/tests/spidermonkey-n.tests
js/src/xpconnect/crashtests/193710.html
js/src/xpconnect/src/XPCChromeObjectWrapper.cpp
js/src/xpconnect/src/XPCCrossOriginWrapper.cpp
js/src/xpconnect/src/XPCDispObject.cpp
js/src/xpconnect/src/XPCSystemOnlyWrapper.cpp
js/src/xpconnect/src/xpc.msg
js/src/xpconnect/src/xpcwrappednative.cpp
js/src/xpconnect/src/xpcwrappednativejsops.cpp
js/src/xpconnect/tests/idispatch/Tests/WrappedCOM/General/XPCIDispatchInstantiations.js
js/src/xpconnect/tests/idispatch/Tests/jsDriver.pl
layout/base/nsCSSFrameConstructor.cpp
layout/base/nsFrameManager.cpp
layout/base/nsPresContext.h
layout/generic/nsIFrameUtil.h
layout/html/tests/block/bugs/5847.html
layout/mathml/nsMathMLChar.cpp
layout/svg/base/src/nsISVGChildFrame.h
layout/svg/base/src/nsSVGEffects.h
layout/svg/crashtests/326495-1.svg
layout/tools/reftest/reftest-analyzer.xhtml
modules/libjar/zipwriter/src/StreamFunctions.cpp
modules/libpr0n/public/imgIRequest.idl
modules/libpr0n/src/imgContainer.h
modules/libpref/public/nsIPrefLocalizedString.idl
modules/libpref/src/init/all.js
modules/libreg/src/nr_bufio.c
modules/plugin/base/src/nsPluginsDirUtils.h
modules/plugin/sdk/samples/basic/windows/plugin.cpp
modules/plugin/sdk/samples/npthread/windows/plugin.cpp
netwerk/base/public/nsASocketHandler.h
netwerk/base/public/nsIURIChecker.idl
netwerk/base/public/nsNetError.h
netwerk/base/src/nsInputStreamPump.cpp
netwerk/base/src/nsProtocolProxyService.cpp
netwerk/base/src/nsStandardURL.cpp
netwerk/protocol/ftp/src/nsFtpControlConnection.h
netwerk/protocol/http/src/nsHttpNTLMAuth.cpp
netwerk/streamconv/converters/mozTXTToHTMLConv.cpp
netwerk/wifi/src/nsWifiScannerMac.cpp
parser/expat/lib/expat.h
parser/htmlparser/public/nsIHTMLContentSink.h
parser/htmlparser/public/nsIParserNode.h
parser/htmlparser/src/CNavDTD.cpp
parser/htmlparser/src/nsParserNode.cpp
parser/htmlparser/src/nsParserNode.h
parser/htmlparser/tests/html/residual.html
testing/extensions/community/chrome/content/tabs/bugAccess.js
testing/mochitest/tests/MochiKit-1.4.2/MochiKit/Selector.js
testing/sisyphus/bin/build.sh
toolkit/components/feeds/public/nsIFeedListener.idl
toolkit/components/microformats/tests/test_Microformats_hCard.html
toolkit/components/parentalcontrols/public/nsIParentalControlsService.idl
toolkit/components/passwordmgr/test/test_bug_221634.html
toolkit/components/passwordmgr/test/unit/test_storage_legacy_1.js
toolkit/components/passwordmgr/test/unit/test_storage_legacy_2.js
toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_1.js
toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_2.js
toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_7.js
toolkit/components/places/public/nsINavHistoryService.idl
toolkit/components/places/src/Helpers.cpp
toolkit/components/places/src/nsNavHistory.cpp
toolkit/components/places/src/nsPlacesImportExportService.cpp
toolkit/components/places/tests/unit/test_history_sidebar.js
toolkit/components/places/tests/unit/test_isvisited.js
toolkit/components/places/tests/unit/test_preventive_maintenance.js
toolkit/components/printing/content/printPreviewProgress.js
toolkit/components/printing/content/printProgress.js
toolkit/components/satchel/test/unit/test_history_api.js
toolkit/components/url-classifier/content/moz/preferences.js
toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp
toolkit/content/tests/widgets/popup_shared.js
toolkit/content/tests/widgets/test_datepicker.xul
toolkit/content/tests/widgets/test_focus_anons.xul
toolkit/content/tests/widgets/test_menulist_null_value.xul
toolkit/content/tests/widgets/test_popup_coords.xul
toolkit/mozapps/downloads/DownloadUtils.jsm
toolkit/mozapps/extensions/content/update.js
toolkit/mozapps/extensions/nsIAddonRepository.idl
toolkit/mozapps/update/nsUpdateService.js
toolkit/xre/nsNativeAppSupportOS2.cpp
toolkit/xre/nsNativeAppSupportWin.cpp
tools/relic/relic
tools/relic/test/test_addlicense_inputs.py
tools/relic/test/test_relicense_inputs.py
view/src/nsView.h
widget/public/nsIJumpListBuilder.idl
widget/public/nsIWidget.h
widget/src/cocoa/nsChildView.mm
widget/src/cocoa/nsMenuItemIconX.mm
widget/src/gtk2/nsWindow.cpp
widget/src/windows/nsDragService.cpp
widget/src/windows/nsDragService.h
widget/src/windows/nsWindow.cpp
widget/src/xpwidgets/nsBaseDragService.h
xpcom/ds/nsWindowsRegKey.cpp
xpcom/glue/nsTWeakRef.h
xpcom/io/nsIPipe.idl
xpcom/io/nsLocalFileWin.cpp
xpcom/io/nsWildCard.cpp
xpcom/sample/nsSampleModule.cpp
xpcom/string/public/nsUTF8Utils.h
xpcom/tests/TestTArray.cpp
xpcom/tests/unit/test_iniProcessor.js
--- a/accessible/public/nsIAccessibilityService.h
+++ b/accessible/public/nsIAccessibilityService.h
@@ -134,17 +134,17 @@ public:
     FRAME_SHOW = 0x04,
     FRAME_HIDE = 0x05,
     FRAME_SIGNIFICANT_CHANGE = 0x06
   };
 
   /**
    * Invalidate the accessible tree when DOM tree or frame tree is changed.
    *
-   * @param aPresShell   [in] the presShell where changes occured
+   * @param aPresShell   [in] the presShell where changes occurred
    * @param aContent     [in] the affected DOM content
    * @param aChangeType  [in] the change type (see constants declared above)
    */
   virtual nsresult InvalidateSubtreeFor(nsIPresShell *aPresShell,
                                         nsIContent *aContent,
                                         PRUint32 aChangeType) = 0;
 
   /**
--- a/accessible/public/nsIAccessibleProvider.idl
+++ b/accessible/public/nsIAccessibleProvider.idl
@@ -40,17 +40,17 @@
 
 #include "nsISupports.idl"
 
 /**
  * nsIAccessibleProvider interface is used to link element and accessible
    object. For that XBL binding of element should implement the interface.
  */
 
-[scriptable, uuid(3f7f9194-c625-4a85-8148-6d92d34897fa)]
+[scriptable, uuid(89fb8270-4f25-11df-9879-0800200c9a66)]
 interface nsIAccessibleProvider : nsISupports
 {
   /**
    * Constants set of common use.
    */
 
   /** Do not create an accessible for this object
    * This is useful if an ancestor binding already implements nsIAccessibleProvider,
@@ -121,17 +121,17 @@ interface nsIAccessibleProvider : nsISup
   /** Used for xforms elements that provide accessible object for itself as
    * well for anonymous content. This property are used for upload,
    * input[type="xsd:gDay"] and input[type="xsd:gMonth"] */
   const long XFormsContainer = 0x00002000;
 
   /** Used for label element */
   const long XFormsLabel = 0x00002001;
   /** Used for output element */
-  const long XFormsOuput = 0x00002002;
+  const long XFormsOutput = 0x00002002;
   /** Used for trigger and submit elements */
   const long XFormsTrigger = 0x00002003;
   /** Used for input and textarea elements */
   const long XFormsInput = 0x00002004;
   /** Used for input[xsd:boolean] element */
   const long XFormsInputBoolean = 0x00002005;
   /** Used for input[xsd:date] element */
   const long XFormsInputDate = 0x00002006;
--- a/accessible/src/base/nsAccessibilityService.cpp
+++ b/accessible/src/base/nsAccessibilityService.cpp
@@ -1966,17 +1966,17 @@ nsAccessibilityService::CreateAccessible
     // XForms elements
     case nsIAccessibleProvider::XFormsContainer:
       accessible = new nsXFormsContainerAccessible(aNode, aWeakShell);
       break;
 
     case nsIAccessibleProvider::XFormsLabel:
       accessible = new nsXFormsLabelAccessible(aNode, aWeakShell);
       break;
-    case nsIAccessibleProvider::XFormsOuput:
+    case nsIAccessibleProvider::XFormsOutput:
       accessible = new nsXFormsOutputAccessible(aNode, aWeakShell);
       break;
     case nsIAccessibleProvider::XFormsTrigger:
       accessible = new nsXFormsTriggerAccessible(aNode, aWeakShell);
       break;
     case nsIAccessibleProvider::XFormsInput:
       accessible = new nsXFormsInputAccessible(aNode, aWeakShell);
       break;
--- a/accessible/src/base/nsDocAccessible.cpp
+++ b/accessible/src/base/nsDocAccessible.cpp
@@ -2037,26 +2037,26 @@ nsDocAccessible::InvalidateCacheSubtree(
     // updated to make this accessible content visible. If we don't wait,
     // the assistive technology may receive the event and then retrieve
     // nsIAccessibleStates::STATE_INVISIBLE for the event's accessible object.
 
     FireDelayedAccessibleEvent(nsIAccessibleEvent::EVENT_SHOW, childNode,
                                nsAccEvent::eCoalesceFromSameSubtree,
                                isAsynch);
 
-    // Check to see change occured in an ARIA menu, and fire
+    // Check to see change occurred in an ARIA menu, and fire
     // an EVENT_MENUPOPUP_START if it did.
     nsRoleMapEntry *roleMapEntry = nsAccUtils::GetRoleMapEntry(childNode);
     if (roleMapEntry && roleMapEntry->role == nsIAccessibleRole::ROLE_MENUPOPUP) {
       FireDelayedAccessibleEvent(nsIAccessibleEvent::EVENT_MENUPOPUP_START,
                                  childNode, nsAccEvent::eRemoveDupes,
                                  isAsynch);
     }
 
-    // Check to see if change occured inside an alert, and fire an EVENT_ALERT if it did
+    // Check to see if change occurred inside an alert, and fire an EVENT_ALERT if it did
     nsIContent *ancestor = aChild;
     while (PR_TRUE) {
       if (roleMapEntry && roleMapEntry->role == nsIAccessibleRole::ROLE_ALERT) {
         nsCOMPtr<nsIDOMNode> alertNode(do_QueryInterface(ancestor));
         FireDelayedAccessibleEvent(nsIAccessibleEvent::EVENT_ALERT, alertNode,
                                    nsAccEvent::eRemoveDupes, isAsynch);
         break;
       }
--- a/accessible/src/html/nsHyperTextAccessible.cpp
+++ b/accessible/src/html/nsHyperTextAccessible.cpp
@@ -1002,17 +1002,17 @@ nsresult nsHyperTextAccessible::GetTextH
     NS_ENSURE_TRUE(finalStartOffset >= 0, NS_ERROR_FAILURE);
   }
 
   if (aType == eGetBefore) {
     endOffset = aOffset;
   }
   else {
     // Start moving forward from the start so that we don't get 
-    // 2 words/lines if the offset occured on whitespace boundary
+    // 2 words/lines if the offset occurred on whitespace boundary
     // Careful, startOffset and endOffset are passed by reference to GetPosAndText() and changed
     // For BOUNDARY_LINE_END, make sure we start of this line
     startOffset = endOffset = finalStartOffset + (aBoundaryType == BOUNDARY_LINE_END);
     nsCOMPtr<nsIAccessible> endAcc;
     nsIFrame *endFrame = GetPosAndText(startOffset, endOffset, nsnull, nsnull,
                                        nsnull, getter_AddRefs(endAcc));
     if (nsAccUtils::Role(endAcc) == nsIAccessibleRole::ROLE_STATICTEXT) {
       // Static text like list bullets will ruin our forward calculation,
--- a/accessible/src/msaa/nsAccessibleWrap.cpp
+++ b/accessible/src/msaa/nsAccessibleWrap.cpp
@@ -1733,17 +1733,17 @@ nsAccessibleWrap::FirePlatformEvent(nsAc
 }
 
 //------- Helper methods ---------
 
 PRInt32 nsAccessibleWrap::GetChildIDFor(nsIAccessible* aAccessible)
 {
   // A child ID of the window is required, when we use NotifyWinEvent,
   // so that the 3rd party application can call back and get the IAccessible
-  // the event occured on.
+  // the event occurred on.
 
   void *uniqueID = nsnull;
   nsCOMPtr<nsIAccessNode> accessNode(do_QueryInterface(aAccessible));
   if (!accessNode) {
     return 0;
   }
   accessNode->GetUniqueID(&uniqueID);
 
--- a/accessible/tests/mochitest/test_name_button.html
+++ b/accessible/tests/mochitest/test_name_button.html
@@ -123,20 +123,20 @@
          aria-labelledby="aria_labelledby_text_for_input"
          value="1"/>
   <br/>
 
   <!-- label, preferred to @title -->
   <label for="input_labelled">label</label>
   <input type="button" id="input_labelled" value="1" title="title"/>
 
-  <!-- name from @value, prefered to @title -->
+  <!-- name from @value, preferred to @title -->
   <input type="button" id="input_value0" title="title" value="1"/>
 
-  <!-- name from @value, prefered to @alt -->
+  <!-- name from @value, preferred to @alt -->
   <input type="button" id="input_value" value="1" alt="alt"/>
 
   <!-- name from @alt, preferred to @src -->
   <input type="button" id="input_alt" alt="alt" @src="src"/>
 
   <!-- name from @src, preferred to @data -->
   <input type="button" id="input_src" src="src" data="data"/>
 
--- a/build/autoconf/glib.m4
+++ b/build/autoconf/glib.m4
@@ -178,17 +178,17 @@ main ()
           echo "*** If you have an old version installed, it is best to remove it, although"
           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
           echo "***"
           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
           echo "*** came with the system with the command"
           echo "***"
           echo "***    rpm --erase --nodeps gtk gtk-devel" ],
         [ echo "*** The test program failed to compile or link. See the file config.log for the"
-          echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
+          echo "*** exact error that occurred. This usually means GLIB was incorrectly installed"
           echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
           echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ])
           CFLAGS="$ac_save_CFLAGS"
           LIBS="$ac_save_LIBS"
        fi
      fi
      GLIB_CFLAGS=""
      GLIB_LIBS=""
--- a/build/autoconf/libIDL.m4
+++ b/build/autoconf/libIDL.m4
@@ -176,17 +176,17 @@ main ()
           echo "*** version of LIBIDL. If it is not finding libIDL, you'll need to set your"
           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
           echo "*** is required on your system"
 	  echo "***"
           echo "*** If you have an old version installed, it is best to remove it, although"
           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
         [ echo "*** The test program failed to compile or link. See the file config.log for the"
-          echo "*** exact error that occured. This usually means libIDL was incorrectly installed"
+          echo "*** exact error that occurred. This usually means libIDL was incorrectly installed"
           echo "*** or that you have moved libIDL since it was installed. In the latter case, you"
           echo "*** may want to edit the libIDL-config script: $LIBIDL_CONFIG" ])
           CFLAGS="$ac_save_CFLAGS"
           LIBS="$ac_save_LIBS"
        fi
      fi
      LIBIDL_CFLAGS=""
      LIBIDL_LIBS=""
--- a/caps/idl/nsIScriptSecurityManager.idl
+++ b/caps/idl/nsIScriptSecurityManager.idl
@@ -311,17 +311,17 @@ interface nsIScriptSecurityManager : nsI
     [noscript,notxpcom] nsIPrincipal getCxSubjectPrincipal(in JSContextPtr cx);
     [noscript,notxpcom] nsIPrincipal getCxSubjectPrincipalAndFrame(in JSContextPtr cx,
                                                                    out JSStackFramePtr fp);
 
     /**
      * If no scripted code is running "above" (or called from) fp, then
      * instead of looking at cx->globalObject, we will return |principal|.
      * This function only affects |cx|. If someone pushes another context onto
-     * the context stack, then it supercedes this call.
+     * the context stack, then it supersedes this call.
      * NOTE: If |fp| is non-null popContextPrincipal must be called before fp
      * has finished executing.
      *
      * @param cx The context to clamp.
      * @param fp The frame pointer to clamp at. May be 'null'.
      * @param principal The principal to clamp to.
      */
     [noscript] void pushContextPrincipal(in JSContextPtr cx,
--- a/config/configobj.py
+++ b/config/configobj.py
@@ -256,17 +256,17 @@ class ParseError(ConfigObjError):
 
 class DuplicateError(ConfigObjError):
     """
     The keyword or section specified already exists.
     """
 
 class ConfigspecError(ConfigObjError):
     """
-    An error occured whilst parsing a configspec.
+    An error occurred whilst parsing a configspec.
     """
 
 class InterpolationError(ConfigObjError):
     """Base class for the two interpolation errors."""
 
 class InterpolationLoopError(InterpolationError):
     """Maximum interpolation depth exceeded in string interpolation."""
 
@@ -1595,17 +1595,17 @@ class ConfigObj(Section):
         # shouldn't get here
         raise SyntaxError
 
     def _handle_error(self, text, ErrorClass, infile, cur_index):
         """
         Handle an error according to the error settings.
         
         Either raise the error or store it.
-        The error will have occured at ``cur_index``
+        The error will have occurred at ``cur_index``
         """
         line = infile[cur_index]
         cur_index += 1
         message = text % cur_index
         error = ErrorClass(message, cur_index, line)
         if self.raise_errors:
             # raise the error - parsing stops here
             raise error
--- a/config/fast-update.pl
+++ b/config/fast-update.pl
@@ -1,15 +1,15 @@
 #!/usr/bin/env perl
 #
 # fast-update.pl [-h hours] [-m module] [-r branch]
 #
 # This command, fast-update.pl, does a (fast) cvs update of the current 
 # directory. It is fast because the cvs up command is only run on those 
-# directories / sub-directories where changes have occured since the 
+# directories / sub-directories where changes have occurred since the 
 # last fast-update.
 #
 # The last update time is stored in a ".fast-update" file in the current
 # directory. Thus one can choose to only fast-update a branch of the tree 
 # and then fast-update the whole tree later.
 #
 # The first time this command is run in a directory the last cvs update
 # time is assumed to be the timestamp of the CVS/Entries file.
--- a/config/outofdate.pl
+++ b/config/outofdate.pl
@@ -36,17 +36,17 @@
 #
 # ***** END LICENSE BLOCK *****
 
 #
 #Input: [-d dir] foo1.java foo2.java
 #Compares with: foo1.class foo2.class (if -d specified, checks in 'dir', 
 #  otherwise assumes .class files in same directory as .java files)
 #Returns: list of input arguments which are newer than corresponding class
-#files (non-existant class files are considered to be real old :-)
+#files (non-existent class files are considered to be real old :-)
 #
 
 $found = 1;
 
 # GLOBALS
 $SEP = 0; # the paltform independent path separator
 $CFG = 0; # the value of the -cfg flag
 
--- a/content/base/public/nsINode.h
+++ b/content/base/public/nsINode.h
@@ -189,23 +189,23 @@ inline nsINode* NODE_FROM(C& aContent, D
     return static_cast<nsINode*>(aContent);
   return static_cast<nsINode*>(aDocument);
 }
 
 /**
  * Class used to detect unexpected mutations. To use the class create an
  * nsMutationGuard on the stack before unexpected mutations could occur.
  * You can then at any time call Mutated to check if any unexpected mutations
- * have occured.
+ * have occurred.
  *
  * When a guard is instantiated sMutationCount is set to 300. It is then
  * decremented by every mutation (capped at 0). This means that we can only
  * detect 300 mutations during the lifetime of a single guard, however that
  * should be more then we ever care about as we usually only care if more then
- * one mutation has occured.
+ * one mutation has occurred.
  *
  * When the guard goes out of scope it will adjust sMutationCount so that over
  * the lifetime of the guard the guard itself has not affected sMutationCount,
  * while mutations that happened while the guard was alive still will. This
  * allows a guard to be instantiated even if there is another guard higher up
  * on the callstack watching for mutations.
  *
  * The only thing that has to be avoided is for an outer guard to be used
@@ -222,17 +222,17 @@ public:
   }
   ~nsMutationGuard()
   {
     sMutationCount =
       mDelta > sMutationCount ? 0 : sMutationCount - mDelta;
   }
 
   /**
-   * Returns true if any unexpected mutations have occured. You can pass in
+   * Returns true if any unexpected mutations have occurred. You can pass in
    * an 8-bit ignore count to ignore a number of expected mutations.
    */
   PRBool Mutated(PRUint8 aIgnoreCount)
   {
     return sMutationCount < static_cast<PRUint32>(eMaxMutations - aIgnoreCount);
   }
 
   // This function should be called whenever a mutation that we want to keep
--- a/content/base/src/nsContentAreaDragDrop.h
+++ b/content/base/src/nsContentAreaDragDrop.h
@@ -76,17 +76,17 @@ public:
    *                    holding down Alt over a link should select the text,
    *                    not drag the link.
    * aDataTransfer - the dataTransfer for the drag event.
    * aCanDrag - [out] set to true if the drag may proceed, false to stop the
    *            drag entirely
    * aDragSelection - [out] set to true to indicate that a selection is being
    *                  dragged, rather than a specific node
    * aDragNode - [out] the link, image or area being dragged, or null if the
-   *             drag occured on another element.
+   *             drag occurred on another element.
    */
   static nsresult GetDragData(nsIDOMWindow* aWindow,
                               nsIContent* aTarget,
                               nsIContent* aSelectionTargetNode,
                               PRBool aIsAltKeyPressed,
                               nsDOMDataTransfer* aDataTransfer,
                               PRBool* aCanDrag,
                               PRBool* aDragSelection,
--- a/content/base/src/nsContentUtils.cpp
+++ b/content/base/src/nsContentUtils.cpp
@@ -4566,17 +4566,17 @@ nsContentUtils::ProcessViewportInfo(nsID
   viewportInfo.BeginReading(tip);
   tail = tip;
   viewportInfo.EndReading(end);
 
   /* Read the tip to the first non-separator character. */
   while ((tip != end) && IS_SEPARATOR(*tip))
     ++tip;
 
-  /* Read through and find tokens seperated by separators. */
+  /* Read through and find tokens separated by separators. */
   while (tip != end) {
     
     /* Synchronize tip and tail. */
     tail = tip;
 
     /* Advance tip past non-separator characters. */
     while ((tip != end) && !IS_SEPARATOR(*tip))
       ++tip;
--- a/content/base/test/file_bug416317.xhtml
+++ b/content/base/test/file_bug416317.xhtml
@@ -660,17 +660,17 @@
       t( "Broken Selector", "()" );
       t( "Broken Selector", "<>" );
       t( "Broken Selector", "{}" );
 
       t( "ID Selector", "#body", ["body"], false );
       t( "ID Selector w/ Element", "body#body", ["body"], false );
       t( "ID Selector w/ Element", "ul#first", [] );
       t( "ID selector with existing ID descendant", "#firstp #simon1", ["simon1"] );
-      t( "ID selector with non-existant descendant", "#firstp #foobar", [] );
+      t( "ID selector with non-existent descendant", "#firstp #foobar", [] );
 
       t( "ID selector using UTF8", "#台北Táiběi", ["台北Táiběi"] );
       t( "Multiple ID selectors using UTF8", "#台北Táiběi, #台北", ["台北Táiběi","台北"] );
       t( "Descendant ID selector using UTF8", "div #台北", ["台北"] );
       t( "Child ID selector using UTF8", "form > #台北", ["台北"] );
   
       t( "Escaped ID", "#foo\\:bar", ["foo:bar"] );
       t( "Escaped ID", "#test\\.foo\\[5\\]bar", ["test.foo[5]bar"] );
@@ -681,17 +681,17 @@
   
       t( "ID Selector, child ID present", "#form > #radio1", ["radio1"] ); // bug #267
       t( "ID Selector, not an ancestor ID", "#form #first", [] );
       t( "ID Selector, not a child ID", "#form > #option1a", [] );
       
       t( "All Children of ID", "#foo > *", ["sndp", "en", "sap"] );
       t( "All Children of ID with no children", "#firstUL > *", [] );
 
-      t( "ID selector with non-existant ancestor", "#asdfasdf #foobar", [] ); // bug #986
+      t( "ID selector with non-existent ancestor", "#asdfasdf #foobar", [] ); // bug #986
 
       //t( "body div#form", [], "ID selector within the context of another element" );
 
       t( "Class Selector", ".blog", ["mark","simon"] );
       t( "Class Selector", ".blog.link", ["simon"] );
       t( "Class Selector w/ Element", "a.blog", ["mark","simon"] );
       t( "Parent Class Selector", "p .blog", ["mark","simon"] );
   
--- a/content/base/test/test_csp_redirects.html
+++ b/content/base/test/test_csp_redirects.html
@@ -95,17 +95,17 @@ var testExpectedResults = { "font-src": 
                             "style-src-redir": false,
                             "worker": true,
                             "worker-redir": false,
                             "xhr-src": true,
                             "xhr-src-redir": false,
                           };
 
 // takes the name of the test, the URL that was tested, and whether the
-// load occured
+// load occurred
 var testResult = function(testName, url, result) {
   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
   log("  testName: "+testName+", result: "+result+", expected: "+testExpectedResults[testName]+"\n");
   is(result, testExpectedResults[testName], testName+" test: "+url);
 
  // mark test as completed
   testExpectedResults[testName] = "completed";
 
--- a/content/events/src/nsEventStateManager.cpp
+++ b/content/events/src/nsEventStateManager.cpp
@@ -2043,17 +2043,17 @@ nsEventStateManager::DetermineDragTarget
   PRBool canDrag;
   nsCOMPtr<nsIContent> dragDataNode;
   nsCOMPtr<nsIDocShellTreeItem> dsti = do_QueryInterface(container);
   if (dsti) {
     PRInt32 type = -1;
     if (NS_SUCCEEDED(dsti->GetItemType(&type)) &&
         type != nsIDocShellTreeItem::typeChrome) {
       // mGestureDownContent is the node where the mousedown event for the drag
-      // occured, and aSelectionTarget is the node to use when a selection is used
+      // occurred, and aSelectionTarget is the node to use when a selection is used
       nsresult rv =
         nsContentAreaDragDrop::GetDragData(window, mGestureDownContent,
                                            aSelectionTarget, mGestureDownAlt,
                                            aDataTransfer, &canDrag, aIsSelection,
                                            getter_AddRefs(dragDataNode));
       if (NS_FAILED(rv) || !canDrag)
         return;
     }
--- a/content/events/test/test_dragstart.html
+++ b/content/events/test/test_dragstart.html
@@ -27,17 +27,17 @@ function runTests()
   synthesizeMouse(draggable, 14, 14, { type: "mousemove" });
   // drags are asynchronous on Linux, so this extra event is needed to make
   // sure the drag gets processed
   synthesizeMouse(draggable, 15, 15, { type: "mousemove" });
 }
 
 function afterDragTests()
 {
-  // the dragstart should have occured due to moving the mouse. gDataTransfer
+  // the dragstart should have occurred due to moving the mouse. gDataTransfer
   // caches the dataTransfer that was used, however it should now be empty and
   // be read only.
   ok(gDataTransfer instanceof DataTransfer, "DataTransfer after dragstart event");
   checkTypes(gDataTransfer, [], 0, "after dragstart event");
 
   expectError(function() gDataTransfer.setData("text/plain", "Some Text"),
               "NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR", "setData when read only");
   expectError(function() gDataTransfer.clearData("text/plain"),
@@ -152,17 +152,17 @@ function test_DataTransfer(dt)
   is(dt.getData("text/plain"), "", "empty data is empty");
 
   // calling setDataAt requires an index that is 0 <= index <= dt.itemCount
   expectError(function() dt.mozSetDataAt("text/plain", "Some Text", 1),
               "NS_ERROR_DOM_INDEX_SIZE_ERR", "setDataAt index too high");
 
   is(dt.mozUserCancelled, false, "userCancelled");
 
-  // because an exception occured, the data should not have been added
+  // because an exception occurred, the data should not have been added
   is(dt.mozItemCount, 0, "empty setDataAt index too high itemCount");
   dt.getData("text/plain", "", "empty setDataAt index too high getData");
 
   // if the type is '', do nothing, or return ''
   dt.setData("", "Invalid Type");
   is(dt.types.length, 0, "invalid type setData");
   is(dt.getData(""), "", "invalid type getData"),
   dt.mozSetDataAt("", "Invalid Type", 0);
--- a/content/html/content/src/nsHTMLFormElement.h
+++ b/content/html/content/src/nsHTMLFormElement.h
@@ -183,17 +183,17 @@ public:
    *
    * @param aElement the element to remove
    * @param aNotify If true, send nsIDocumentObserver notifications as needed.
    * @return NS_OK if the element was successfully removed.
    */
   nsresult RemoveElement(nsGenericHTMLFormElement* aElement, PRBool aNotify);
 
   /**
-   * Remove an element from the lookup table mainted by the form.
+   * Remove an element from the lookup table maintained by the form.
    * We can't fold this method into RemoveElement() because when
    * RemoveElement() is called it doesn't know if the element is
    * removed because the id attribute has changed, or bacause the
    * name attribute has changed.
    *
    * @param aElement the element to remove
    * @param aName the name or id of the element to remove
    * @return NS_OK if the element was successfully removed.
@@ -205,17 +205,17 @@ public:
    *
    * @param aElement the element to add
    * @param aNotify If true, send nsIDocumentObserver notifications as needed.
    * @return NS_OK if the element was successfully added
    */
   nsresult AddElement(nsGenericHTMLFormElement* aElement, PRBool aNotify);
 
   /**    
-   * Add an element to the lookup table mainted by the form.
+   * Add an element to the lookup table maintained by the form.
    *
    * We can't fold this method into AddElement() because when
    * AddElement() is called, the form control has no
    * attributes.  The name or id attributes of the form control
    * are used as a key into the table.
    */
   nsresult AddElementToTable(nsGenericHTMLFormElement* aChild,
                              const nsAString& aName);
--- a/content/html/content/src/nsHTMLMediaElement.cpp
+++ b/content/html/content/src/nsHTMLMediaElement.cpp
@@ -734,17 +734,17 @@ nsresult nsHTMLMediaElement::LoadResourc
     // cycle here.  The channel holds the only reference to the listener,
     // and is useless now anyway, so drop our reference to it to allow it to
     // be destroyed.
     mChannel = nsnull;
     return rv;
   }
 
   // Else the channel must be open and starting to download. If it encounters
-  // a non-catestrophic failure, it will set a new task to continue loading
+  // a non-catastrophic failure, it will set a new task to continue loading
   // another candidate.
   return NS_OK;
 }
 
 nsresult nsHTMLMediaElement::LoadWithChannel(nsIChannel *aChannel,
                                              nsIStreamListener **aListener)
 {
   NS_ENSURE_ARG_POINTER(aChannel);
--- a/content/media/ogg/nsOggReader.cpp
+++ b/content/media/ogg/nsOggReader.cpp
@@ -998,17 +998,17 @@ nsresult nsOggReader::Seek(PRInt64 aTarg
       // time in ms which a keyframe could be before a given interframe. We
       // subtract this from our seek target, seek to the new target, and then
       // decode forwards to the original seek target. We should encounter a
       // keyframe in that interval. This prevents us from needing to run two
       // bisections; one for the seek target frame, and another to find its
       // keyframe. It's usually faster to just download this extra data, rather
       // tham perform two bisections to find the seek target's keyframe. We
       // don't do this offsetting when seeking in a buffered ranges (above),
-      // as the extra decoding causes a noticable speed hit when all the data
+      // as the extra decoding causes a noticeable speed hit when all the data
       // is buffered.
       PRInt64 keyframeOffsetMs = 0;
       if (HasVideo() && mTheoraState) {
         keyframeOffsetMs = mTheoraState->MaxKeyframeOffset();
       }
       PRInt64 seekTarget = NS_MAX(aStartTime, aTarget - keyframeOffsetMs);
 
       ByteRange k = GetSeekRange(ranges, seekTarget, aStartTime, aEndTime, PR_FALSE);
--- a/content/media/test/file_access_controls.html
+++ b/content/media/test/file_access_controls.html
@@ -36,17 +36,17 @@ var gTests = [
     // Test 5
     url: "http://example.org/tests/content/media/test/320x240.ogv",
     result: "loadeddata",
     description: "Can load from same domain"
   },{
     // Test 6
     url: "http://example.org:8000/tests/content/media/test/320x240.ogv",
     result: "error",
-    description: "Won't load from differnet port on same domain"
+    description: "Won't load from different port on same domain"
   },{
     // Test 7
     url: "http://example.org:8000/tests/content/media/test/320x240.allow-origin.ogv",
     result: "loadeddata",
     description: "Can load from different port on same domain with allow-origin",
   },{
     // Test 8
     url: "http://example.com/tests/content/media/test/320x240.ogv",
--- a/content/xbl/src/nsXBLContentSink.cpp
+++ b/content/xbl/src/nsXBLContentSink.cpp
@@ -311,17 +311,17 @@ nsXBLContentSink::HandleEndElement(const
     PRInt32 nameSpaceID;
     nsCOMPtr<nsIAtom> prefix, localName;
     nsContentUtils::SplitExpatName(aName, getter_AddRefs(prefix),
                                    getter_AddRefs(localName), &nameSpaceID);
 
     if (nameSpaceID == kNameSpaceID_XBL) {
       if (mState == eXBL_Error) {
         // Check whether we've opened this tag before; we may not have if
-        // it was a real XBL tag before the error occured.
+        // it was a real XBL tag before the error occurred.
         if (!GetCurrentContent()->NodeInfo()->Equals(localName,
                                                      nameSpaceID)) {
           // OK, this tag was never opened as far as the XML sink is
           // concerned.  Just drop the HandleEndElement
           return NS_OK;
         }
       }
       else if (mState == eXBL_InHandlers) {
--- a/content/xbl/src/nsXBLContentSink.h
+++ b/content/xbl/src/nsXBLContentSink.h
@@ -50,17 +50,17 @@
  */
 typedef enum {
   eXBL_InDocument,       /* outside any bindings */
   eXBL_InBindings,       /* Inside a <bindings> element */
   eXBL_InBinding,        /* Inside a <binding> */
   eXBL_InResources,      /* Inside a <resources> */
   eXBL_InImplementation, /* Inside a <implementation> */
   eXBL_InHandlers,       /* Inside a <handlers> */
-  eXBL_Error             /* An error has occured.  Suspend binding construction */
+  eXBL_Error             /* An error has occurred.  Suspend binding construction */
 } XBLPrimaryState;
 
 /*
  * Enum that describes our substate (typically when parsing something
  * like <handlers> or <implementation>).
  */
 typedef enum {
   eXBL_None,
--- a/content/xslt/src/base/txErrorObserver.h
+++ b/content/xslt/src/base/txErrorObserver.h
@@ -94,17 +94,17 @@ public:
     **/
     SimpleErrorObserver(ostream& errStream);
 
     /**
      *  Notifies this Error observer of a new error aRes
     **/
     void receiveError(const nsAString& errorMessage, nsresult aRes);
 
-    virtual void supressWarnings(MBool supress);
+    virtual void suppressWarnings(MBool suppress);
 
 private:
 
     ostream* errStream;
     MBool hideWarnings;
 }; //-- SimpleErrorObserver
 #endif
 
--- a/content/xslt/src/base/txSimpleErrorObserver.cpp
+++ b/content/xslt/src/base/txSimpleErrorObserver.cpp
@@ -70,11 +70,11 @@ void SimpleErrorObserver::receiveError(c
         *errStream << "error: ";
     }
 
     *errStream << NS_LossyConvertUTF16toASCII(errorMessage).get() << endl;
     errStream->flush();
 #endif
 }
 
-void SimpleErrorObserver::supressWarnings(MBool supress) {
-    this->hideWarnings = supress;
-} //-- supressWarnings
+void SimpleErrorObserver::suppressWarnings(MBool suppress) {
+    this->hideWarnings = suppress;
+} //-- suppressWarnings
--- a/content/xslt/src/xslt/txKey.h
+++ b/content/xslt/src/xslt/txKey.h
@@ -127,17 +127,17 @@ public:
     txXSLKey(const txExpandedName& aName) : mName(aName)
     {
     }
     
     /**
      * Adds a match/use pair.
      * @param aMatch  match-pattern
      * @param aUse    use-expression
-     * @return PR_FALSE if an error occured, PR_TRUE otherwise
+     * @return PR_FALSE if an error occurred, PR_TRUE otherwise
      */
     PRBool addKey(nsAutoPtr<txPattern> aMatch, nsAutoPtr<Expr> aUse);
 
     /**
      * Indexes a subtree and adds it to the hash of key values
      * @param aRoot         Subtree root to index and add
      * @param aKeyValueHash Hash to add values to
      * @param aEs           txExecutionState to use for XPath evaluation
--- a/content/xslt/src/xslt/txKeyFunctionCall.cpp
+++ b/content/xslt/src/xslt/txKeyFunctionCall.cpp
@@ -294,17 +294,17 @@ txKeyHash::init()
     return NS_OK;
 }
 
 
 /**
  * Adds a match/use pair.
  * @param aMatch  match-pattern
  * @param aUse    use-expression
- * @return PR_FALSE if an error occured, PR_TRUE otherwise
+ * @return PR_FALSE if an error occurred, PR_TRUE otherwise
  */
 PRBool txXSLKey::addKey(nsAutoPtr<txPattern> aMatch, nsAutoPtr<Expr> aUse)
 {
     if (!aMatch || !aUse)
         return PR_FALSE;
 
     Key* key = mKeys.AppendElement();
     if (!key)
--- a/dom/base/nsDOMClassInfo.cpp
+++ b/dom/base/nsDOMClassInfo.cpp
@@ -1765,17 +1765,17 @@ nsDOMClassInfo::ThrowJSException(JSConte
 
   if (NS_SUCCEEDED(CreateExceptionFromResult(cx, aResult))) {
     return NS_OK;
   }
 
   // XXX This probably wants to be localized, but that can fail in ways that
   // are hard to report correctly.
   JSString *str =
-    JS_NewStringCopyZ(cx, "An error occured throwing an exception");
+    JS_NewStringCopyZ(cx, "An error occurred throwing an exception");
   if (!str) {
     // JS_NewStringCopyZ reported the error for us.
     return NS_OK; 
   }
   JS_SetPendingException(cx, STRING_TO_JSVAL(str));
   return NS_OK;
 }
 
--- a/dom/base/nsFocusManager.cpp
+++ b/dom/base/nsFocusManager.cpp
@@ -1517,17 +1517,17 @@ nsFocusManager::Blur(nsPIDOMWindow* aWin
     if (mFocusedWindow == nsnull)
       SendFocusOrBlurEvent(NS_BLUR_CONTENT, presShell, doc, window, 1, PR_FALSE);
 
     // check if a different window was focused
     result = (mFocusedWindow == nsnull && mActiveWindow);
   }
   else if (mActiveWindow) {
     // Otherwise, the blur of the element without blurring the document
-    // occured normally. Call UpdateCaret to redisplay the caret at the right
+    // occurred normally. Call UpdateCaret to redisplay the caret at the right
     // location within the document. This is needed to ensure that the caret
     // used for caret browsing is made visible again when an input field is
     // blurred.
     UpdateCaret(PR_FALSE, PR_TRUE, nsnull);
   }
 
   if (clearFirstBlurEvent)
     mFirstBlurEvent = nsnull;
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -648,17 +648,17 @@ nsGlobalWindow::nsGlobalWindow(nsGlobalW
 #if defined(XP_MAC) || defined(XP_MACOSX)
     mShowAccelerators(PR_FALSE),
     mShowFocusRings(PR_FALSE),
 #else
     mShowAccelerators(PR_TRUE),
     mShowFocusRings(PR_TRUE),
 #endif
     mShowFocusRingForContent(PR_FALSE),
-    mFocusByKeyOccured(PR_FALSE),
+    mFocusByKeyOccurred(PR_FALSE),
     mHasAcceleration(PR_FALSE),
     mTimeoutInsertionPoint(nsnull),
     mTimeoutPublicIdCounter(1),
     mTimeoutFiringDepth(0),
     mJSObject(nsnull),
     mPendingStorageEventsObsolete(nsnull),
     mTimeoutsSuspendDepth(0),
     mFocusMethod(0)
@@ -6964,17 +6964,17 @@ nsGlobalWindow::SetFocusedNode(nsIConten
 
   if (mFocusedNode) {
     // if a node was focused by a keypress, turn on focus rings for the
     // window. Focus rings are always shown when the FLAG_SHOWRING flag is
     // used, or for XUL elements on GTK, but in this case we set
     // mShowFocusRingForContent, as we don't want this to be permanent for
     // the window.
     if (mFocusMethod == nsIFocusManager::FLAG_BYKEY) {
-      mFocusByKeyOccured = PR_TRUE;
+      mFocusByKeyOccurred = PR_TRUE;
     } else if (aFocusMethod & nsIFocusManager::FLAG_SHOWRING
 #ifdef MOZ_WIDGET_GTK2
              || mFocusedNode->IsXUL()
 #endif
             ) {
       mShowFocusRingForContent = PR_TRUE;
     }
   }
@@ -6991,17 +6991,17 @@ nsGlobalWindow::GetFocusMethod()
   return mFocusMethod;
 }
 
 PRBool
 nsGlobalWindow::ShouldShowFocusRing()
 {
   FORWARD_TO_INNER(ShouldShowFocusRing, (), PR_FALSE);
 
-  return mShowFocusRings || mShowFocusRingForContent || mFocusByKeyOccured;
+  return mShowFocusRings || mShowFocusRingForContent || mFocusByKeyOccurred;
 }
 
 void
 nsGlobalWindow::SetKeyboardIndicators(UIStateChangeType aShowAccelerators,
                                       UIStateChangeType aShowFocusRings)
 {
   FORWARD_TO_INNER_VOID(SetKeyboardIndicators, (aShowAccelerators, aShowFocusRings));
 
--- a/dom/base/nsGlobalWindow.h
+++ b/dom/base/nsGlobalWindow.h
@@ -733,19 +733,19 @@ protected:
 
   // whether to show focus rings
   PRPackedBool           mShowFocusRings : 1;
 
   // when true, show focus rings for the current focused content only.
   // This will be reset when another element is focused
   PRPackedBool           mShowFocusRingForContent : 1;
 
-  // true if tab navigation has occured for this window. Focus rings
+  // true if tab navigation has occurred for this window. Focus rings
   // should be displayed.
-  PRPackedBool           mFocusByKeyOccured : 1;
+  PRPackedBool           mFocusByKeyOccurred : 1;
 
   // Indicates whether this window is getting acceleration change events
   PRPackedBool           mHasAcceleration  : 1;
 
   nsCOMPtr<nsIScriptContext>    mContext;
   nsWeakPtr                     mOpener;
   nsCOMPtr<nsIControllers>      mControllers;
   nsCOMPtr<nsIArray>            mArguments;
--- a/dom/locales/en-US/chrome/xslt/xslt.properties
+++ b/dom/locales/en-US/chrome/xslt/xslt.properties
@@ -39,17 +39,17 @@ 1  = Parsing an XSLT stylesheet failed.
 2  = Parsing an XPath expression failed.
 3  = 
 4  = XSLT transformation failed.
 5  = Invalid XSLT/XPath function.
 6  = XSLT Stylesheet (possibly) contains a recursion.
 7  = Attribute value illegal in XSLT 1.0.
 8  = An XPath expression was expected to return a NodeSet.
 9  = XSLT transformation was terminated by <xsl:message>.
-10 = A network error occured loading an XSLT stylesheet:
+10 = A network error occurred loading an XSLT stylesheet:
 11 = An XSLT stylesheet does not have an XML mimetype:
 12 = An XSLT stylesheet directly or indirectly imports or includes itself:
 13 = An XPath function was called with the wrong number of arguments.
 14 = An unknown XPath extension function was called.
 15 = XPath parse failure: ')' expected:
 16 = XPath parse failure: invalid axis:
 17 = XPath parse failure: Name or Nodetype test expected:
 18 = XPath parse failure: ']' expected:
--- a/intl/uconv/public/nsIUnicodeEncoder.h
+++ b/intl/uconv/public/nsIUnicodeEncoder.h
@@ -149,17 +149,17 @@ public:
    * for the machine on which the converter is running on.
    * - For output, if the converter cares (that depends of the charset, for 
    * example a singlebyte will ignore the byte ordering) it should assume 
    * network order. If necessary and requested, we can add a method 
    * SetOutputByteOrder() so that the reverse order can be used, too. That 
    * method would have as default the assumed network order.
    *
    * For the last converted char, even if there is not enough output 
-   * space, a partial ouput must be done until all available space will be 
+   * space, a partial output must be done until all available space will be 
    * used. The rest of the output should be buffered until more space becomes
    * available. But this is not also true about the error handling method!!!
    * So be very, very careful...
    *
    * @param aSrc        [IN] the source data buffer
    * @param aSrcLength  [IN/OUT] the length of source data buffer; after
    *                    conversion will contain the number of Unicode 
    *                    characters read
--- a/intl/uconv/util/uscan.c
+++ b/intl/uconv/util/uscan.c
@@ -659,17 +659,17 @@ PRIVATE PRBool uCheckAndScanJohabHangul(
                                         PRInt32*    state,
                                         unsigned char  *in,
                                         PRUint16    *out,
                                         PRUint32     inbuflen,
                                         PRUint32*    inscanlen
                                         )
 {
 /* since we don't have code to convert Johab to Unicode right now     *
-  * make this part of code #if 0 to save space untill we fully test it */
+  * make this part of code #if 0 to save space until we fully test it */
   if(inbuflen < 2)
     return PR_FALSE;
   else {
   /*
   * See Table 4-45 Johab Encoding's Five-Bit Binary Patterns in page 183
   * of "CJKV Information Processing" for details
     */
     static const PRUint8 lMap[32]={ /* totaly 19  */
--- a/intl/unicharutil/note.txt
+++ b/intl/unicharutil/note.txt
@@ -5,17 +5,17 @@ 2. Currently, the implementation of the 
    UCData package develped by Mark Leisher <mleisher@crl.nmsu.edu>. 
    I have not check in the package into the mozilla tree yet. You can get 
    the package from 
      ftp://crl.nmsu.edu/CLR/multiling/unicode/ucdata.tar.gz
    or 
      ftp://crl.nmsu.edu/CLR/multiling/unicode/ucdata.zip
 
    After you get the package, you need to put those file into different 
-   place under Mozilla tree untill we check them in.
+   place under Mozilla tree until we check them in.
 
    a. put ucdata.c and ucdata.h into mozilla/modules/unicharutil/src
    b. put MUTTUCData.txt and ucgendat.c into mozilla/modules/unicharutil/tools
  
    You also need the Unicode data base from Unicode ftp site
      ftp://ftp.unicode.org/Public/UNIDATA/UnicodeData-Latest.txt
 
    Put it under mozilla/modules/unicharutil/tools
--- a/js/jsd/jsd.h
+++ b/js/jsd/jsd.h
@@ -46,17 +46,17 @@
 * NOTE: This is a *private* header file and should only be included by
 * the sources in js/jsd. Defining EXPORT_JSD_API in an outside module
 * using jsd would be bad.
 */
 #define EXPORT_JSD_API 1 /* if used, must be set before include of jsdebug.h */
 
 /*
 * These can be controled by the makefile, but this allows a place to set
-* the values always used in the mozilla client, but perhaps done differnetly
+* the values always used in the mozilla client, but perhaps done differently
 * in other embeddings.
 */
 #ifdef MOZILLA_CLIENT
 #define JSD_THREADSAFE 1
 /* define JSD_HAS_DANGEROUS_THREAD 1 */
 #define JSD_USE_NSPR_LOCKS 1
 #endif /* MOZILLA_CLIENT */
 
--- a/js/src/editline/README
+++ b/js/src/editline/README
@@ -42,17 +42,17 @@ changes over that version include:
 	Faster.
 	Is eight-bit clean (thanks to brendan@cs.widener.edu)
 	Written in K&R C, but ANSI compliant (gcc all warnings)
 	Propagates EOF properly; rc trip test now passes
 	Doesn't need or use or provide memmove.
 	More robust
 	Calling sequence changed to be compatible with readline.
 	Test program, new manpage, better configuration
-	More system-independant; includes Unix and OS-9 support.
+	More system-independent; includes Unix and OS-9 support.
 
 This contains some changes since the posting to comp.sources.misc:
 	Bugfix for completion on absolute pathnames.
 	Better handling of M-n versus showing raw 8bit chars.
 	Better signal handling.
 	Now supports termios/termio/sgttyb ioctl's.
 	Add M-m command to toggle how 8bit data is displayed.
 
--- a/js/src/jspubtd.h
+++ b/js/src/jspubtd.h
@@ -376,17 +376,17 @@ typedef void
 
 extern JSMarkOp js_WrongTypeForClassTracer;
 
 #else
 # define JS_CLASS_TRACE(method) ((JSMarkOp)(method))
 #endif
 
 /*
- * Tracer callback, called for each traceable thing directly refrenced by a
+ * Tracer callback, called for each traceable thing directly referenced by a
  * particular object or runtime structure. It is the callback responsibility
  * to ensure the traversal of the full object graph via calling eventually
  * JS_TraceChildren on the passed thing. In this case the callback must be
  * prepared to deal with cycles in the traversal graph.
  *
  * kind argument is one of JSTRACE_OBJECT, JSTRACE_DOUBLE, JSTRACE_STRING or
  * a tag denoting internal implementation-specific traversal kind. In the
  * latter case the only operations on thing that the callback can do is to call
--- a/js/src/tests/e4x/XML/13.4.4.25.js
+++ b/js/src/tests/e4x/XML/13.4.4.25.js
@@ -49,14 +49,14 @@ TEST(1, true, XML.prototype.hasOwnProper
 x =
 <alpha attr1="value1">
     <bravo>one</bravo>
 </alpha>;
 
 TEST(2, "element", x.bravo.nodeKind());
 TEST(3, "attribute", x.@attr1.nodeKind());
 
-// Non-existant node type is text
+// Nonexistent node type is text
 x = new XML();
 TEST(4, "text", x.nodeKind());
 TEST(5, "text", XML.prototype.nodeKind());
 
 END();
\ No newline at end of file
--- a/js/src/tests/ecma/Date/15.9.4.2.js
+++ b/js/src/tests/ecma/Date/15.9.4.2.js
@@ -58,17 +58,17 @@ gTestfile = '15.9.4.2.js';
    be equal:
 
    value                       tested in function:
    x.valueOf()                 test_value()
    Date.parse(x.toString())    test_tostring()
    Date.parse(x.toGMTString()) test_togmt()
 
    Date.parse(x.toLocaleString()) is not required to
-   produce the same number value as the preceeding three
+   produce the same number value as the preceding three
    expressions.  in general the value produced by
    Date.parse is implementation dependent when given any
    string value that could not be produced in that
    implementation by the toString or toGMTString method.
 
    value                           tested in function:
    Date.parse( x.toLocaleString()) test_tolocale()
 
--- a/js/src/tests/ecma/FunctionObjects/15.3.1.1-3.js
+++ b/js/src/tests/ecma/FunctionObjects/15.3.1.1-3.js
@@ -40,17 +40,17 @@ gTestfile = '15.3.1.1-3.js';
 
 /**
    File Name:          15.3.1.1-3.js
    ECMA Section:       15.3.1.1 The Function Constructor Called as a Function
 
    new Function(p1, p2, ..., pn, body )
 
    Description:        The last argument specifies the body (executable code)
-   of a function; any preceeding arguments sepcify formal
+   of a function; any preceding arguments sepcify formal
    parameters.
 
    See the text for description of this section.
 
    This test examples from the specification.
 
    Author:             christine@netscape.com
    Date:               28 october 1997
--- a/js/src/tests/ecma/FunctionObjects/15.3.2.1-1.js
+++ b/js/src/tests/ecma/FunctionObjects/15.3.2.1-1.js
@@ -39,17 +39,17 @@
 gTestfile = '15.3.2.1-1.js';
 
 /**
    File Name:          15.3.2.1.js
    ECMA Section:       15.3.2.1 The Function Constructor
    new Function(p1, p2, ..., pn, body )
 
    Description:        The last argument specifies the body (executable code)
-   of a function; any preceeding arguments sepcify formal
+   of a function; any preceding arguments sepcify formal
    parameters.
 
    See the text for description of this section.
 
    This test examples from the specification.
 
    Author:             christine@netscape.com
    Date:               28 october 1997
--- a/js/src/tests/ecma/FunctionObjects/15.3.2.1-3.js
+++ b/js/src/tests/ecma/FunctionObjects/15.3.2.1-3.js
@@ -39,17 +39,17 @@
 gTestfile = '15.3.2.1-3.js';
 
 /**
    File Name:          15.3.2.1-3.js
    ECMA Section:       15.3.2.1 The Function Constructor
    new Function(p1, p2, ..., pn, body )
 
    Description:        The last argument specifies the body (executable code)
-   of a function; any preceeding arguments sepcify formal
+   of a function; any preceding arguments sepcify formal
    parameters.
 
    See the text for description of this section.
 
    This test examples from the specification.
 
    Author:             christine@netscape.com
    Date:               28 october 1997
--- a/js/src/tests/ecma/extensions/15.3.2.1-1.js
+++ b/js/src/tests/ecma/extensions/15.3.2.1-1.js
@@ -39,17 +39,17 @@
 gTestfile = '15.3.2.1-1.js';
 
 /**
    File Name:          15.3.2.1.js
    ECMA Section:       15.3.2.1 The Function Constructor
    new Function(p1, p2, ..., pn, body )
 
    Description:        The last argument specifies the body (executable code)
-   of a function; any preceeding arguments sepcify formal
+   of a function; any preceding arguments sepcify formal
    parameters.
 
    See the text for description of this section.
 
    This test examples from the specification.
 
    Author:             christine@netscape.com
    Date:               28 october 1997
--- a/js/src/tests/js1_5/GC/regress-203278-3.js
+++ b/js/src/tests/js1_5/GC/regress-203278-3.js
@@ -41,17 +41,17 @@ var gTestfile = 'regress-203278-3.js';
 var BUGNUMBER = 203278;
 var summary = 'Don\'t crash in recursive js_MarkGCThing';
 var actual = 'FAIL';
 var expect = 'PASS';
 
 printBugNumber(BUGNUMBER);
 printStatus (summary);
 
-// Prepare  array a to cause O(a.length^2) bahaviour in the current
+// Prepare  array a to cause O(a.length^2) behaviour in the current
 // DeutschSchorrWaite implementation
 
 var a = new Array(1000 * 100);
 
 var i = a.length;
 while (i-- != 0)
 {
   a[i] = {};
--- a/js/src/tests/js1_5/extensions/regress-313763.js
+++ b/js/src/tests/js1_5/extensions/regress-313763.js
@@ -46,17 +46,17 @@ printBugNumber(BUGNUMBER);
 printStatus (summary);
 printStatus ('This bug requires TOO_MUCH_GC');
 
 var N = 0x80000002;
 var array = Array(N);
 array[N - 1] = 1;
 array[N - 2] = 2;
 
-// Set getter not to wait untill engine loops through 2^31 holes in the array.
+// Set getter not to wait until engine loops through 2^31 holes in the array.
 var LOOP_TERMINATOR = "stop_long_loop";
 array.__defineGetter__(N - 2, function() {
 			 throw "stop_long_loop";
 		       });
 
 var prepared_string = String(1);
 array.__defineGetter__(N - 1, function() {
 			 var tmp = prepared_string;
--- a/js/src/tests/js1_7/extensions/regress-346021.js
+++ b/js/src/tests/js1_7/extensions/regress-346021.js
@@ -33,17 +33,17 @@
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 var gTestfile = 'regress-346021.js';
 //-----------------------------------------------------------------------------
 var BUGNUMBER = 346021;
-var summary = 'Implmenting __iterator__ as generator';
+var summary = 'Implementing __iterator__ as generator';
 var actual = '';
 var expect = '';
 
 
 //-----------------------------------------------------------------------------
 test();
 //-----------------------------------------------------------------------------
 
--- a/js/src/tests/jsDriver.pl
+++ b/js/src/tests/jsDriver.pl
@@ -201,17 +201,17 @@ sub execute_tests {
         # user selected [Q]uit from ^C handler.
         if ($user_exit) {
             return;
         }
 
         $current_test = $test;
 
         # Append the shell.js files to the shell_command if they're there.
-        # (only check for their existance if the suite or test_dir has changed
+        # (only check for their existence if the suite or test_dir has changed
         # since the last time we looked.)
         if ($last_suite ne $suite || $last_test_dir ne $test_dir) {
             $shell_command = &xp_path($engine_command);
 
             $path = &xp_path($opt_suite_path ."shell.js");
             if (-f $path) {
                 $shell_command = &append_file_to_command($shell_command,
                                                          $path);
--- a/js/src/tests/spidermonkey-n-1.8.0.tests
+++ b/js/src/tests/spidermonkey-n-1.8.0.tests
@@ -7,17 +7,17 @@ js1_2/function/function-001-n.js
 js1_3/Script/function-001-n.js
 js1_3/regress/function-001-n.js
 #
 # WONTFIX bug 119719
 #
 js1_5/Regress/regress-119719.js
 #
 # Spidermonkey now defaults lineNumber and fileName
-# to the location and file where the exception occured.
+# to the location and file where the exception occurred.
 # exclude original test which assumes the defaults are
 # 0 and ''
 #
 js1_5/extensions/regress-50447.js
 #
 # Invalid bug
 #
 e4x/Regress/regress-278112.js
--- a/js/src/tests/spidermonkey-n-1.8.1.tests
+++ b/js/src/tests/spidermonkey-n-1.8.1.tests
@@ -7,17 +7,17 @@ js1_2/function/function-001-n.js
 js1_3/Script/function-001-n.js
 js1_3/regress/function-001-n.js
 #
 # WONTFIX bug 119719
 #
 js1_5/Regress/regress-119719.js
 #
 # Spidermonkey now defaults lineNumber and fileName
-# to the location and file where the exception occured.
+# to the location and file where the exception occurred.
 # exclude original test which assumes the defaults are
 # 0 and ''
 #
 js1_5/extensions/regress-50447.js
 #
 # Invalid bug
 #
 e4x/Regress/regress-278112.js
--- a/js/src/tests/spidermonkey-n-1.9.0.tests
+++ b/js/src/tests/spidermonkey-n-1.9.0.tests
@@ -6,17 +6,17 @@ js1_2/function/function-001-n.js
 js1_3/Script/function-001-n.js
 js1_3/regress/function-001-n.js
 #
 # WONTFIX bug 119719
 #
 js1_5/Regress/regress-119719.js
 #
 # Spidermonkey now defaults lineNumber and fileName
-# to the location and file where the exception occured.
+# to the location and file where the exception occurred.
 # exclude original test which assumes the defaults are
 # 0 and ''
 #
 js1_5/extensions/regress-50447.js
 #
 # Invalid bug
 #
 e4x/Regress/regress-278112.js
--- a/js/src/tests/spidermonkey-n-1.9.1.tests
+++ b/js/src/tests/spidermonkey-n-1.9.1.tests
@@ -6,17 +6,17 @@ js1_2/function/function-001-n.js
 js1_3/Script/function-001-n.js
 js1_3/regress/function-001-n.js
 #
 # WONTFIX bug 119719
 #
 js1_5/Regress/regress-119719.js
 #
 # Spidermonkey now defaults lineNumber and fileName
-# to the location and file where the exception occured.
+# to the location and file where the exception occurred.
 # exclude original test which assumes the defaults are
 # 0 and ''
 #
 js1_5/extensions/regress-50447.js
 #
 # Invalid bug
 #
 e4x/Regress/regress-278112.js
--- a/js/src/tests/spidermonkey-n-1.9.2.tests
+++ b/js/src/tests/spidermonkey-n-1.9.2.tests
@@ -6,17 +6,17 @@ js1_2/function/function-001-n.js
 js1_3/Script/function-001-n.js
 js1_3/regress/function-001-n.js
 #
 # WONTFIX bug 119719
 #
 js1_5/Regress/regress-119719.js
 #
 # Spidermonkey now defaults lineNumber and fileName
-# to the location and file where the exception occured.
+# to the location and file where the exception occurred.
 # exclude original test which assumes the defaults are
 # 0 and ''
 #
 js1_5/extensions/regress-50447.js
 #
 # Invalid bug
 #
 e4x/Regress/regress-278112.js
--- a/js/src/tests/spidermonkey-n-1.9.3.tests
+++ b/js/src/tests/spidermonkey-n-1.9.3.tests
@@ -6,17 +6,17 @@ js1_2/function/function-001-n.js
 js1_3/Script/function-001-n.js
 js1_3/regress/function-001-n.js
 #
 # WONTFIX bug 119719
 #
 js1_5/Regress/regress-119719.js
 #
 # Spidermonkey now defaults lineNumber and fileName
-# to the location and file where the exception occured.
+# to the location and file where the exception occurred.
 # exclude original test which assumes the defaults are
 # 0 and ''
 #
 js1_5/extensions/regress-50447.js
 #
 # Invalid bug
 #
 e4x/Regress/regress-278112.js
--- a/js/src/tests/spidermonkey-n.tests
+++ b/js/src/tests/spidermonkey-n.tests
@@ -6,17 +6,17 @@ js1_2/function/function-001-n.js
 js1_3/Script/function-001-n.js
 js1_3/regress/function-001-n.js
 #
 # WONTFIX bug 119719
 #
 js1_5/Regress/regress-119719.js
 #
 # Spidermonkey now defaults lineNumber and fileName
-# to the location and file where the exception occured.
+# to the location and file where the exception occurred.
 # exclude original test which assumes the defaults are
 # 0 and ''
 #
 js1_5/extensions/regress-50447.js
 #
 # Invalid bug
 #
 e4x/Regress/regress-278112.js
--- a/js/src/xpconnect/crashtests/193710.html
+++ b/js/src/xpconnect/crashtests/193710.html
@@ -1,11 +1,11 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
   <script type="text/javascript">window.onerror=new Function("return True")</script>
-  <script type="text/javascript" src="inexistant.js"></script>
+  <script type="text/javascript" src="nonexistent.js"></script>
 </head>
 
 <body></body>
 
 </html>
 
--- a/js/src/xpconnect/src/XPCChromeObjectWrapper.cpp
+++ b/js/src/xpconnect/src/XPCChromeObjectWrapper.cpp
@@ -336,17 +336,17 @@ GetWrappedJSObject(JSContext *cx, JSObje
     }
 
     return obj;
   }
 
   return xclasp->wrappedObject(cx, obj);
 }
 
-// Get the (possibly non-existant) COW off of an object
+// Get the (possibly nonexistent) COW off of an object
 // TODO Move to XPCWrapper and share with other wrappers.
 static inline
 JSObject *
 GetWrapper(JSObject *obj)
 {
   while (obj->getClass() != &COWClass.base) {
     obj = obj->getProto();
     if (!obj) {
--- a/js/src/xpconnect/src/XPCCrossOriginWrapper.cpp
+++ b/js/src/xpconnect/src/XPCCrossOriginWrapper.cpp
@@ -115,17 +115,17 @@ static inline
 JSBool
 ThrowException(nsresult ex, JSContext *cx)
 {
   XPCWrapper::DoThrowException(ex, cx);
 
   return JS_FALSE;
 }
 
-// Get the (possibly non-existant) XOW off of an object
+// Get the (possibly nonexistent) XOW off of an object
 static inline
 JSObject *
 GetWrapper(JSObject *obj)
 {
   while (obj->getClass() != &XPCCrossOriginWrapper::XOWClass.base) {
     obj = obj->getProto();
     if (!obj) {
       break;
--- a/js/src/xpconnect/src/XPCDispObject.cpp
+++ b/js/src/xpconnect/src/XPCDispObject.cpp
@@ -241,17 +241,17 @@ JSBool XPCDispObject::Dispatch(XPCCallCo
         {
             if(!XPCDispConvert::COMToJS(ccx, dispResult, val, err))
             {
                 ThrowBadParam(err, 0, ccx);
             }
             *retval = val;
         }
     }
-    // Set the result and throw the error if one occured
+    // Set the result and throw the error if one occurred
     ccx.GetXPCContext()->SetLastResult(invokeResult);
 
     if(NS_FAILED(invokeResult))
     {
         XPCThrower::ThrowCOMError(ccx, invokeResult, NS_ERROR_XPC_COM_ERROR, 
                                   invokeResult == DISP_E_EXCEPTION ? 
                                       &exception : nsnull);
         return JS_FALSE;
--- a/js/src/xpconnect/src/XPCSystemOnlyWrapper.cpp
+++ b/js/src/xpconnect/src/XPCSystemOnlyWrapper.cpp
@@ -276,17 +276,17 @@ GetWrappedJSObject(JSContext *cx, JSObje
   JSExtendedClass *xclasp = (JSExtendedClass *)clasp;
   if (!xclasp->wrappedObject) {
     return obj;
   }
 
   return xclasp->wrappedObject(cx, obj);
 }
 
-// Get the (possibly non-existant) SOW off of an object
+// Get the (possibly nonexistent) SOW off of an object
 static inline
 JSObject *
 GetWrapper(JSObject *obj)
 {
   while (obj->getClass() != &SOWClass.base) {
     obj = obj->getProto();
     if (!obj) {
       break;
--- a/js/src/xpconnect/src/xpc.msg
+++ b/js/src/xpconnect/src/xpc.msg
@@ -158,17 +158,17 @@ XPC_MSG_DEF(NS_ERROR_FILE_ACCESS_DENIED 
 /* added from nsError.h on Sept 6 2001... */
 
 XPC_MSG_DEF(NS_ERROR_CANNOT_CONVERT_DATA            , "Data conversion error")
 XPC_MSG_DEF(NS_ERROR_OBJECT_IS_IMMUTABLE            , "Can not modify immutable data container")
 XPC_MSG_DEF(NS_ERROR_LOSS_OF_SIGNIFICANT_DATA       , "Data conversion failed because significant data would be lost")
 XPC_MSG_DEF(NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA   , "Data conversion succeeded but data was rounded to fit")
 
 #ifdef XPC_IDISPATCH_SUPPORT
-XPC_MSG_DEF(NS_ERROR_XPC_COM_UNKNOWN                , "Unknown COM error occured")
+XPC_MSG_DEF(NS_ERROR_XPC_COM_UNKNOWN                , "Unknown COM error occurred")
 XPC_MSG_DEF(NS_ERROR_XPC_COM_ERROR                  , "COM Error")
 XPC_MSG_DEF(NS_ERROR_XPC_COM_INVALID_CLASS_ID       , "Invalid class ID")
 XPC_MSG_DEF(NS_ERROR_XPC_COM_CREATE_FAILED          , "Unable to create an instance of the desired COM class")
 XPC_MSG_DEF(NS_ERROR_XPC_IDISPATCH_NOT_ENABLED      , "IDispatch support is not enabled")
 #endif
 
 /* network related codes (from nsNetError.h) */
 
--- a/js/src/xpconnect/src/xpcwrappednative.cpp
+++ b/js/src/xpconnect/src/xpcwrappednative.cpp
@@ -410,17 +410,17 @@ XPCWrappedNative::GetNewOrUsed(XPCCallCo
 #endif
 
     XPCNativeScriptableCreateInfo sciProto;
     XPCNativeScriptableCreateInfo sci;
 
     // Gather scriptable create info if we are wrapping something
     // other than an nsIClassInfo object. We need to not do this for
     // nsIClassInfo objects because often nsIClassInfo implementations
-    // are also nsIXPCScriptable helper implmentations, but the helper
+    // are also nsIXPCScriptable helper implementations, but the helper
     // code is obviously intended for the implementation of the class
     // described by the nsIClassInfo, not for the class info object
     // itself.
     const XPCNativeScriptableCreateInfo& sciWrapper =
         isClassInfo ? sci :
         GatherScriptableCreateInfo(identity, info, sciProto, sci);
 
     JSObject* parent = Scope->GetGlobalJSObject();
--- a/js/src/xpconnect/src/xpcwrappednativejsops.cpp
+++ b/js/src/xpconnect/src/xpcwrappednativejsops.cpp
@@ -185,17 +185,17 @@ XPC_WN_Shared_ToSource(JSContext *cx, JS
 // A "double wrapped object" is a user JSObject that has been wrapped as a
 // wrappedJS in order to be used by native code and then re-wrapped by a
 // wrappedNative wrapper to be used by JS code. One might think of it as:
 //    wrappedNative(wrappedJS(underlying_JSObject))
 // This is done (as opposed to just unwrapping the wrapped JS and automatically
 // returning the underlying JSObject) so that JS callers will see what looks
 // Like any other xpcom object - and be limited to use its interfaces.
 //
-// See the comment preceeding nsIXPCWrappedJSObjectGetter in nsIXPConnect.idl.
+// See the comment preceding nsIXPCWrappedJSObjectGetter in nsIXPConnect.idl.
 
 static JSObject*
 GetDoubleWrappedJSObject(XPCCallContext& ccx, XPCWrappedNative* wrapper)
 {
     JSObject* obj = nsnull;
     nsCOMPtr<nsIXPConnectWrappedJS>
         underware = do_QueryInterface(wrapper->GetIdentityObject());
     if(underware)
--- a/js/src/xpconnect/tests/idispatch/Tests/WrappedCOM/General/XPCIDispatchInstantiations.js
+++ b/js/src/xpconnect/tests/idispatch/Tests/WrappedCOM/General/XPCIDispatchInstantiations.js
@@ -84,39 +84,39 @@ function test()
         printStatus("Instantiation Tests - " + objectsDesc.length + " objects to test");
         for (index = 0; index < objectsDesc.length; ++index)
         {
             compInfo = objectsDesc[index];
             printStatus("Testing " + compInfo.name);
             testInstantiate(compInfo.name, compInfo.cid, compInfo.scriptable);
             testInstantiate(compInfo.name, compInfo.progid, compInfo.scriptable);
         }
-        // Test a non-existant COM object
+        // Test a nonexistent COM object
         var obj;
         try
         {
-            obj = COMObject("dwbnonexistantobject");
-            printFailure("var obj = COMObject('dwbnonexistantobject'); did not throw an exception");
+            obj = COMObject("dwbnonexistentobject");
+            printFailure("var obj = COMObject('dwbnonexistentobject'); did not throw an exception");
         }
         catch (e)
         {
         }
         try
         {
-            obj = COMObject("dwbnonexistantobject");
-            printFailure("obj = COMObject('dwbnonexistantobject'); did not throw an exception");
+            obj = COMObject("dwbnonexistentobject");
+            printFailure("obj = COMObject('dwbnonexistentobject'); did not throw an exception");
         }
         catch (e)
         {
         }
         printStatus("Enumeration Tests - testing " + objectsDesc.length + " objects");
         for (var index = 0; index < objectsDesc.length; ++index)
         {
             printStatus("Enumerating " + objectsDesc[index].name);
             testEnumeration(objectsDesc[index]);
         }
 
     } 
     catch (e)
     {
-        reportFailure("Unhandled exception occured:" + e.toString());
+        reportFailure("Unhandled exception occurred:" + e.toString());
     }
 }
--- a/js/src/xpconnect/tests/idispatch/Tests/jsDriver.pl
+++ b/js/src/xpconnect/tests/idispatch/Tests/jsDriver.pl
@@ -163,17 +163,17 @@ sub execute_tests {
         my $status_lines;
 
         # user selected [Q]uit from ^C handler.
         if ($user_exit) {
             return;
         }
 
         # Append the shell.js files to the shell_command if they're there.
-        # (only check for their existance if the suite or test_dir has changed
+        # (only check for their existence if the suite or test_dir has changed
         # since the last time we looked.)
         if ($last_suite ne $suite || $last_test_dir ne $test_dir) {
             $shell_command = &xp_path($engine_command);
 
             $path = &xp_path($opt_suite_path . $suite . "/shell.js");
             if (-f $path) {
                 $shell_command .= $file_param . $path;
             }
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -9138,17 +9138,17 @@ nsCSSFrameConstructor::RecreateFramesFor
       nsIFrame *newFrame = aContent->GetPrimaryFrame();
       changeType = newFrame ? nsIAccessibilityService::FRAME_SIGNIFICANT_CHANGE :
                               nsIAccessibilityService::FRAME_HIDE;
     }
     else {
       changeType = nsIAccessibilityService::FRAME_SHOW;
     }
 
-    // A significant enough change occured that this part
+    // A significant enough change occurred that this part
     // of the accessible tree is no longer valid.
     nsCOMPtr<nsIAccessibilityService> accService = 
       do_GetService("@mozilla.org/accessibilityService;1");
     if (accService) {
       accService->InvalidateSubtreeFor(mPresShell, aContent, changeType);
     }
   }
 #endif
--- a/layout/base/nsFrameManager.cpp
+++ b/layout/base/nsFrameManager.cpp
@@ -1303,17 +1303,17 @@ nsFrameManager::ReResolveStyleContext(ns
       }
     }
 
     PRBool fireAccessibilityEvents = aFireAccessibilityEvents;
 #ifdef ACCESSIBILITY
     if (fireAccessibilityEvents && mPresShell->IsAccessibilityActive() &&
         aFrame->GetStyleVisibility()->IsVisible() != isVisible &&
         !aFrame->GetPrevContinuation()) {
-      // A significant enough change occured that this part
+      // A significant enough change occurred that this part
       // of the accessible tree is no longer valid. Fire event for primary
       // frames only and if it wasn't fired for parent frame already.
 
       // XXX: bug 355521. Visibility does not affect descendents with
       // visibility set. Work on a separate, accurate mechanism for dealing with
       // visibility changes.
       nsCOMPtr<nsIAccessibilityService> accService = 
         do_GetService("@mozilla.org/accessibilityService;1");
--- a/layout/base/nsPresContext.h
+++ b/layout/base/nsPresContext.h
@@ -1116,17 +1116,17 @@ protected:
 
   // Is the current mUserFontSet valid?
   unsigned              mUserFontSetDirty : 1;
   // Has GetUserFontSet() been called?
   unsigned              mGetUserFontSetCalled : 1;
   // Do we currently have an event posted to call FlushUserFontSet?
   unsigned              mPostedFlushUserFontSet : 1;
 
-  // resize reflow is supressed when the only change has been to zoom
+  // resize reflow is suppressed when the only change has been to zoom
   // the document rather than to change the document's dimensions
   unsigned              mSupressResizeReflow : 1;
 
   unsigned              mIsVisual : 1;
 
   unsigned              mProcessingRestyles : 1;
   unsigned              mProcessingAnimationStyleChange : 1;
 
--- a/layout/generic/nsIFrameUtil.h
+++ b/layout/generic/nsIFrameUtil.h
@@ -56,17 +56,17 @@ public:
   /**
    * Compare two regression data dumps. The return status will be NS_OK
    * if the trees compare favoribly, otherwise the return will indicate
    * NS_ERROR_FAILURE. Other return status's will indicate some other
    * type of failure. The files, aFile1 and aFile2 are closed before
    * returning. 
    * aRegressionOutput will vary output, 0 is full output, 1 is brief
    */
-  NS_IMETHOD CompareRegressionData(FILE* aFile1, FILE* aFile2,PRInt32 aRegressionOuput) = 0;
+  NS_IMETHOD CompareRegressionData(FILE* aFile1, FILE* aFile2,PRInt32 aRegressionOutput) = 0;
 
   /**
    * Display the regression dump data stored in aInputFile1 to
    * aOutputFile . The file is closed before returning. If the
    * regression data is in error somehow then NS_ERROR_FAILURE will be
    * returned.
    */
   NS_IMETHOD DumpRegressionData(FILE* aInputFile, FILE* aOutputFile) = 0;
--- a/layout/html/tests/block/bugs/5847.html
+++ b/layout/html/tests/block/bugs/5847.html
@@ -1,11 +1,11 @@
 <html>
 <head>
-<link rel="stylesheet" href="nonexistant_or_existant.css">
+<link rel="stylesheet" href="nonexistent_or_existent.css">
 <style type="text/css"></style>
 </head>
 <body>
   <table border="1">
     <tr><td>
             <script language="JavaScript"></script>
 1abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
 2abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
--- a/layout/mathml/nsMathMLChar.cpp
+++ b/layout/mathml/nsMathMLChar.cpp
@@ -392,17 +392,17 @@ nsGlyphTable::ElementAt(nsPresContext* a
       // See if an external font is needed for the code point.
       // Limit of 9 external fonts
       if (i+1 < length && value[i] == PRUnichar('@') &&
           value[i+1] >= PRUnichar('0') && value[i+1] <= PRUnichar('9')) {
         ++i;
         font = value[i] - '0';
         ++i;
         if (font >= mFontName.Length()) {
-          NS_ERROR("Non-existant font referenced in glyph table");
+          NS_ERROR("Nonexistent font referenced in glyph table");
           return kNullGlyph;
         }
         // The char cannot be handled if this font is not installed
         if (!mFontName[font].Length() || !CheckFontExistence(aPresContext, mFontName[font])) {
           return kNullGlyph;
         }
       }
       buffer.Append(code);
--- a/layout/svg/base/src/nsISVGChildFrame.h
+++ b/layout/svg/base/src/nsISVGChildFrame.h
@@ -93,17 +93,17 @@ public:
 
   // Set whether we should stop multiplying matrices when building up
   // the current transformation matrix at this frame.
   NS_IMETHOD SetMatrixPropagation(PRBool aPropagate)=0;
   virtual PRBool GetMatrixPropagation()=0;
 
   /**
    * Get this frame's contribution to the rect returned by a GetBBox() call
-   * that occured either on this element, or on one of its ancestors.
+   * that occurred either on this element, or on one of its ancestors.
    *
    * SVG defines an element's bbox to be the element's fill bounds in the
    * userspace established by that element. By allowing callers to pass in the
    * transform from the userspace established by this element to the userspace
    * established by an an ancestor, this method allows callers to obtain this
    * element's fill bounds in the userspace established by that ancestor
    * instead. In that case, since we return the bounds in a different userspace
    * (the ancestor's), the bounds we return are not this element's bbox, but
--- a/layout/svg/base/src/nsSVGEffects.h
+++ b/layout/svg/base/src/nsSVGEffects.h
@@ -301,17 +301,17 @@ public:
    * frame with observers and invalidate them instead.
    *
    * Note that this method is very different to e.g.
    * nsNodeUtils::AttributeChanged which walks up the content node tree (not
    * the frame tree) all the way to the root node (not stopping if it
    * encounters a non-container SVG node) invalidating all mutation observers
    * (not just nsSVGRenderingObservers) on all nodes along the way (not just
    * the first node it finds with observers). In other words, by doing all the
-   * things in parentheses in the preceeding sentence, this method uses
+   * things in parentheses in the preceding sentence, this method uses
    * knowledge about our implementation and what can be affected by SVG effects
    * to make invalidation relatively lightweight when an SVG effect changes.
    */
   static void InvalidateRenderingObservers(nsIFrame *aFrame);
   /**
    * This can be called on any frame. Only direct observers of this frame, if
    * any, are invalidated.
    */
--- a/layout/svg/crashtests/326495-1.svg
+++ b/layout/svg/crashtests/326495-1.svg
@@ -7,10 +7,10 @@
   function init()
   {
     document.getElementsByTagName("rect")[0].style.display = "-moz-inline-stack";
   }
   
   window.addEventListener("load", init, false);
   </script>
   
-  <rect requiredFeatures="http://www.w3.org/TR/SVG11/feature#SVG-nonexistant-feature"/>
+  <rect requiredFeatures="http://www.w3.org/TR/SVG11/feature#SVG-nonexistent-feature"/>
 </svg>
--- a/layout/tools/reftest/reftest-analyzer.xhtml
+++ b/layout/tools/reftest/reftest-analyzer.xhtml
@@ -33,17 +33,17 @@
    - and other provisions required by the LGPL or the GPL. If you do not delete
    - the provisions above, a recipient may use your version of this file under
    - the terms of any one of the MPL, the GPL or the LGPL.
    -
    - ***** END LICENSE BLOCK ***** -->
 <!--
 
 Features to add:
-* make the left and right parts of the viewer independantly scrollable
+* make the left and right parts of the viewer independently scrollable
 * make the test list filterable
 ** default to only showing unexpecteds
 * add other ways to highlight differences other than circling?
 * add zoom/pan to images
 * Add ability to load log via XMLHttpRequest (also triggered via URL param)
 * color the test list based on pass/fail and expected/unexpected/random/skip
 * ability to load multiple logs ?
 ** rename them by clicking on the name and editing
--- a/modules/libjar/zipwriter/src/StreamFunctions.cpp
+++ b/modules/libjar/zipwriter/src/StreamFunctions.cpp
@@ -57,17 +57,17 @@ NS_HIDDEN_(nsresult) ZW_ReadData(nsIInpu
         if (read == 0 && aCount > 0)
             return NS_ERROR_FAILURE;
     }
 
     return NS_OK;
 }
 
 /*
- * Fully writes the required amount of data. Keeps writing untill all the
+ * Fully writes the required amount of data. Keeps writing until all the
  * data is written or an error is hit.
  */
 NS_HIDDEN_(nsresult) ZW_WriteData(nsIOutputStream *aStream, const char *aBuffer,
                                   PRUint32 aCount)
 {
     while (aCount > 0) {
         PRUint32 written;
         nsresult rv = aStream->Write(aBuffer, aCount, &written);
--- a/modules/libpr0n/public/imgIRequest.idl
+++ b/modules/libpr0n/public/imgIRequest.idl
@@ -81,17 +81,17 @@ interface imgIRequest : nsIRequest
    * At least I think that's what it does. Regardless, there's
    * no reason for this flag to be public, and it should either
    * go away or become a private state flag within imgRequest.
    * Don't rely on it.
    *
    * STATUS_LOAD_COMPLETE: The data has been fully loaded
    * to memory, but not necessarily fully decoded.
    *
-   * STATUS_ERROR: An error occured loading the image.
+   * STATUS_ERROR: An error occurred loading the image.
    *
    * STATUS_FRAME_COMPLETE: The first frame has been
    * completely decoded.
    *
    * STATUS_DECODE_COMPLETE: The whole image has been decoded.
    */
   //@{
   const long STATUS_NONE             = 0x0;
--- a/modules/libpr0n/src/imgContainer.h
+++ b/modules/libpr0n/src/imgContainer.h
@@ -102,17 +102,17 @@
  * 3) Draw new image onto compositingFrame.
  * See comments in DoComposite() for more information and optimizations.
  *
  * @par
  * The rest of the imgContainer specific functions are used by DoComposite to
  * destroy the old frame and build the new one.
  *
  * @note
- * <li> "Mask", "Alpha", and "Alpha Level" are interchangable phrases in
+ * <li> "Mask", "Alpha", and "Alpha Level" are interchangeable phrases in
  * respects to imgContainer.
  *
  * @par
  * <li> GIFs never have more than a 1 bit alpha.
  * <li> APNGs may have a full alpha channel.
  *
  * @par
  * <li> Background color specified in GIF is ignored by web browsers.
--- a/modules/libpref/public/nsIPrefLocalizedString.idl
+++ b/modules/libpref/public/nsIPrefLocalizedString.idl
@@ -54,17 +54,17 @@
 
 [scriptable, uuid(ae419e24-1dd1-11b2-b39a-d3e5e7073802)]
 interface nsIPrefLocalizedString : nsISupports
 {
   /**
    * Provides access to string data stored in this property.
    *
    * @return NS_OK The operation succeeded.
-   * @return Other An error occured.
+   * @return Other An error occurred.
    */
   attribute wstring data;
 
   /**
    * Used to retrieve the contents of this object into a wide string.
    *
    * @return wstring The string containing the data stored within this object.
    */
--- a/modules/libpref/src/init/all.js
+++ b/modules/libpref/src/init/all.js
@@ -2708,17 +2708,17 @@ pref("helpers.private_mailcaptypes_file"
 
 pref("applications.telnet", "create /term /detach \"telnet %h %p\"");
 pref("applications.tn3270", "create /term /detach \"telnet /term=IBM-3278-5 %h %p\"");
 pref("applications.rlogin", "create /term /detach \"rlogin %h\"");
 pref("applications.rlogin_with_user", "create /term /detach \"rlogin %h -l %u\"");
 
 /* PostScript module specific (see unix.js for additional configuration details) */
 pref("print.postscript.print_command", "print /delete");
-/* Print module independant */
+/* Print module independent */
 pref("print.print_command", "print /delete");
 pref("print.print_color", false);
 
 pref("browser.cache.disk.capacity", 4096);
 pref("plugin.soname.list", "");
 
 # OpenVMS
 #endif
--- a/modules/libreg/src/nr_bufio.c
+++ b/modules/libreg/src/nr_bufio.c
@@ -709,17 +709,17 @@ static int _bufio_flushBuf( BufioFile* f
 }
 
 
 
 /*
 *  sets the file buffer size to bufsize, clearing the buffer in the process.
 *
 *  accepts bufsize of -1 to mean default buffer size, defined by BUFIO_BUFSIZE_DEFAULT
-*  returns new buffers size, or -1 if error occured
+*  returns new buffers size, or -1 if error occurred
 */
 
 int bufio_SetBufferSize(BufioFile* file, int bufsize)
 {
     char    *newBuffer;
     int     retVal = -1;
 
     PR_ASSERT(file);
--- a/modules/plugin/base/src/nsPluginsDirUtils.h
+++ b/modules/plugin/base/src/nsPluginsDirUtils.h
@@ -38,17 +38,17 @@
 #ifndef nsPluginsDirUtils_h___
 #define nsPluginsDirUtils_h___
 
 #include "nsPluginsDir.h"
 #include "nsTArray.h"
 #include "prmem.h"
 
 ///////////////////////////////////////////////////////////////////////////////
-// Ouput format from NPP_GetMIMEDescription: "...mime type[;version]:[extension]:[desecription];..."
+// Output format from NPP_GetMIMEDescription: "...mime type[;version]:[extension]:[desecription];..."
 // The ambiguity of mime description could cause the browser fail to parse the MIME types 
 // correctly.
 // E.g. "mime type::desecription;" // correct w/o ext 
 //      "mime type:desecription;"  // wrong w/o ext 
 //
 static nsresult
 ParsePluginMimeDescription(const char *mdesc, nsPluginInfo &info)
 {
--- a/modules/plugin/sdk/samples/basic/windows/plugin.cpp
+++ b/modules/plugin/sdk/samples/basic/windows/plugin.cpp
@@ -144,17 +144,17 @@ static LRESULT CALLBACK PluginWinProc(HW
 
         // get our plugin instance object and ask it for the version string
         nsPluginInstance *plugin = (nsPluginInstance *)GetWindowLongPtr(hWnd, GWLP_USERDATA);
         if (plugin) {
           const char * string = plugin->getVersion();
           DrawText(hdc, string, strlen(string), &rc, DT_SINGLELINE | DT_CENTER | DT_VCENTER);
         }
         else {
-          char string[] = "Error occured";
+          char string[] = "Error occurred";
           DrawText(hdc, string, strlen(string), &rc, DT_SINGLELINE | DT_CENTER | DT_VCENTER);
         }
 
         EndPaint(hWnd, &ps);
       }
       break;
     default:
       break;
--- a/modules/plugin/sdk/samples/npthread/windows/plugin.cpp
+++ b/modules/plugin/sdk/samples/npthread/windows/plugin.cpp
@@ -145,32 +145,32 @@ void nsPluginThread::shut()
     UnloadRealPlugin(pluginLibrary);
 }
 
 // NPP_ call translator
 DWORD nsPluginThread::callNPP(npapiAction aAction, DWORD aP1, DWORD aP2, 
                               DWORD aP3, DWORD aP4, DWORD aP5, 
                               DWORD aP6, DWORD aP7)
 {
-  // don't enter untill thread is ready
+  // don't enter until thread is ready
   while (isBusy()) {
     Sleep(0);
   }
 
   mP1 = aP1;
   mP2 = aP2;
   mP3 = aP3;
   mP4 = aP4;
   mP5 = aP5;
   mP6 = aP6;
   mP7 = aP7;
 
   doAction(aAction);
 
-  // don't return untill thread is ready
+  // don't return until thread is ready
   while (isBusy()) {
     Sleep(0);
   }
 
   return NPERR_NO_ERROR;
 }
 void nsPluginThread::dispatch()
 {
--- a/netwerk/base/public/nsASocketHandler.h
+++ b/netwerk/base/public/nsASocketHandler.h
@@ -78,17 +78,17 @@ public:
 
     //
     // called to service a socket
     // 
     // params:
     //   socketRef - socket identifier
     //   fd        - socket file descriptor
     //   outFlags  - value of PR_PollDesc::out_flags after PR_Poll returns
-    //               or -1 if a timeout occured
+    //               or -1 if a timeout occurred
     //
     virtual void OnSocketReady(PRFileDesc *fd, PRInt16 outFlags) = 0;
 
     //
     // called when a socket is no longer under the control of the socket
     // transport service.  the socket handler may close the socket at this
     // point.  after this call returns, the handler will no longer be owned
     // by the socket transport service.
--- a/netwerk/base/public/nsIURIChecker.idl
+++ b/netwerk/base/public/nsIURIChecker.idl
@@ -41,17 +41,17 @@
 
 interface nsIURI;
 interface nsIChannel;
 interface nsIRequestObserver;
 
 /**
  * nsIURIChecker
  *
- * The URI checker is a component that can be used to verify the existance
+ * The URI checker is a component that can be used to verify the existence
  * of a resource at the location specified by a given URI.  It will use
  * protocol specific methods to verify the URI (e.g., use of HEAD request
  * for HTTP URIs).
  */
 [scriptable, uuid(4660c1a1-be2d-4c78-9baf-c22984176c28)]
 interface nsIURIChecker : nsIRequest
 {
     /**
--- a/netwerk/base/public/nsNetError.h
+++ b/netwerk/base/public/nsNetError.h
@@ -68,17 +68,17 @@
 /**
  * The async request failed because it was aborted by some user action.
  */
 #define NS_BINDING_ABORTED \
     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 2)
 
 /**
  * The async request has been "redirected" to a different async request.
- * (e.g., an HTTP redirect occured).
+ * (e.g., an HTTP redirect occurred).
  *
  * This error code is used with load groups to notify the load group observer
  * when a request in the load group is redirected to another request.
  */
 #define NS_BINDING_REDIRECTED \
     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 3)
 
 /**
--- a/netwerk/base/src/nsInputStreamPump.cpp
+++ b/netwerk/base/src/nsInputStreamPump.cpp
@@ -557,17 +557,17 @@ nsInputStreamPump::OnStateTransfer()
     return STATE_STOP;
 }
 
 PRUint32
 nsInputStreamPump::OnStateStop()
 {
     LOG(("  OnStateStop [this=%x status=%x]\n", this, mStatus));
 
-    // if an error occured, we must be sure to pass the error onto the async
+    // if an error occurred, we must be sure to pass the error onto the async
     // stream.  in some cases, this is redundant, but since close is idempotent,
     // this is OK.  otherwise, be sure to honor the "close-when-done" option.
 
     if (NS_FAILED(mStatus))
         mAsyncStream->CloseWithStatus(mStatus);
     else if (mCloseWhenDone)
         mAsyncStream->Close();
 
--- a/netwerk/base/src/nsProtocolProxyService.cpp
+++ b/netwerk/base/src/nsProtocolProxyService.cpp
@@ -717,17 +717,17 @@ nsProtocolProxyService::DisableProxy(nsP
 
     PRUint32 dsec = SecondsSinceSessionStart();
 
     // Add timeout to interval (this is the time when the proxy can
     // be tried again).
     dsec += pi->mTimeout;
 
     // NOTE: The classic codebase would increase the timeout value
-    //       incrementally each time a subsequent failure occured.
+    //       incrementally each time a subsequent failure occurred.
     //       We could do the same, but it would require that we not
     //       remove proxy entries in IsProxyDisabled or otherwise
     //       change the way we are recording disabled proxies.
     //       Simpler is probably better for now, and at least the
     //       user can tune the timeout setting via preferences.
 
     LOG(("DisableProxy %s %d\n", key.get(), dsec));
 
--- a/netwerk/base/src/nsStandardURL.cpp
+++ b/netwerk/base/src/nsStandardURL.cpp
@@ -191,17 +191,17 @@ nsSegmentEncoder::EncodeSegmentCount(con
             // we have to encode this segment
             if (mEncoder || InitUnicodeEncoder()) {
                 NS_ConvertUTF8toUTF16 ucsBuf(Substring(str + pos, str + pos + len));
                 if (NS_SUCCEEDED(EncodeString(mEncoder, ucsBuf, encBuf))) {
                     str = encBuf.get();
                     pos = 0;
                     len = encBuf.Length();
                 }
-                // else some failure occured... assume UTF-8 is ok.
+                // else some failure occurred... assume UTF-8 is ok.
             }
         }
 
         // escape per RFC2396 unless UTF-8 and allowed by preferences
         PRInt16 escapeFlags = (gEscapeUTF8 || mEncoder) ? 0 : esc_OnlyASCII;
 
         PRUint32 initLen = result.Length();
 
--- a/netwerk/protocol/ftp/src/nsFtpControlConnection.h
+++ b/netwerk/protocol/ftp/src/nsFtpControlConnection.h
@@ -54,17 +54,17 @@
 class nsIProxyInfo;
 class nsITransportEventSink;
 
 class nsFtpControlConnectionListener : public nsISupports {
 public:
     /**
      * Called when a chunk of data arrives on the control connection.
      * @param data
-     *        The new data or null if an error occured.
+     *        The new data or null if an error occurred.
      * @param dataLen
      *        The data length in bytes.
      */
     virtual void OnControlDataAvailable(const char *data, PRUint32 dataLen) = 0;
 
     /**
      * Called when an error occurs on the control connection.
      * @param status
--- a/netwerk/protocol/http/src/nsHttpNTLMAuth.cpp
+++ b/netwerk/protocol/http/src/nsHttpNTLMAuth.cpp
@@ -206,17 +206,17 @@ CanUseDefaultCredentials(nsIHttpChannel 
     nsCOMPtr<nsIURI> uri;
     channel->GetURI(getter_AddRefs(uri));
     PRBool isTrustedHost = (uri && TestPref(uri, kTrustedURIs));
     LOG(("Default credentials allowed for host: %d\n", isTrustedHost));
     return isTrustedHost;
 }
 
 // Dummy class for session state object.  This class doesn't hold any data.
-// Instead we use its existance as a flag.  See ChallengeReceived.
+// Instead we use its existence as a flag.  See ChallengeReceived.
 class nsNTLMSessionState : public nsISupports
 {
 public:
     NS_DECL_ISUPPORTS
 };
 NS_IMPL_ISUPPORTS0(nsNTLMSessionState)
 
 //-----------------------------------------------------------------------------
--- a/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp
+++ b/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp
@@ -681,17 +681,17 @@ PRBool
 mozTXTToHTMLConv::StructPhraseHit(const PRUnichar * aInString, PRInt32 aInStringLength, PRBool col0,
      const PRUnichar* tagTXT, PRInt32 aTagTXTLen, 
      const char* tagHTML, const char* attributeHTML,
      nsString& aOutString, PRUint32& openTags)
 {
   /* We're searching for the following pattern:
      LT_DELIMITER - "*" - ALPHA -
      [ some text (maybe more "*"-pairs) - ALPHA ] "*" - LT_DELIMITER.
-     <strong> is only inserted, if existance of a pair could be verified
+     <strong> is only inserted, if existence of a pair could be verified
      We use the first opening/closing tag, if we can choose */
 
   const PRUnichar * newOffset = aInString;
   PRInt32 newLength = aInStringLength;
   if (!col0) // skip the first element?
   {
     newOffset = &aInString[1];
     newLength = aInStringLength - 1;
--- a/netwerk/wifi/src/nsWifiScannerMac.cpp
+++ b/netwerk/wifi/src/nsWifiScannerMac.cpp
@@ -50,17 +50,17 @@
 
 #include "nsIProxyObjectManager.h"
 #include "nsServiceManagerUtils.h"
 #include "nsComponentManagerUtils.h"
 #include "nsIMutableArray.h"
 
 // defined in osx_corewlan.mm
 // basically relaces accesspoints in the passed reference
-// it lives in a seperate file so that we can use objective c.
+// it lives in a separate file so that we can use objective c.
 extern nsresult GetAccessPointsFromWLAN(nsCOMArray<nsWifiAccessPoint> &accessPoints);
 
 nsresult
 nsWifiMonitor::DoScanWithCoreWLAN()
 {
   // Regularly get the access point data.
 
   nsCOMArray<nsWifiAccessPoint> lastAccessPoints;
--- a/parser/expat/lib/expat.h
+++ b/parser/expat/lib/expat.h
@@ -337,17 +337,17 @@ typedef void (XMLCALL *XML_EntityDeclHan
                               const XML_Char *publicId,
                               const XML_Char *notationName);
 
 XMLPARSEAPI(void)
 XML_SetEntityDeclHandler(XML_Parser parser,
                          XML_EntityDeclHandler handler);
 
 /* OBSOLETE -- OBSOLETE -- OBSOLETE
-   This handler has been superceded by the EntityDeclHandler above.
+   This handler has been superseded by the EntityDeclHandler above.
    It is provided here for backward compatibility.
 
    This is called for a declaration of an unparsed (NDATA) entity.
    The base argument is whatever was set by XML_SetBase. The
    entityName, systemId and notationName arguments will never be
    NULL. The other arguments may be.
 */
 typedef void (XMLCALL *XML_UnparsedEntityDeclHandler) (
--- a/parser/htmlparser/public/nsIHTMLContentSink.h
+++ b/parser/htmlparser/public/nsIHTMLContentSink.h
@@ -54,17 +54,17 @@
  * accessing any these, the parser will call the appropriate
  * OpennsIHTMLContentSink method: OpenHTML,OpenHead,OpenBody,OpenFrameSet;
  * likewise, the ClosensIHTMLContentSink version will be called when the
  * parser is done with a given section.
  *
  * IMPORTANT: The parser may Open each container more than
  * once! This is due to the irregular nature of HTML files.
  * For example, it is possible to encounter plain text at
- * the start of an HTML document (that preceeds the HTML tag).
+ * the start of an HTML document (that precedes the HTML tag).
  * Such text is treated as if it were part of the body.
  * In such cases, the parser will Open the body, pass the text-
  * node in and then Close the body. The body will likely be
  * re-Opened later when the actual <BODY> tag has been seen.
  *
  * Containers within the body are Opened and Closed
  * using the OpenContainer(...) and CloseContainer(...) calls.
  * It is assumed that the document or contentSink is 
--- a/parser/htmlparser/public/nsIParserNode.h
+++ b/parser/htmlparser/public/nsIParserNode.h
@@ -144,17 +144,17 @@ class nsIParserNode { // XXX Should be n
      */
     virtual PRInt32 TranslateToUnicodeStr(nsString& aString) const = 0;
 
 
     virtual void AddAttribute(CToken* aToken)=0;
 
     /**
      * This getter retrieves the line number from the input source where
-     * the token occured. Lines are interpreted as occuring between \n characters.
+     * the token occurred. Lines are interpreted as occurring between \n characters.
      * @update	gess7/24/98
      * @return  int containing the line number the token was found on
      */
     virtual PRInt32 GetSourceLineNumber(void) const =0;
 
     /**
      * This pair of methods allows us to set a generic bit (for arbitrary use)
      * on each node stored in the context.
--- a/parser/htmlparser/src/CNavDTD.cpp
+++ b/parser/htmlparser/src/CNavDTD.cpp
@@ -389,17 +389,17 @@ CNavDTD::DidBuildModel(nsresult anErrorC
       // Now let's disable style handling to save time when closing remaining
       // stack members.
       mFlags &= ~NS_DTD_FLAG_ENABLE_RESIDUAL_STYLE;
       while (mBodyContext->GetCount() > 0) { 
         result = CloseContainersTo(mBodyContext->Last(), PR_FALSE);
         NS_ENSURE_SUCCESS(result, result);
       } 
     } else {
-      // If you're here, then an error occured, but we still have nodes on the stack.
+      // If you're here, then an error occurred, but we still have nodes on the stack.
       // At a minimum, we should grab the nodes and recycle them.
       // Just to be correct, we'll also recycle the nodes.
       while (mBodyContext->GetCount() > 0) { 
         nsEntryStack* theChildStyles = 0;
         nsCParserNode* theNode = mBodyContext->Pop(theChildStyles);
         IF_DELETE(theChildStyles, &mNodeAllocator);
         IF_FREE(theNode, &mNodeAllocator);
       } 
@@ -1163,17 +1163,17 @@ CNavDTD::HandleOmittedTag(CToken* aToken
   }
 }
 
 /**
  *  This method gets called when a kegen token is found.
  *   
  *  @update  harishd 05/02/00
  *  @param   aNode -- CParserNode representing keygen
- *  @return  NS_OK if all went well; ERROR if error occured
+ *  @return  NS_OK if all went well; ERROR if error occurred
  */
 nsresult
 CNavDTD::HandleKeyGen(nsIParserNode* aNode)
 {
   nsresult result = NS_OK;
 
   nsCOMPtr<nsIFormProcessor> theFormProcessor =
            do_GetService(kFormProcessorCID, &result);
@@ -1554,17 +1554,17 @@ StripWSFollowingTag(eHTMLTags aChildTag,
  *  encountered in the parse process. If the end tag matches
  *  the start tag on the stack, then simply close it. Otherwise,
  *  we have a erroneous state condition. This can be because we
  *  have a close tag with no prior open tag (user error) or because
  *  we screwed something up in the parse process. I'm not sure
  *  yet how to tell the difference.
  *  
  *  @param   aToken -- next (start) token to be handled
- *  @return  PR_TRUE if all went well; PR_FALSE if error occured
+ *  @return  PR_TRUE if all went well; PR_FALSE if error occurred
  */
 nsresult
 CNavDTD::HandleEndToken(CToken* aToken)
 {
   NS_PRECONDITION(nsnull != aToken, kNullToken);
 
   nsresult    result = NS_OK;
   eHTMLTags   theChildTag = (eHTMLTags)aToken->GetTypeID();
@@ -1848,17 +1848,17 @@ CNavDTD::HandleSavedTokens(PRInt32 anInd
 
 
 /**
  *  This method gets called when an entity token has been 
  *  encountered in the parse process. 
  *  
  *  @update  gess 3/25/98
  *  @param   aToken -- next (start) token to be handled
- *  @return  PR_TRUE if all went well; PR_FALSE if error occured
+ *  @return  PR_TRUE if all went well; PR_FALSE if error occurred
  */
 nsresult
 CNavDTD::HandleEntityToken(CToken* aToken)
 {
   NS_PRECONDITION(nsnull != aToken, kNullToken);
 
   nsresult  result = NS_OK;
 
@@ -1899,17 +1899,17 @@ CNavDTD::HandleEntityToken(CToken* aToke
 /**
  *  This method gets called when a comment token has been 
  *  encountered in the parse process. After making sure
  *  we're somewhere in the body, we handle the comment
  *  in the same code that we use for text.
  *  
  *  @update  gess 3/25/98
  *  @param   aToken -- next (start) token to be handled
- *  @return  PR_TRUE if all went well; PR_FALSE if error occured
+ *  @return  PR_TRUE if all went well; PR_FALSE if error occurred
  */
 nsresult
 CNavDTD::HandleCommentToken(CToken* aToken)
 {
   NS_PRECONDITION(nsnull != aToken, kNullToken);
 
   nsCParserNode* theNode = mNodeAllocator.CreateNode(aToken, mTokenAllocator);
   NS_ENSURE_TRUE(theNode, NS_ERROR_OUT_OF_MEMORY);
@@ -1925,32 +1925,32 @@ CNavDTD::HandleCommentToken(CToken* aTok
 /**
  *  This method gets called when an attribute token has been
  *  encountered in the parse process. This is an error, since
  *  all attributes should have been accounted for in the prior
  *  start or end tokens
  *
  *  @update  gess 3/25/98
  *  @param   aToken -- next (start) token to be handled
- *  @return  PR_TRUE if all went well; PR_FALSE if error occured
+ *  @return  PR_TRUE if all went well; PR_FALSE if error occurred
  */
 nsresult
 CNavDTD::HandleAttributeToken(CToken* aToken)
 {
   NS_ERROR("attribute encountered -- this shouldn't happen.");
   return NS_OK;
 }
 
 /**
  *  This method gets called when an "instruction" token has been 
  *  encountered in the parse process. 
  *  
  *  @update  gess 3/25/98
  *  @param   aToken -- next (start) token to be handled
- *  @return  PR_TRUE if all went well; PR_FALSE if error occured
+ *  @return  PR_TRUE if all went well; PR_FALSE if error occurred
  */
 nsresult
 CNavDTD::HandleProcessingInstructionToken(CToken* aToken)
 {
   NS_PRECONDITION(nsnull != aToken, kNullToken);
 
   nsCParserNode* theNode = mNodeAllocator.CreateNode(aToken, mTokenAllocator);
   NS_ENSURE_TRUE(theNode, NS_ERROR_OUT_OF_MEMORY);
@@ -1963,17 +1963,17 @@ CNavDTD::HandleProcessingInstructionToke
 }
 
 /**
  *  This method gets called when a DOCTYPE token has been 
  *  encountered in the parse process. 
  *  
  *  @update  harishd 09/02/99
  *  @param   aToken -- The very first token to be handled
- *  @return  PR_TRUE if all went well; PR_FALSE if error occured
+ *  @return  PR_TRUE if all went well; PR_FALSE if error occurred
  */
 nsresult
 CNavDTD::HandleDocTypeDeclToken(CToken* aToken)
 {
   NS_PRECONDITION(nsnull != aToken, kNullToken);
 
   CDoctypeDeclToken* theToken = static_cast<CDoctypeDeclToken*>(aToken);
   nsAutoString docTypeStr(theToken->GetStringValue());
--- a/parser/htmlparser/src/nsParserNode.cpp
+++ b/parser/htmlparser/src/nsParserNode.cpp
@@ -243,17 +243,17 @@ nsCParserNode::TranslateToUnicodeStr(nsS
   if (eToken_entity == mToken->GetTokenType()) {
     return ((CEntityToken*)mToken)->TranslateToUnicodeStr(aString);
   }
   return -1;
 }
 
 /**
  * This getter retrieves the line number from the input source where
- * the token occured. Lines are interpreted as occuring between \n characters.
+ * the token occurred. Lines are interpreted as occurring between \n characters.
  * @update	gess7/24/98
  * @return  int containing the line number the token was found on
  */
 PRInt32
 nsCParserNode::GetSourceLineNumber(void) const {
   return mToken ? mToken->GetLineNumber() : 0;
 }
 
--- a/parser/htmlparser/src/nsParserNode.h
+++ b/parser/htmlparser/src/nsParserNode.h
@@ -222,17 +222,17 @@ class nsCParserNode :  public nsIParserN
      * @update	gess5/11/98
      * @param 
      * @return
      */
     virtual void AddAttribute(CToken* aToken);
 
     /**
      * This getter retrieves the line number from the input source where
-     * the token occured. Lines are interpreted as occuring between \n characters.
+     * the token occurred. Lines are interpreted as occurring between \n characters.
      * @update	gess7/24/98
      * @return  int containing the line number the token was found on
      */
     virtual PRInt32 GetSourceLineNumber(void) const;
 
     /** This method pop the attribute token from the given index
      * @update	harishd 03/25/99
      * @return  token at anIndex
--- a/parser/htmlparser/tests/html/residual.html
+++ b/parser/htmlparser/tests/html/residual.html
@@ -36,17 +36,17 @@ elements (explicit style tags -- not CSS
 <td><b>div text here</b></td>
 
 <td>div text here</td>
 </tr>
 </table>
 
 <p><font face="Verdana"><font size=-1>According to the spec, &lt;b> is
 a fontstyle element, whereas &lt;div> is a block element. As a rule, fontstyle
-tags can't contain block elements, which means that the preceeding example
+tags can't contain block elements, which means that the preceding example
 is malformed. In order to remain backward compatible and simultaneously
 maintain well-formed documents, Gecko may have to rewrite the document
 to be correct. The prior example is rewritten by Gecko like this:</font></font>
 <p><font face="Verdana"><font size=-1>&lt;html>&lt;body><font color="#3366FF">&lt;div></font><font color="#009900">&lt;b></font><font color="#3366FF">text</font><font color="#009900">&lt;/b></font><font color="#3366FF">&lt;/div></font>&lt;/body>&lt;/html></font></font>
 <br>&nbsp;
 <br>&nbsp;
 <table COLS=1 WIDTH="30%" BGCOLOR="#FFFFCC" >
 <tr>
--- a/testing/extensions/community/chrome/content/tabs/bugAccess.js
+++ b/testing/extensions/community/chrome/content/tabs/bugAccess.js
@@ -212,17 +212,17 @@ function bugAccess()
           alert("Your not logged in to this instance of bugzilla");
         }else if(e.target.responseText.indexOf('Bug processed')!=-1)
         {
           var success = "Changes Made";
 
           alert(success);
         }else if((start = e.target.responseText.indexOf('<td bgcolor="#ff0000">'))!=-1)
         {
-          //error was recieved
+          //error was received
           var error = "Error: "+e.target.responseText.substring(start,e.target.responseText.indexOf('</td>'));
           error = error.replace(/\n|\t|/g,"");
           error = error.replace(/<[^>]+>/g,"");
           error = getCleanText(error);
           alert(error);
         }
 
        }else
--- a/testing/mochitest/tests/MochiKit-1.4.2/MochiKit/Selector.js
+++ b/testing/mochitest/tests/MochiKit-1.4.2/MochiKit/Selector.js
@@ -312,29 +312,29 @@ MochiKit.Selector.Selector.prototype = {
             }
             return node;
         }
 
         if (axis == "") {
             scope = (scope || MochiKit.DOM.currentDocument()).getElementsByTagName(this.params.tagName || '*');
         } else if (axis == ">") {
             if (!scope) {
-                throw "> combinator not allowed without preceeding expression";
+                throw "> combinator not allowed without preceding expression";
             }
             scope = MochiKit.Base.filter(function (node) {
                 return node.nodeType == 1;
             }, scope.childNodes);
         } else if (axis == "+") {
             if (!scope) {
-                throw "+ combinator not allowed without preceeding expression";
+                throw "+ combinator not allowed without preceding expression";
             }
             scope = nextSiblingElement(scope) && [nextSiblingElement(scope)];
         } else if (axis == "~") {
             if (!scope) {
-                throw "~ combinator not allowed without preceeding expression";
+                throw "~ combinator not allowed without preceding expression";
             }
             var newscope = [];
             while (nextSiblingElement(scope)) {
                 scope = nextSiblingElement(scope);
                 newscope.push(scope);
             }
             scope = newscope;
         }
--- a/testing/sisyphus/bin/build.sh
+++ b/testing/sisyphus/bin/build.sh
@@ -44,17 +44,17 @@ case $product in
     firefox)
         cd $BUILDTREE/mozilla
 
         if ! $buildbash $bashlogin -c "export PATH=\"$BUILDPATH\"; cd $BUILDTREE/mozilla; make -f client.mk build" 2>&1; then
 
             if [[ -z "$TEST_FORCE_CLOBBER_ON_ERROR" ]]; then
                 error "error during build" $LINENO
             else
-                echo "error occured during build. attempting a clobber build" $LINENO
+                echo "error occurred during build. attempting a clobber build" $LINENO
                 if ! $buildbash $bashlogin -c "export PATH=\"$BUILDPATH\"; cd $BUILDTREE/mozilla; make -f client.mk distclean" 2>&1; then
                     error "error during forced clobber" $LINENO
                 fi
                 if ! $buildbash $bashlogin -c "export PATH=\"$BUILDPATH\"; cd $BUILDTREE/mozilla; make -f client.mk build" 2>&1; then
                     error "error during forced build" $LINENO
                 fi
             fi
         fi
--- a/toolkit/components/feeds/public/nsIFeedListener.idl
+++ b/toolkit/components/feeds/public/nsIFeedListener.idl
@@ -68,17 +68,17 @@ interface nsIFeedProgressListener : nsIF
    /**
    * ReportError will be called in the event of fatal
    * XML errors, or if the document is not a feed. The bozo 
    * bit will be set if the error was due to a fatal error. 
    * 
    * @param errorText
    *        A short description of the error.
    * @param lineNumber
-   *        The line on which the error occured.
+   *        The line on which the error occurred.
    */
    void reportError(in AString errorText, in long lineNumber, 
                     in boolean bozo);
    
    /**
    * StartFeed will be called as soon as a reasonable start to
    * a feed is detected. 
    *  
--- a/toolkit/components/microformats/tests/test_Microformats_hCard.html
+++ b/toolkit/components/microformats/tests/test_Microformats_hCard.html
@@ -203,17 +203,17 @@
     <p class="fn">John Doe</p>
     <p class="adr">
       <span class="street-address">1231 Main St.</span>
       <span class="locality">Beverly Hills</span>
       <span class="region">California</span>
       <span class="country-name">United States of America</span>
       <span class="postal-code">90210</span>
     </p>
-<!--       multiple street-addresses, should produce a comma-seperated list -->
+<!--       multiple street-addresses, should produce a comma-separated list -->
     <p class="adr">
       <span class="post-office-box">PO Box 1234</span>
       <span class="street-address">1232 Main St.</span>
       <span class="street-address">Suite 100</span>
       <span class="locality">Beverly Hills</span>
       <span class="region">California</span>
       <span class="country-name">United States of America</span>
       <span class="postal-code">90210</span>
--- a/toolkit/components/parentalcontrols/public/nsIParentalControlsService.idl
+++ b/toolkit/components/parentalcontrols/public/nsIParentalControlsService.idl
@@ -91,12 +91,12 @@ interface nsIParentalControlsService : n
    * Log an application specific parental controls
    * event.
    *
    * @param aEntryType       Constant defining the type of event.
    * @param aFlag            A flag indicating if the subject content
    *                         was blocked.
    * @param aSource          The URI source of the subject content.
    * @param aTarget          The location the content was saved to if
-   *                         no blocking occured.
+   *                         no blocking occurred.
    */
   void log(in short aEntryType, in boolean aFlag, in nsIURI aSource, [optional] in nsIFile aTarget);
 };
--- a/toolkit/components/passwordmgr/test/test_bug_221634.html
+++ b/toolkit/components/passwordmgr/test/test_bug_221634.html
@@ -46,17 +46,17 @@ function contentLoaded() {
   ok(!testHappened,     "Sanity check to ensure test hasn't happened yet.")
   ok(!pageloadHappened, "Sanity check to ensure pageload hasn't happened yet.")
 
   // We're in DOMContentLoaded, so the pwmgr may or may not have filled in yet.
 
   // Set a 0-second timeout, which should execute before the pageload event.
   // setTimeout(reallyDoTest, 0);
   // ha-ha... That doesn't work. The pageload event comes first, although
-  // it can be hacked into working by adding <img src="404_non_existant_file.gif">
+  // it can be hacked into working by adding <img src="404_non_existent_file.gif">
 
   dclHappened = true;
 }
 
 // Step 2 - Fires when the image loads, which should be immediately after DOMContentLoaded (but before pageload)
 function performTest() {
   ok(dclHappened,       "Sanity check to make sure DOMContentLoaded already happened");
   ok(!pageloadHappened, "Sanity check to ensure pageload hasn't happened yet.")
--- a/toolkit/components/passwordmgr/test/unit/test_storage_legacy_1.js
+++ b/toolkit/components/passwordmgr/test/unit/test_storage_legacy_1.js
@@ -49,17 +49,17 @@ file.append(filename);
 var exists = file.exists();
 if (exists) {
     // Go ahead and remove the file, so that this failure doesn't
     // repeat itself w/o intervention.
     file.remove(false);
     do_check_false(exists); // fail on purpose
 }
 
-testdesc = "Initialize with a non-existant data file";
+testdesc = "Initialize with a non-existent data file";
 
 storage = LoginTest.initStorage(OUTDIR, filename);
 
 LoginTest.checkStorageData(storage, [], []);
 
 if (file.exists())
     file.remove(false);
 
--- a/toolkit/components/passwordmgr/test/unit/test_storage_legacy_2.js
+++ b/toolkit/components/passwordmgr/test/unit/test_storage_legacy_2.js
@@ -44,17 +44,17 @@ dummyuser2.init("http://dummyhost2.mozil
 dummyuser3.init("http://dummyhost2.mozilla.org", "http://cgi.site.com", null,
     "dummydude3", "itsasecret3", "put_user3_here", "put_pw3_here");
 
 
 /* ========== 2 ========== */
 testnum++;
 
 testdesc = "[ensuring file doesn't exist]";
-var filename="non-existant-file-"+Math.floor(Math.random() * 10000);
+var filename="non-existent-file-"+Math.floor(Math.random() * 10000);
 var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile);
 file.initWithPath(OUTDIR);
 file.append(filename);
 var exists = file.exists();
 if (exists) {
     // Go ahead and remove the file, so that this failure
     // doesn't repeat itself w/o intervention.
     file.remove(false);
--- a/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_1.js
+++ b/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_1.js
@@ -51,17 +51,17 @@ testdesc = "[ensuring file doesn't exist
 
 var filename="this-file-does-not-exist.pwmgr.sqlite";
 file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile);
 file.initWithPath(OUTDIR);
 file.append(filename);
 if(file.exists())
     file.remove(false);
 
-testdesc = "Initialize with a non-existant data file";
+testdesc = "Initialize with a non-existent data file";
 
 storage = LoginTest.reloadStorage(OUTDIR, filename);
 
 LoginTest.checkStorageData(storage, [], []);
 
 try {
     if (file.exists())
         file.remove(false);
@@ -220,17 +220,17 @@ LoginTest.deleteFile(OUTDIR, "signons-06
 
 /* ========== 11 ========== */
 testnum++;
 testdesc = "Initialize with signons-06.txt (1 disabled, 1 login); test modifyLogin";
 
 storage = LoginTest.initStorage(INDIR, "signons-06.txt", OUTDIR, "signons-06-3.sqlite");
 LoginTest.checkStorageData(storage, ["https://www.site.net"], [testuser1]);
 
-// Try modifying a non-existant login
+// Try modifying a non-existent login
 var err = null;
 try {
     storage.modifyLogin(testuser2, testuser1);
 } catch (e) {
     err = e;
 }
 LoginTest.checkExpectedError(/No matching logins/, err);
 LoginTest.checkStorageData(storage, ["https://www.site.net"], [testuser1]);
--- a/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_2.js
+++ b/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_2.js
@@ -36,17 +36,17 @@ dummyuser2.init("http://dummyhost2.mozil
 dummyuser3.init("http://dummyhost2.mozilla.org", "http://cgi.site.com", null,
     "dummydude3", "itsasecret3", "put_user3_here", "put_pw3_here");
 
 
 /* ========== 2 ========== */
 testnum++;
 
 testdesc = "[ensuring file doesn't exist]";
-var filename="non-existant-file-pwmgr.sqlite";
+var filename="non-existent-file-pwmgr.sqlite";
 var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile);
 file.initWithPath(OUTDIR);
 file.append(filename);
 if(file.exists())
     file.remove(false);
 
 testdesc = "Initialize with no existing file";
 storage = LoginTest.reloadStorage(OUTDIR, filename);
--- a/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_7.js
+++ b/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_7.js
@@ -95,17 +95,17 @@ do_check_eq(0, logins.length, "bogus val
 matchData = Cc["@mozilla.org/hash-property-bag;1"].createInstance(Ci.nsIWritablePropertyBag2);
 matchData.setPropertyAsAString("error", "value");
 let error;
 try {
     logins = storage.searchLogins({}, matchData);
 } catch (e) {
     error = e;
 }
-LoginTest.checkExpectedError(/Unexpected field/, error, "nonexistant field should throw");
+LoginTest.checkExpectedError(/Unexpected field/, error, "nonexistent field should throw");
 
 LoginTest.deleteFile(OUTDIR, "output-searchLogins-1.sqlite");
 
 
 /* ========== 4 ========== */
 testnum++;
 
 testdesc = "checking that searchLogins works as findLogins"
--- a/toolkit/components/places/public/nsINavHistoryService.idl
+++ b/toolkit/components/places/public/nsINavHistoryService.idl
@@ -1003,19 +1003,19 @@ interface nsINavHistoryQuery : nsISuppor
   /**
    * This is a URI to match, to, for example, find out every time you visited
    * a given URI. Use uriIsPrefix to control whether this is an exact match.
    */
   attribute nsIURI uri;
   readonly attribute boolean hasUri;
 
   /**
-   * Test for existance or non-existance of a given annotation. We don't
+   * Test for existence or non-existence of a given annotation. We don't
    * currently support >1 annotation name per query. If 'annotationIsNot' is
-   * true, we test for the non-existance of the specified annotation.
+   * true, we test for the non-existence of the specified annotation.
    *
    * Testing for not annotation will do the same thing as a normal query and
    * remove everything that doesn't have that annotation. Asking for things
    * that DO have a given annotation is a little different. It also includes
    * things that have never been visited. This allows place queries to be
    * returned as well as anything else that may have been tagged with an
    * annotation. This will only work for RESULTS_AS_URI since there will be
    * no visits for these items.
--- a/toolkit/components/places/src/Helpers.cpp
+++ b/toolkit/components/places/src/Helpers.cpp
@@ -54,17 +54,17 @@ AsyncStatementCallback::HandleError(mozI
   PRInt32 result;
   nsresult rv = aError->GetResult(&result);
   NS_ENSURE_SUCCESS(rv, rv);
   nsCAutoString message;
   rv = aError->GetMessage(message);
   NS_ENSURE_SUCCESS(rv, rv);
 
   nsCAutoString warnMsg;
-  warnMsg.Append("An error occured while executing an async statement: ");
+  warnMsg.Append("An error occurred while executing an async statement: ");
   warnMsg.Append(result);
   warnMsg.Append(" ");
   warnMsg.Append(message);
   NS_WARNING(warnMsg.get());
 #endif
 
   return NS_OK;
 }
--- a/toolkit/components/places/src/nsNavHistory.cpp
+++ b/toolkit/components/places/src/nsNavHistory.cpp
@@ -7324,17 +7324,17 @@ nsNavHistory::AddPageWithVisits(nsIURI *
   } else {
     // Insert the new place entry
     rv = InternalAddNewPage(aURI, aTitle, hidden == 1,
                             aTransitionType == TRANSITION_TYPED, 0,
                             PR_FALSE, &placeId);
     NS_ENSURE_SUCCESS(rv, rv);
   }
 
-  NS_ASSERTION(placeId != 0, "Cannot add a visit to a not existant page");
+  NS_ASSERTION(placeId != 0, "Cannot add a visit to a nonexistent page");
 
   if (aFirstVisitDate != -1) {
     // Add the first visit
     PRInt64 visitId;
     rv = InternalAddVisit(placeId, 0, 0,
                           aFirstVisitDate, aTransitionType, &visitId);
     aVisitCount--;
     NS_ENSURE_SUCCESS(rv, rv);
--- a/toolkit/components/places/src/nsPlacesImportExportService.cpp
+++ b/toolkit/components/places/src/nsPlacesImportExportService.cpp
@@ -195,17 +195,17 @@ public:
   // special. 'ConsumeHeading' resets this.
   ContainerType mLastContainerType;
 
   // this contains the text from the last begin tag until now. It is reset
   // at every begin tag. We can check it when we see a </a>, or </h3>
   // to see what the text content of that node should be.
   nsString mPreviousText;
 
-  // true when we hit a <dd>, which contains the description for the preceeding
+  // true when we hit a <dd>, which contains the description for the preceding
   // <a> tag. We can't just check for </dd> like we can for </a> or </h3>
   // because if there is a sub-folder, it is actually a child of the <dd>
   // because the tag is never explicitly closed. If this is true and we see a
   // new open tag, that means to commit the description to the previous
   // bookmark.
   //
   // Additional weirdness happens when the previous <dt> tag contains a <h3>:
   // this means there is a new folder with the given description, and whose
--- a/toolkit/components/places/tests/unit/test_history_sidebar.js
+++ b/toolkit/components/places/tests/unit/test_history_sidebar.js
@@ -80,17 +80,17 @@ function add_normalized_visit(aURI, aTim
                             0);
   do_check_true(visitId > 0);
   return visitId;
 }
 
 function days_for_x_months_ago(aNowObj, aMonths) {
   var oldTime = new Date();
   // Set day before month, otherwise we could try to calculate 30 February, or
-  // other not existant days.
+  // other nonexistent days.
   oldTime.setDate(1);
   oldTime.setMonth(aNowObj.getMonth() - aMonths);
   oldTime.setHours(0);
   oldTime.setMinutes(0);
   oldTime.setSeconds(0);
   // Stay larger for eventual timezone issues, add 2 days.
   return parseInt((aNowObj - oldTime) / (1000*60*60*24)) + 2;
 }
--- a/toolkit/components/places/tests/unit/test_isvisited.js
+++ b/toolkit/components/places/tests/unit/test_isvisited.js
@@ -67,17 +67,17 @@ function run_test() {
   add_uri_to_history(uri2);
   do_check_true(gh.isVisited(uri2));
 
   // add a ftp:// uri
   var uri3 = uri("ftp://ftp.mozilla.org");
   add_uri_to_history(uri3);
   do_check_true(gh.isVisited(uri3));
 
-  // check if a non-existant uri is visited
+  // check if a non-existent uri is visited
   var uri4 = uri("http://foobarcheese.com");
   do_check_false(gh.isVisited(uri4));
 
   // check that certain schemes never show up as visited
   // even if we attempt to add them to history
   // see CanAddURI() in nsNavHistory.cpp
   var urlsToIgnore = ["about:config", 
     "data:,Hello%2C%20World!",
--- a/toolkit/components/places/tests/unit/test_preventive_maintenance.js
+++ b/toolkit/components/places/tests/unit/test_preventive_maintenance.js
@@ -189,17 +189,17 @@ tests.push({
     stmt.params['anno'] = this._usedPageAttribute;
     stmt.execute();
     stmt.finalize();
     stmt = mDBConn.createStatement("INSERT INTO moz_annos (place_id, anno_attribute_id) VALUES(:place_id, (SELECT id FROM moz_anno_attributes WHERE name = :anno))");
     stmt.params['place_id'] = this._placeId;
     stmt.params['anno'] = this._usedPageAttribute;
     stmt.execute();
     stmt.finalize();
-    // Add an annotation with a not existant attribute
+    // Add an annotation with a nonexisting attribute
     stmt = mDBConn.createStatement("INSERT INTO moz_annos (place_id, anno_attribute_id) VALUES(:place_id, 1337)");
     stmt.params['place_id'] = this._placeId;
     stmt.execute();
     stmt.finalize();
   },
 
   check: function() {
     // Check that used attribute is still there
@@ -236,17 +236,17 @@ tests.push({
     stmt.params['anno'] = this._usedPageAttribute;
     stmt.execute();
     stmt.finalize();
     stmt = mDBConn.createStatement("INSERT INTO moz_annos (place_id, anno_attribute_id) VALUES(:place_id, (SELECT id FROM moz_anno_attributes WHERE name = :anno))");
     stmt.params['place_id'] = this._placeId;
     stmt.params['anno'] = this._usedPageAttribute;
     stmt.execute();
     stmt.reset();
-    // Add an annotation to a not existant page
+    // Add an annotation to a nonexisting page
     stmt.params['place_id'] = 1337;
     stmt.params['anno'] = this._usedPageAttribute;
     stmt.execute();
     stmt.finalize();
   },
 
   check: function() {
     // Check that used attribute is still there
@@ -254,17 +254,17 @@ tests.push({
     stmt.params['anno'] = this._usedPageAttribute;
     do_check_true(stmt.executeStep());
     stmt.finalize();
     // check that annotation with valid attribute is still there
     stmt = mDBConn.createStatement("SELECT id FROM moz_annos WHERE anno_attribute_id = (SELECT id FROM moz_anno_attributes WHERE name = :anno)");
     stmt.params['anno'] = this._usedPageAttribute;
     do_check_true(stmt.executeStep());
     stmt.finalize();
-    // Check that annotation to a not existant page has been removed
+    // Check that an annotation to a nonexisting page has been removed
     stmt = mDBConn.createStatement("SELECT id FROM moz_annos WHERE place_id = 1337");
     do_check_false(stmt.executeStep());
     stmt.finalize();
   }
 });
 
 //------------------------------------------------------------------------------
 tests.push({
@@ -521,17 +521,17 @@ tests.push({
     stmt.params["id"] = this._validKeywordId;
     stmt.params["keyword"] = "used";
     stmt.execute();
     stmt.finalize();
     // Add a place to ensure place_id = 1 is valid
     this._placeId = addPlace();
     // Add a bookmark using the keyword
     this._validKeywordItemId = addBookmark(this._placeId, bs.TYPE_BOOKMARK, bs.unfiledBookmarksFolder, this._validKeywordId);
-    // Add a bookmark using a not existant keyword
+    // Add a bookmark using a nonexisting keyword
     this._invalidKeywordItemId = addBookmark(this._placeId, bs.TYPE_BOOKMARK, bs.unfiledBookmarksFolder, this._invalidKeywordId);
   },
 
   check: function() {
     // Check that item with valid keyword is there
     let stmt = mDBConn.createStatement("SELECT id FROM moz_bookmarks WHERE id = :item_id AND keyword_id = :keyword");
     stmt.params["item_id"] = this._validKeywordItemId;
     stmt.params["keyword"] = this._validKeywordId;
@@ -888,17 +888,17 @@ tests.push({
     stmt.params['anno'] = this._usedItemAttribute;
     stmt.execute();
     stmt.finalize();
     stmt = mDBConn.createStatement("INSERT INTO moz_items_annos (item_id, anno_attribute_id) VALUES(:item_id, (SELECT id FROM moz_anno_attributes WHERE name = :anno))");
     stmt.params['item_id'] = this._bookmarkId;
     stmt.params['anno'] = this._usedItemAttribute;
     stmt.execute();
     stmt.finalize();
-    // Add an annotation with a not existant attribute
+    // Add an annotation with a nonexisting attribute
     stmt = mDBConn.createStatement("INSERT INTO moz_items_annos (item_id, anno_attribute_id) VALUES(:item_id, 1337)");
     stmt.params['item_id'] = this._bookmarkId;
     stmt.execute();
     stmt.finalize();
   },
 
   check: function() {
     // Check that used attribute is still there
@@ -939,17 +939,17 @@ tests.push({
     stmt.params['anno'] = this._usedItemAttribute;
     stmt.execute();
     stmt.finalize();
     stmt = mDBConn.createStatement("INSERT INTO moz_items_annos (item_id, anno_attribute_id) VALUES (:item_id, (SELECT id FROM moz_anno_attributes WHERE name = :anno))");
     stmt.params["item_id"] = this._bookmarkId;
     stmt.params["anno"] = this._usedItemAttribute;
     stmt.execute();
     stmt.reset();
-    // Add an annotation to a not existant item
+    // Add an annotation to a nonexisting item
     stmt.params["item_id"] = this._invalidBookmarkId;
     stmt.params["anno"] = this._usedItemAttribute;
     stmt.execute();
     stmt.finalize();
   },
 
   check: function() {
     // Check that used attribute is still there
@@ -957,17 +957,17 @@ tests.push({
     stmt.params['anno'] = this._usedItemAttribute;
     do_check_true(stmt.executeStep());
     stmt.finalize();
     // check that annotation with valid attribute is still there
     stmt = mDBConn.createStatement("SELECT id FROM moz_items_annos WHERE anno_attribute_id = (SELECT id FROM moz_anno_attributes WHERE name = :anno)");
     stmt.params['anno'] = this._usedItemAttribute;
     do_check_true(stmt.executeStep());
     stmt.finalize();
-    // Check that annotation to a not existant page has been removed
+    // Check that an annotation to a nonexisting page has been removed
     stmt = mDBConn.createStatement("SELECT id FROM moz_items_annos WHERE item_id = 8888");
     do_check_false(stmt.executeStep());
     stmt.finalize();
   }
 });
 
 
 //------------------------------------------------------------------------------
@@ -1023,17 +1023,17 @@ tests.push({
     // Insert a favicon entry
     let stmt = mDBConn.createStatement("INSERT INTO moz_favicons (id, url) VALUES(1, :url)");
     stmt.params["url"] = "http://www.mozilla.org/favicon.ico";
     stmt.execute();
     stmt.finalize();
     // Insert a place using the existing favicon entry
     this._validIconPlaceId = addPlace("http://www1.mozilla.org", 1);
 
-    // Insert a place using a not existant favicon entry
+    // Insert a place using a nonexisting favicon entry
     this._invalidIconPlaceId = addPlace("http://www2.mozilla.org", 1337);
   },
 
   check: function() {
     // Check that bogus favicon is not there
     let stmt = mDBConn.createStatement("SELECT id FROM moz_places WHERE favicon_id = :favicon_id");
     stmt.params["favicon_id"] = 1337;
     do_check_false(stmt.executeStep());
--- a/toolkit/components/printing/content/printPreviewProgress.js
+++ b/toolkit/components/printing/content/printPreviewProgress.js
@@ -45,17 +45,17 @@ var printProgress = null;
 
 // random global variables...
 var targetFile;
 
 var docTitle = "";
 var docURL   = "";
 var progressParams = null;
 
-function elipseString(aStr, doFront)
+function ellipseString(aStr, doFront)
 {
   if (aStr.length > 3 && (aStr.substr(0, 3) == "..." || aStr.substr(aStr.length-4, 3) == "..."))
     return aStr;
 
   var fixedLen = 64;
   if (aStr.length <= fixedLen)
     return aStr;
 
@@ -73,22 +73,22 @@ var progressListener = {
     if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP)
       window.close();
   },
   
   onProgressChange: function (aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress)
   {
     if (!progressParams)
       return;
-    var docTitleStr = elipseString(progressParams.docTitle, false);
+    var docTitleStr = ellipseString(progressParams.docTitle, false);
     if (docTitleStr != docTitle) {
       docTitle = docTitleStr;
       dialog.title.value = docTitle;
     }
-    var docURLStr = elipseString(progressParams.docURL, true);
+    var docURLStr = ellipseString(progressParams.docURL, true);
     if (docURLStr != docURL && dialog.title != null) {
       docURL = docURLStr;
       if (docTitle == "")
         dialog.title.value = docURLStr;
     }
   },
 
   onLocationChange: function (aWebProgress, aRequest, aLocation) {},
@@ -109,18 +109,18 @@ var progressListener = {
 }
 
 function onLoad() {
   // Set global variables.
   printProgress = window.arguments[0];
   if (window.arguments[1]) {
     progressParams = window.arguments[1].QueryInterface(Components.interfaces.nsIPrintProgressParams)
     if (progressParams) {
-      docTitle = elipseString(progressParams.docTitle, false);
-      docURL   = elipseString(progressParams.docURL, true);
+      docTitle = ellipseString(progressParams.docTitle, false);
+      docURL   = ellipseString(progressParams.docURL, true);
     }
   }
 
   if (!printProgress) {
     dump( "Invalid argument to printPreviewProgress.xul\n" );
     window.close()
     return;
   }
--- a/toolkit/components/printing/content/printProgress.js
+++ b/toolkit/components/printing/content/printProgress.js
@@ -48,17 +48,17 @@ var printProgress = null;
 // random global variables...
 var targetFile;
 
 var docTitle = "";
 var docURL   = "";
 var progressParams = null;
 var switchUI = true;
 
-function elipseString(aStr, doFront)
+function ellipseString(aStr, doFront)
 {
   if (aStr.length > 3 && (aStr.substr(0, 3) == "..." || aStr.substr(aStr.length-4, 3) == "...")) {
     return aStr;
   }
 
   var fixedLen = 64;
   if (aStr.length > fixedLen) {
     if (doFront) {
@@ -134,26 +134,26 @@ var progressListener = {
         if (progressLabel == "") {
           progressLabel = "Progress:"; // better than nothing
         }
         switchUI = false;
       }
 
       if (progressParams)
       {
-        var docTitleStr = elipseString(progressParams.docTitle, false);
+        var docTitleStr = ellipseString(progressParams.docTitle, false);
         if (docTitleStr != docTitle) {
           docTitle = docTitleStr;
           dialog.title.value = docTitle;
         }
         var docURLStr = progressParams.docURL;
         if (docURLStr != docURL && dialog.title != null) {
           docURL = docURLStr;
           if (docTitle == "") {
-            dialog.title.value = elipseString(docURLStr, true);
+            dialog.title.value = ellipseString(docURLStr, true);
           }
         }
       }
 
       // Calculate percentage.
       var percent;
       if ( aMaxTotalProgress > 0 ) 
       {
@@ -243,18 +243,18 @@ function onLoad() {
 
     // Set global variables.
     printProgress = window.arguments[0];
     if (window.arguments[1])
     {
       progressParams = window.arguments[1].QueryInterface(Components.interfaces.nsIPrintProgressParams)
       if (progressParams)
       {
-        docTitle = elipseString(progressParams.docTitle, false);
-        docURL   = elipseString(progressParams.docURL, true);
+        docTitle = ellipseString(progressParams.docTitle, false);
+        docURL   = ellipseString(progressParams.docURL, true);
       }
     }
 
     if ( !printProgress ) {
         dump( "Invalid argument to printProgress.xul\n" );
         window.close()
         return;
     }
--- a/toolkit/components/satchel/test/unit/test_history_api.js
+++ b/toolkit/components/satchel/test/unit/test_history_api.js
@@ -69,17 +69,17 @@ function run_test()
   do_check_true(fh.entryExists("name-A", "value-A"));
   do_check_true(fh.entryExists("name-B", "value-B1"));
   do_check_true(fh.entryExists("name-B", "value-B2"));
   do_check_true(fh.entryExists("name-C", "value-C"));
   do_check_true(fh.entryExists("name-D", "value-D"));
   // time-A/B/C/D checked below.
 
   // ===== 2 =====
-  // Test looking for non-existant / bogus data.
+  // Test looking for non-existent / bogus data.
   testnum++;
   do_check_false(fh.nameExists("blah"));
   do_check_false(fh.nameExists(""));
   do_check_false(fh.nameExists(null));
   do_check_false(fh.entryExists("name-A", "blah"));
   do_check_false(fh.entryExists("name-A", ""));
   do_check_false(fh.entryExists("name-A", null));
   do_check_false(fh.entryExists("blah", "value-A"));
--- a/toolkit/components/url-classifier/content/moz/preferences.js
+++ b/toolkit/components/url-classifier/content/moz/preferences.js
@@ -198,17 +198,17 @@ G_Preferences.prototype.addObserver = fu
 /**
  * Remove an observer for a given pref.
  *
  * @param which String containing the pref to stop listening to
  * @param callback Function to remove as an observer
  */
 G_Preferences.prototype.removeObserver = function(which, callback) {
   var ix = this.observers_[which].callbacks.indexOf(callback);
-  G_Assert(this, ix != -1, "Tried to unregister a nonexistant observer"); 
+  G_Assert(this, ix != -1, "Tried to unregister a nonexistent observer"); 
   this.observers_[which].callbacks.splice(ix, 1);
   var observer = this.observers_[which].observers.splice(ix, 1)[0];
   this.prefs_.removeObserver(which, observer);
 }
 
 /**
  * Remove all preference observers registered through this object.
  */
--- a/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp
+++ b/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp
@@ -3024,17 +3024,17 @@ nsUrlClassifierDBServiceWorker::BeginStr
   }
 
   return NS_OK;
 }
 
 /**
  * Updating the database:
  *
- * The Update() method takes a series of chunks seperated with control data,
+ * The Update() method takes a series of chunks separated with control data,
  * as described in
  * http://code.google.com/p/google-safe-browsing/wiki/Protocolv2Spec
  *
  * It will iterate through the control data until it reaches a chunk.  By
  * the time it reaches a chunk, it should have received
  * a) the table to which this chunk applies
  * b) the type of chunk (add, delete, expire add, expire delete).
  * c) the chunk ID
--- a/toolkit/content/tests/widgets/popup_shared.js
+++ b/toolkit/content/tests/widgets/popup_shared.js
@@ -33,26 +33,26 @@ var gTestIndex = -1;
 var gTestStepIndex = 0;
 var gTestEventIndex = 0;
 var gAutoHide = false;
 var gExpectedEventDetails = null;
 var gWindowUtils;
 
 function startPopupTests(tests)
 {
-  document.addEventListener("popupshowing", eventOccured, false);
-  document.addEventListener("popupshown", eventOccured, false);
-  document.addEventListener("popuphiding", eventOccured, false);
-  document.addEventListener("popuphidden", eventOccured, false);
-  document.addEventListener("command", eventOccured, false);
-  document.addEventListener("DOMMenuItemActive", eventOccured, false);
-  document.addEventListener("DOMMenuItemInactive", eventOccured, false);
-  document.addEventListener("DOMMenuInactive", eventOccured, false);
-  document.addEventListener("DOMMenuBarActive", eventOccured, false);
-  document.addEventListener("DOMMenuBarInactive", eventOccured, false);
+  document.addEventListener("popupshowing", eventOccurred, false);
+  document.addEventListener("popupshown", eventOccurred, false);
+  document.addEventListener("popuphiding", eventOccurred, false);
+  document.addEventListener("popuphidden", eventOccurred, false);
+  document.addEventListener("command", eventOccurred, false);
+  document.addEventListener("DOMMenuItemActive", eventOccurred, false);
+  document.addEventListener("DOMMenuItemInactive", eventOccurred, false);
+  document.addEventListener("DOMMenuInactive", eventOccurred, false);
+  document.addEventListener("DOMMenuBarActive", eventOccurred, false);
+  document.addEventListener("DOMMenuBarInactive", eventOccurred, false);
 
   gPopupTests = tests;
   gWindowUtils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
                        .getInterface(Components.interfaces.nsIDOMWindowUtils);
 
   goNext();
 }
 
@@ -82,17 +82,17 @@ function is(left, right, message) {
 }
 
 function disableNonTestMouse(aDisable) {
   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
 
   gWindowUtils.disableNonTestMouseEvents(aDisable);
 }
 
-function eventOccured(event)
+function eventOccurred(event)
 {
    netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
 
   if (gPopupTests.length <= gTestIndex) {
     ok(false, "Extra " + event.type + " event fired");
     return;
   }
 
--- a/toolkit/content/tests/widgets/test_datepicker.xul
+++ b/toolkit/content/tests/widgets/test_datepicker.xul
@@ -254,18 +254,18 @@ function testtag_datepicker_UI_grid(dp, 
 
   // month can still be changed even when readonly
   synthesizeKeyExpectEvent("VK_PAGE_DOWN", { }, ktarget, "monthchange",
                            testid + "key page up read only");
   synthesizeKeyExpectEvent("VK_PAGE_UP", { }, ktarget, "monthchange",
                            testid + "key page down read only");
 
   dp.readOnly = false;
-  synthesizeKeyExpectEvent("VK_LEFT", { }, ktarget, "change", testid + "key left changable again");
-  is(dp.value, "2003-02-14", testid + "key left changable again");
+  synthesizeKeyExpectEvent("VK_LEFT", { }, ktarget, "change", testid + "key left changeable again");
+  is(dp.value, "2003-02-14", testid + "key left changeable again");
 
   // the value of a disabled datepicker cannot be changed
   dp.disabled = true;
   synthesizeKeyExpectEvent("VK_LEFT", { }, ktarget, "!change", testid + "key left disabled");
   is(dp.value, "2003-02-14", testid + "key left disabled");
   synthesizeKeyExpectEvent("VK_RIGHT", { }, ktarget, "!change", testid + "key right disabled");
   is(dp.value, "2003-02-14", testid + "key right disabled");
   synthesizeKeyExpectEvent("VK_DOWN", { }, ktarget, "!change", testid + "key down disabled");
--- a/toolkit/content/tests/widgets/test_focus_anons.xul
+++ b/toolkit/content/tests/widgets/test_focus_anons.xul
@@ -26,30 +26,30 @@
 <![CDATA[
 
 SimpleTest.waitForExplicitFinish();
 
 var gBlurs = 0, gFocuses = 0;
 var gExpectedBlur = "";
 var gExpectedFocus = "";
 
-function blurOccured(event) {
+function blurOccurred(event) {
   gBlurs++;
   is(event.originalTarget, gExpectedBlur, "blur " + gBlurs + "," + event.originalTarget.localName);
 }
 
-function focusOccured(event) {
+function focusOccurred(event) {
   gFocuses++;
   is(event.originalTarget, gExpectedFocus, "focus " + gFocuses + "," + event.originalTarget.localName);
 }
 
 function runTests()
 {
-  addEventListener("focus", focusOccured, true);
-  addEventListener("blur", blurOccured, true);
+  addEventListener("focus", focusOccurred, true);
+  addEventListener("blur", blurOccurred, true);
 
   gExpectedBlur = null;
   gExpectedFocus = $("menulist").inputField;
   $("menulist").focus();
 
   gExpectedBlur = gExpectedFocus;
   gExpectedFocus = $("textbox").inputField;
   $("textbox").focus();
--- a/toolkit/content/tests/widgets/test_menulist_null_value.xul
+++ b/toolkit/content/tests/widgets/test_menulist_null_value.xul
@@ -74,17 +74,17 @@ function runTests()
   is(list.getAttribute("label"), "", "Check list label after setting value to undefined");
 
   // select something again to make sure the label is not already empty
   list.selectedIndex = 1;
   // set the value to something that does not exist in any menuitem of the list
   // and make sure the previous label is removed
   list.value = "this does not exist";
   is(list.value, "this does not exist", "Check the list value after setting it to something not associated witn an existing menuitem");
-  is(list.getAttribute("label"), "", "Check that the list label is empty after selecting a non-existant item");
+  is(list.getAttribute("label"), "", "Check that the list label is empty after selecting a non-existent item");
 
   SimpleTest.finish();
 }
 
 ]]>
 </script>
 
 <body xmlns="http://www.w3.org/1999/xhtml">
--- a/toolkit/content/tests/widgets/test_popup_coords.xul
+++ b/toolkit/content/tests/widgets/test_popup_coords.xul
@@ -12,57 +12,57 @@
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>      
   <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>      
 
 <deck style="margin-top: 5px; padding-top: 5px;">
   <label id="outer" popup="outerpopup" value="Popup"/>
 </deck>
 
 <panel id="outerpopup"
-           onpopupshowing="popupShowingEventOccured(event);"
-           onpopupshown="eventOccured(event); openThePopup('inner')"
-           onpopuphiding="eventOccured(event);"
-           onpopuphidden="eventOccured(event); SimpleTest.finish();">
+           onpopupshowing="popupShowingEventOccurred(event);"
+           onpopupshown="eventOccurred(event); openThePopup('inner')"
+           onpopuphiding="eventOccurred(event);"
+           onpopuphidden="eventOccurred(event); SimpleTest.finish();">
   <button id="item1" label="First"/>
   <label id="inner" value="Second" popup="innerpopup"/>
   <button id="item2" label="Third"/>
 </panel>
 
 <menupopup id="innerpopup"
-           onpopupshowing="popupShowingEventOccured(event);"
-           onpopupshown="eventOccured(event); event.target.hidePopup();"
-           onpopuphiding="eventOccured(event);"
-           onpopuphidden="eventOccured(event); document.getElementById('outerpopup').hidePopup();">
+           onpopupshowing="popupShowingEventOccurred(event);"
+           onpopupshown="eventOccurred(event); event.target.hidePopup();"
+           onpopuphiding="eventOccurred(event);"
+           onpopuphidden="eventOccurred(event); document.getElementById('outerpopup').hidePopup();">
   <menuitem id="inner1" label="Inner First"/>
   <menuitem id="inner2" label="Inner Second"/>
 </menupopup>
 
 <script>
 SimpleTest.waitForExplicitFinish();
 
 function openThePopup(id)
 {
   if (id == "inner")
     document.getElementById("item1").focus();
 
   var trigger = document.getElementById(id);
   synthesizeMouse(trigger, 4, 5, { });
 }
 
-function eventOccured(event)
+function eventOccurred(event)
 {
   var testname = event.type + " on " + event.target.id + " ";
   ok(event instanceof MouseEvent, testname + "is a mouse event");
   is(event.clientX, 0, testname + "clientX");
   is(event.clientY, 0, testname + "clientY");
   is(event.rangeParent, null, testname + "rangeParent");
   is(event.rangeOffset, 0, testname + "rangeOffset");
 }
 
-function popupShowingEventOccured(event)
+function popupShowingEventOccurred(event)
 {
   // the popupshowing event should have the event coordinates and
   // range position filled in.
   var testname = "popupshowing on " + event.target.id + " ";
   ok(event instanceof MouseEvent, testname + "is a mouse event");
 
   var trigger = document.getElementById(event.target.id == "outerpopup" ? "outer" : "inner");
   var rect = trigger.getBoundingClientRect();
--- a/toolkit/mozapps/downloads/DownloadUtils.jsm
+++ b/toolkit/mozapps/downloads/DownloadUtils.jsm
@@ -201,17 +201,17 @@ let DownloadUtils = {
 
       return [status, newLast];
     }
   },
 
   /**
    * Generate the transfer progress string to show the current and total byte
    * size. Byte units will be as large as possible and the same units for
-   * current and max will be supressed for the former.
+   * current and max will be suppressed for the former.
    *
    * @param aCurrBytes
    *        Number of bytes transferred so far
    * @param [optional] aMaxBytes
    *        Total number of bytes or -1 for unknown
    * @return The transfer progress text
    */
   getTransferTotal: function DU_getTransferTotal(aCurrBytes, aMaxBytes)
--- a/toolkit/mozapps/extensions/content/update.js
+++ b/toolkit/mozapps/extensions/content/update.js
@@ -131,17 +131,17 @@ var gUpdateWizard = {
   errorItems: [],
   showErrors: function (aState, aErrors)
   {
     openDialog("chrome://mozapps/content/extensions/errors.xul", "",
                "modal", { state: aState, errors: aErrors });
   },
 
   // Displays a list of items that had an error during the update check. We
-  // don't display the actual error that occured since
+  // don't display the actual error that occurred since
   // nsIAddonUpdateCheckListener doesn't return the error details.
   showUpdateCheckErrors: function ()
   {
     var errors = [];
     for (var i = 0; i < this.errorItems.length; ++i)
       errors.push({ name: this.errorItems[i].name, error: true });
     this.showErrors("checking", errors);
   },
--- a/toolkit/mozapps/extensions/nsIAddonRepository.idl
+++ b/toolkit/mozapps/extensions/nsIAddonRepository.idl
@@ -126,17 +126,17 @@ interface nsIAddonSearchResultsCallback 
    * @param  aTotalResults  The total results actually available in the
    *                        repository
    */
   void searchSucceeded([array, size_is(aAddonCount)] in nsIAddonSearchResult aAddons,
                        in unsigned long aAddonCount,
                        in unsigned long aTotalResults);
 
   /**
-   * Called when an error occured when performing a search.
+   * Called when an error occurred when performing a search.
    */
   void searchFailed();
 };
 
 /**
  * The add-on repository is a source of add-ons that can be installed. It can
  * be searched in two ways. One returns a list of add-ons that come highly
  * recommended, this list should change frequently. The other way is to
--- a/toolkit/mozapps/update/nsUpdateService.js
+++ b/toolkit/mozapps/update/nsUpdateService.js
@@ -1174,17 +1174,17 @@ UpdateService.prototype = {
     if (!this.canCheckForUpdates || !this.canApplyUpdates) {
       LOG("UpdateService:_postUpdateProcessing - unable to check for or apply " +
           "updates... returning early");
       return;
     }
 
     var status = readStatusFile(getUpdatesDir());
     // STATE_NONE status means that the update.status file is present but a
-    // background download error occured.
+    // background download error occurred.
     if (status == STATE_NONE) {
       LOG("UpdateService:_postUpdateProcessing - no status, no update");
       cleanupActiveUpdate();
       return;
     }
 
     var um = Cc["@mozilla.org/updates/update-manager;1"].
              getService(Ci.nsIUpdateManager);
--- a/toolkit/xre/nsNativeAppSupportOS2.cpp
+++ b/toolkit/xre/nsNativeAppSupportOS2.cpp
@@ -761,17 +761,17 @@ PRBool nsNativeAppSupportOS2::mUseDDE = 
  *        exists.  If so, then Mozilla is already running.  In that
  *        case, we use the handle to the "message" window and send
  *        a request corresponding to this process's command line
  *        options.
  *
  *        If not, then this is the first instance of Mozilla.  In
  *        that case, we create and set up the message window.
  *
- *        The checking for existance of the message window must
+ *        The checking for existence of the message window must
  *        be protected by use of a mutex semaphore.
  */
 NS_IMETHODIMP
 nsNativeAppSupportOS2::Start( PRBool *aResult ) {
     NS_ENSURE_ARG( aResult );
     NS_ENSURE_TRUE( mInstance == 0, NS_ERROR_NOT_INITIALIZED );
 
     nsresult rv = NS_ERROR_FAILURE;
--- a/toolkit/xre/nsNativeAppSupportWin.cpp
+++ b/toolkit/xre/nsNativeAppSupportWin.cpp
@@ -659,17 +659,17 @@ private:
  *        exists.  If so, then Mozilla is already running.  In that
  *        case, we use the handle to the "message" window and send
  *        a request corresponding to this process's command line
  *        options.
  *
  *        If not, then this is the first instance of Mozilla.  In
  *        that case, we create and set up the message window.
  *
- *        The checking for existance of the message window must
+ *        The checking for existence of the message window must
  *        be protected by use of a mutex semaphore.
  */
 NS_IMETHODIMP
 nsNativeAppSupportWin::Start( PRBool *aResult ) {
     NS_ENSURE_ARG( aResult );
     NS_ENSURE_TRUE( mInstance == 0, NS_ERROR_NOT_INITIALIZED );
     NS_ENSURE_STATE( gAppData );
 
--- a/tools/relic/relic
+++ b/tools/relic/relic
@@ -1465,17 +1465,17 @@ def _make_backup_path(path):
             return backup_path
     raise RelicError("Could not find an unused backup path for '%s'." % path)
 
 
 def _relicensing_error(err, path, cache=None, quiet=0):
     """Handle an error during relicensing.
     
         "err" may be an error string or an exception instance.
-        "path" is the path of the file on which this error occured.
+        "path" is the path of the file on which this error occurred.
         "cache" is a mapping of path to errors on which errors may be
             stored for later reporting.
         "quiet" optionally allows one to silence the stdout output when
             force is in effect.
 
     If the --force option is in-effect then errors may be remembered and
     processing continues, rather than halting the whole process.
     """
--- a/tools/relic/test/test_addlicense_inputs.py
+++ b/tools/relic/test/test_addlicense_inputs.py
@@ -116,17 +116,17 @@ def _testOneInputFile(self, fname):
                       % (outfile, tmpfile, pprint.pformat(diff)))
     elif os.path.exists(errfile):
         # There is no reference output file. This means that processing
         # this file is expected to fail.
         expectedError = open(errfile, 'r').read()
         actualError = str(error)
         self.failUnlessEqual(actualError.strip(), expectedError.strip())
     else:
-        self.fail("No reference ouput file or error file for '%s'." % infile)
+        self.fail("No reference output file or error file for '%s'." % infile)
 
     # Ensure next test file gets a clean relic.
     del sys.modules['relic']
         
 
 #for fname in ["separated_license_comment_blocks.pl"]:
 for fname in os.listdir(gInputsDir):
     if fname.endswith(".options"): continue # skip input option files
--- a/tools/relic/test/test_relicense_inputs.py
+++ b/tools/relic/test/test_relicense_inputs.py
@@ -108,17 +108,17 @@ def _testOneInputFile(self, fname):
                       % (outfile, tmpfile, pprint.pformat(diff)))
     elif os.path.exists(errfile):
         # There is no reference output file. This means that processing
         # this file is expected to fail.
         expectedError = open(errfile, 'r').read()
         actualError = str(error)
         self.failUnlessEqual(actualError.strip(), expectedError.strip())
     else:
-        self.fail("No reference ouput file or error file for '%s'." % infile)
+        self.fail("No reference output file or error file for '%s'." % infile)
 
     # Ensure next test file gets a clean relic.
     del sys.modules['relic']
         
 
 #for fname in ["separated_license_comment_blocks.pl"]:
 for fname in os.listdir(gInputsDir):
     if fname.endswith(".options"): continue # skip input option files
--- a/view/src/nsView.h
+++ b/view/src/nsView.h
@@ -118,17 +118,17 @@ public:
 public:
   // NOT in nsIView, so only available in view module
   // These are also present in nsIView, but these versions return nsView and nsViewManager
   // instead of nsIView and nsIViewManager.
   nsView* GetFirstChild() const { return mFirstChild; }
   nsView* GetNextSibling() const { return mNextSibling; }
   nsView* GetParent() const { return mParent; }
   nsViewManager* GetViewManager() const { return mViewManager; }
-  // These are superceded by a better interface in nsIView
+  // These are superseded by a better interface in nsIView
   PRInt32 GetZIndex() const { return mZIndex; }
   PRBool GetZIndexIsAuto() const { return (mVFlags & NS_VIEW_FLAG_AUTO_ZINDEX) != 0; }
   // This is a better interface than GetDimensions(nsRect&) above
   nsRect GetDimensions() const { nsRect r = mDimBounds; r.MoveBy(-mPosX, -mPosY); return r; }
   // These are defined exactly the same in nsIView, but for now they have to be redeclared
   // here because of stupid C++ method hiding rules
 
   PRBool HasNonEmptyDirtyRegion() {
--- a/widget/public/nsIJumpListBuilder.idl
+++ b/widget/public/nsIJumpListBuilder.idl
@@ -115,17 +115,17 @@ interface nsIJumpListBuilder : nsISuppor
   /**
    * JumpList management
    *
    * @throw NS_ERROR_NOT_AVAILABLE on all calls if taskbar functionality
    * is not supported by the operating system.
    */
 
   /**
-   * Indicates if a commit has already occured in this session.
+   * Indicates if a commit has already occurred in this session.
    */
   readonly attribute boolean isListCommitted;
 
   /**
    * The maximum number of jump list items the current desktop can support.
    */
   readonly attribute short maxListItems;
 
--- a/widget/public/nsIWidget.h
+++ b/widget/public/nsIWidget.h
@@ -950,17 +950,17 @@ class nsIWidget : public nsISupports {
     virtual nsresult SynthesizeNativeMouseEvent(nsIntPoint aPoint,
                                                 PRUint32 aNativeMessage,
                                                 PRUint32 aModifierFlags) = 0;
 
     /**
      * Activates a native menu item at the position specified by the index
      * string. The index string is a string of positive integers separated
      * by the "|" (pipe) character. The last integer in the string represents
-     * the item index in a submenu located using the integers preceeding it.
+     * the item index in a submenu located using the integers preceding it.
      *
      * Example: 1|0|4
      * In this string, the first integer represents the top-level submenu
      * in the native menu bar. Since the integer is 1, it is the second submeu
      * in the native menu bar. Within that, the first item (index 0) is a
      * submenu, and we want to activate the 5th item within that submenu.
      */
     virtual nsresult ActivateNativeMenuItemAt(const nsAString& indexString) = 0;
--- a/widget/src/cocoa/nsChildView.mm
+++ b/widget/src/cocoa/nsChildView.mm
@@ -2826,18 +2826,18 @@ static BOOL DrawingAtWindowTop(CGContext
       if (gMenuRollup) {
         nsAutoTArray<nsIWidget*, 5> widgetChain;
         gMenuRollup->GetSubmenuWidgetChain(&widgetChain);
         PRUint32 sameTypeCount = gMenuRollup->GetSubmenuWidgetChain(&widgetChain);
         for (PRUint32 i = 0; i < widgetChain.Length(); i++) {
           nsIWidget* widget = widgetChain[i];
           NSWindow* currWindow = (NSWindow*)widget->GetNativeData(NS_NATIVE_WINDOW);
           if (nsCocoaUtils::IsEventOverWindow(theEvent, currWindow)) {
-            // don't roll up if the mouse event occured within a menu of the
-            // same type. If the mouse event occured in a menu higher than
+            // don't roll up if the mouse event occurred within a menu of the
+            // same type. If the mouse event occurred in a menu higher than
             // that, roll up, but pass the number of popups to Rollup so
             // that only those of the same type close up.
             if (i < sameTypeCount) {
               shouldRollup = PR_FALSE;
             }
             else {
               popupsToRollup = sameTypeCount;
             }
--- a/widget/src/cocoa/nsMenuItemIconX.mm
+++ b/widget/src/cocoa/nsMenuItemIconX.mm
@@ -128,17 +128,17 @@ nsMenuItemIconX::SetupIcon()
     // earlier.  Clear it.
     [mNativeMenuItem setImage:nil];
 
     return NS_OK;
   }
 
   rv = LoadIcon(iconURI);
   if (NS_FAILED(rv)) {
-    // There is no icon for this menu item, as an error occured while loading it.
+    // There is no icon for this menu item, as an error occurred while loading it.
     // An icon might have been set earlier or the place holder icon may have
     // been set.  Clear it.
     [mNativeMenuItem setImage:nil];
   }
   return rv;
 
   NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
 }
--- a/widget/src/gtk2/nsWindow.cpp
+++ b/widget/src/gtk2/nsWindow.cpp
@@ -5397,18 +5397,18 @@ check_for_rollup(GdkWindow *aWindow, gdo
             if (gMenuRollup) {
                 nsAutoTArray<nsIWidget*, 5> widgetChain;
                 PRUint32 sameTypeCount = gMenuRollup->GetSubmenuWidgetChain(&widgetChain);
                 for (PRUint32 i=0; i<widgetChain.Length(); ++i) {
                     nsIWidget* widget = widgetChain[i];
                     GdkWindow* currWindow =
                         (GdkWindow*) widget->GetNativeData(NS_NATIVE_WINDOW);
                     if (is_mouse_in_window(currWindow, aMouseX, aMouseY)) {
-                      // don't roll up if the mouse event occured within a
-                      // menu of the same type. If the mouse event occured
+                      // don't roll up if the mouse event occurred within a
+                      // menu of the same type. If the mouse event occurred
                       // in a menu higher than that, roll up, but pass the
                       // number of popups to Rollup so that only those of the
                       // same type close up.
                       if (i < sameTypeCount) {
                         rollup = PR_FALSE;
                       }
                       else {
                         popupsToRollup = sameTypeCount;
--- a/widget/src/windows/nsDragService.cpp
+++ b/widget/src/windows/nsDragService.cpp
@@ -485,17 +485,17 @@ nsDragService::SetIDataObject(IDataObjec
   return NS_OK;
 }
 
 //---------------------------------------------------------
 void
 nsDragService::SetDroppedLocal()
 {
   // Sent from the native drag handler, letting us know
-  // a drop occured within the application vs. outside of it.
+  // a drop occurred within the application vs. outside of it.
   mSentLocalDropEvent = PR_TRUE;
   return;
 }
 
 //-------------------------------------------------------------------------
 NS_IMETHODIMP
 nsDragService::IsDataFlavorSupported(const char *aDataFlavor, PRBool *_retval)
 {
--- a/widget/src/windows/nsDragService.h
+++ b/widget/src/windows/nsDragService.h
@@ -70,17 +70,17 @@ public:
   NS_IMETHOD IsDataFlavorSupported(const char *aDataFlavor, PRBool *_retval);
   NS_IMETHOD EndDragSession(PRBool aDoneDrag);
 
   // native impl.
   NS_IMETHOD SetIDataObject(IDataObject * aDataObj);
   NS_IMETHOD StartInvokingDragSession(IDataObject * aDataObj,
                                       PRUint32 aActionType);
 
-  // A drop occured within the application vs. outside of it.
+  // A drop occurred within the application vs. outside of it.
   void SetDroppedLocal();
 
 protected:
   nsDataObjCollection* GetDataObjCollection(IDataObject * aDataObj);
 
   // determine if we have a single data object or one of our private
   // collections
   PRBool IsCollectionObject(IDataObject* inDataObj);
--- a/widget/src/windows/nsWindow.cpp
+++ b/widget/src/windows/nsWindow.cpp
@@ -7208,18 +7208,18 @@ nsWindow::DealWithPopups(HWND inWnd, UIN
       PRUint32 popupsToRollup = PR_UINT32_MAX;
       if (rollup) {
         if ( sMenuRollup ) {
           nsAutoTArray<nsIWidget*, 5> widgetChain;
           PRUint32 sameTypeCount = sMenuRollup->GetSubmenuWidgetChain(&widgetChain);
           for ( PRUint32 i = 0; i < widgetChain.Length(); ++i ) {
             nsIWidget* widget = widgetChain[i];
             if ( nsWindow::EventIsInsideWindow(inMsg, (nsWindow*)widget) ) {
-              // don't roll up if the mouse event occured within a menu of the
-              // same type. If the mouse event occured in a menu higher than
+              // don't roll up if the mouse event occurred within a menu of the
+              // same type. If the mouse event occurred in a menu higher than
               // that, roll up, but pass the number of popups to Rollup so
               // that only those of the same type close up.
               if (i < sameTypeCount) {
                 rollup = PR_FALSE;
               }
               else {
                 popupsToRollup = sameTypeCount;
               }
--- a/widget/src/xpwidgets/nsBaseDragService.h
+++ b/widget/src/xpwidgets/nsBaseDragService.h
@@ -148,17 +148,17 @@ protected:
   nsCOMPtr<nsIDOMNode> mImage;
   // offset of cursor within the image 
   PRInt32 mImageX;
   PRInt32 mImageY;
 
   // set if a selection is being dragged
   nsCOMPtr<nsISelection> mSelection;
 
-  // the screen position where drag gesture occured, used for positioning the
+  // the screen position where drag gesture occurred, used for positioning the
   // drag image when no image is specified. If a value is -1, no event was
   // supplied so the screen position is not known
   PRInt32 mScreenX;
   PRInt32 mScreenY;
 
   // the screen position where the drag ended
   nsIntPoint mEndDragPoint;
 
--- a/xpcom/ds/nsWindowsRegKey.cpp
+++ b/xpcom/ds/nsWindowsRegKey.cpp
@@ -199,17 +199,17 @@ nsWindowsRegKey::GetChildName(PRUint32 i
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsWindowsRegKey::HasChild(const nsAString &name, PRBool *result)
 {
   NS_ENSURE_TRUE(mKey, NS_ERROR_NOT_INITIALIZED);
 
-  // Check for the existance of a child key by opening the key with minimal
+  // Check for the existence of a child key by opening the key with minimal
   // rights.  Perhaps there is a more efficient way to do this?
 
   HKEY key;
   LONG rv = RegOpenKeyExW(mKey, PromiseFlatString(name).get(), 0,
                           STANDARD_RIGHTS_READ, &key);
 
   if (*result = (rv == ERROR_SUCCESS && key))
     RegCloseKey(key);
--- a/xpcom/glue/nsTWeakRef.h
+++ b/xpcom/glue/nsTWeakRef.h
@@ -143,17 +143,17 @@ public:
     mRef = other.mRef;
     if (mRef)
       mRef->AddRef();
     return *this;
   }
 
   /**
    * Get the referenced object.  This method may return null if the reference
-   * has been cleared or if an out-of-memory error occured at assignment.
+   * has been cleared or if an out-of-memory error occurred at assignment.
    */
   Type *get() const {
     return mRef ? mRef->mObj : nsnull;
   }
 
   /**
    * Called to "null out" the weak reference.  Typically, the object referenced
    * by this weak reference calls this method when it is being destroyed.
--- a/xpcom/io/nsIPipe.idl
+++ b/xpcom/io/nsIPipe.idl
@@ -130,17 +130,17 @@ interface nsISearchableInputStream : nsI
                 out unsigned long offsetSearchedTo);
 };
 
 %{C++
 
 /**
  * NS_NewPipe2
  *
- * This function supercedes NS_NewPipe.  It differs from NS_NewPipe in two
+ * This function supersedes NS_NewPipe.  It differs from NS_NewPipe in two
  * major ways:
  *  (1) returns nsIAsyncInputStream and nsIAsyncOutputStream, so it is
  *      not necessary to QI in order to access these interfaces.
  *  (2) the size of the pipe is determined by the number of segments
  *      times the size of each segment.
  *
  * @param pipeIn
  *        resulting input end of the pipe
--- a/xpcom/io/nsLocalFileWin.cpp
+++ b/xpcom/io/nsLocalFileWin.cpp
@@ -3049,17 +3049,17 @@ nsLocalFile::EnsureShortPath()
     if (!mShortWorkingPath.IsEmpty())
         return;
 #ifdef WINCE
 	 mShortWorkingPath.Assign(mWorkingPath);
 #else
     WCHAR thisshort[MAX_PATH];
     DWORD thisr = ::GetShortPathNameW(mWorkingPath.get(), thisshort,
                                       sizeof(thisshort));
-    // If an error occured (thisr == 0) thisshort is uninitialized memory!
+    // If an error occurred (thisr == 0) thisshort is uninitialized memory!
     if (thisr != 0 && thisr < sizeof(thisshort))
         mShortWorkingPath.Assign(thisshort);
     else
         mShortWorkingPath.Assign(mWorkingPath);
 #endif
 }
 
 // nsIHashable
--- a/xpcom/io/nsWildCard.cpp
+++ b/xpcom/io/nsWildCard.cpp
@@ -254,17 +254,17 @@ static int
     cp = ::_scan_and_copy(expr, T(')'), T('\0'), static_cast<T*>(NULL));
     if (cp == ABORTED || cp < 4) /* must be at least "(a|b" before ')' */
         return ABORTED;
     ++cp;                /* now index of char after closing parenthesis */
     e2 = (T *) NS_Alloc((1 + nsCharTraits<T>::length(expr)) * sizeof(T));
     if (!e2)
         return ABORTED;
     for (sx = 1; ; ++sx) {
-        /* Here, expr[sx] is one character past the preceeding '(' or '|'. */
+        /* Here, expr[sx] is one character past the preceding '(' or '|'. */
         /* Copy everything up to the next delimiter to e2 */
         count = ::_scan_and_copy(expr + sx, T(')'), T('|'), e2);
         if (count == ABORTED || !count) {
             ret = ABORTED;
             break;
         }
         sx += count;
         /* Append everything after closing parenthesis to e2. This is safe. */
--- a/xpcom/sample/nsSampleModule.cpp
+++ b/xpcom/sample/nsSampleModule.cpp
@@ -36,17 +36,17 @@
  *
  * ***** END LICENSE BLOCK ***** */
 #include "nsIGenericFactory.h"
 #include "nsIClassInfoImpl.h"
 
 #include "nsSample.h"
 
 ////////////////////////////////////////////////////////////////////////
-// NOTE this file supercedes nsSampleFactory.cpp.  nsSampleFactory has
+// NOTE this file supersedes nsSampleFactory.cpp.  nsSampleFactory has
 // extensive comments, but it has been CVS removed to reduce clutter
 // in this sample.  It's available to the interested via CVS history:
 // cvs up nsSampleFactory.cpp -r 1.10
 ////////////////////////////////////////////////////////////////////////
 
 ////////////////////////////////////////////////////////////////////////
 // With the below sample, you can define an implementation glue
 // that talks with xpcom for creation of component nsSampleImpl
--- a/xpcom/string/public/nsUTF8Utils.h
+++ b/xpcom/string/public/nsUTF8Utils.h
@@ -278,17 +278,17 @@ public:
             *buffer = p - 1;
             return 0xFFFD;
           }
       }
     else // U+DC00 - U+DFFF
       {
         // DC00- DFFF - Low Surrogate
 
-        // Found a low surrogate w/o a preceeding high surrogate. Flag
+        // Found a low surrogate w/o a preceding high surrogate. Flag
         // this as an error and return the Unicode replacement
         // character 0xFFFD.
 
         NS_WARNING("got a low Surrogate but no high surrogate");
         if (err)
           *err = PR_TRUE;
         *buffer = p;
         return 0xFFFD;
--- a/xpcom/tests/TestTArray.cpp
+++ b/xpcom/tests/TestTArray.cpp
@@ -433,17 +433,17 @@ static PRBool test_ptrarray() {
   if (*cary.SafeElementAt(0) != a || *cary.SafeElementAt(1) != b)
     return PR_FALSE;
 
   return PR_TRUE;
 }
 
 //----
 
-// This test relies too heavily on the existance of DebugGetHeader to be
+// This test relies too heavily on the existence of DebugGetHeader to be
 // useful in non-debug builds.
 #ifdef DEBUG
 static PRBool test_autoarray() {
   PRUint32 data[] = {4,6,8,2,4,1,5,7,3};
   nsAutoTArray<PRUint32, NS_ARRAY_LENGTH(data)> array;
 
   void* hdr = array.DebugGetHeader();
   if (hdr == nsTArray<PRUint32>().DebugGetHeader())
--- a/xpcom/tests/unit/test_iniProcessor.js
+++ b/xpcom/tests/unit/test_iniProcessor.js
@@ -118,17 +118,17 @@ for (testnum = 1; testnum <= 15; testnum
     parser = parserForFile(newfilename);
     checkParserOutput(parser, testdata[testnum - 1].reference);
 }
 
 /* ========== 16 ========== */
 
 // test writing to a new file.
 let newfile = do_get_file("data/");
-newfile.append("non-existant-file.ini");
+newfile.append("non-existent-file.ini");
 if (newfile.exists())
     newfile.remove(false);
 do_check_false(newfile.exists());
 
 let parser = factory.createINIParser(newfile);
 do_check_true(!!parser);
 do_check_true(parser instanceof Ci.nsIINIParserWriter);
 checkParserOutput(parser, {});
@@ -136,17 +136,17 @@ parser.writeFile();
 do_check_true(newfile.exists());
 
 // test adding a new section and new key
 parser.setString("section", "key", "value");
 parser.writeFile();
 do_check_true(newfile.exists());
 checkParserOutput(parser, {section: {key: "value"} });
 // read it in again, check for same data.
-parser = parserForFile("data/non-existant-file.ini");
+parser = parserForFile("data/non-existent-file.ini");
 checkParserOutput(parser, {section: {key: "value"} });
 
 /* ========== 17 ========== */
 
 // test modifying a existing key's value (in an existing section)
 parser = parserForFile("data/iniparser09.ini");
 checkParserOutput(parser, {section1: {name1: "value1"} });