Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 22 May 2019 22:37:14 +0000
changeset 475212 020c8c871c0d3b3920fe95935cfef06501976c0f
parent 475211 98fff5841f431d08657920cd48ed308d75dfead2
child 475213 9d7773bd3ae77a29908e365d5eece5890a334ab6
push id36057
push useraciure@mozilla.com
push dateThu, 23 May 2019 21:52:03 +0000
treeherdermozilla-central@d551d37b9ad0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersEhsan
bugs1552795
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan Differential Revision: https://phabricator.services.mozilla.com/D31769
accessible/interfaces/msaa/ISimpleDOMNode.idl
accessible/interfaces/msaa/ISimpleDOMText.idl
accessible/interfaces/nsIAccessibleEvent.idl
accessible/interfaces/nsIAccessibleRole.idl
accessible/interfaces/nsIAccessibleStates.idl
accessible/ipc/win/handler/HandlerData.idl
browser/components/migration/nsIBrowserProfileMigrator.idl
browser/components/shell/nsIShellService.idl
chrome/nsIChromeRegistry.idl
docshell/base/nsIContentViewer.idl
docshell/base/nsIDocShellTreeItem.idl
docshell/base/nsIDocumentLoaderFactory.idl
docshell/base/nsIRefreshURI.idl
docshell/base/nsIScrollable.idl
docshell/base/nsITooltipListener.idl
docshell/base/nsITooltipTextProvider.idl
docshell/base/nsIWebNavigation.idl
docshell/base/nsIWebNavigationInfo.idl
docshell/base/nsIWebPageDescriptor.idl
dom/base/nsISelectionDisplay.idl
dom/commandhandler/nsICommandManager.idl
dom/commandhandler/nsIControllerCommand.idl
dom/commandhandler/nsIControllerCommandTable.idl
dom/commandhandler/nsIControllerContext.idl
dom/html/nsIImageDocument.idl
dom/interfaces/base/nsIDOMWindowUtils.idl
dom/interfaces/base/nsIRemoteTab.idl
dom/interfaces/events/nsIDOMEventListener.idl
dom/interfaces/security/nsIContentSecurityPolicy.idl
dom/interfaces/sidebar/nsIWebProtocolHandlerRegistrar.idl
dom/interfaces/xul/nsIDOMXULButtonElement.idl
dom/interfaces/xul/nsIDOMXULControlElement.idl
dom/interfaces/xul/nsIDOMXULMenuListElement.idl
dom/interfaces/xul/nsIDOMXULMultSelectCntrlEl.idl
dom/interfaces/xul/nsIDOMXULSelectCntrlItemEl.idl
dom/plugins/base/nsIHTTPHeaderListener.idl
dom/plugins/base/nsIPluginInstanceOwner.idl
dom/xul/nsIController.idl
dom/xul/nsIControllers.idl
intl/locale/nsICollation.idl
layout/printing/nsIPrintProgress.idl
mobile/android/components/SessionStore.idl
modules/libjar/nsIZipReader.idl
modules/libpref/nsIPrefBranch.idl
modules/libpref/nsIPrefService.idl
modules/libpref/nsIRelativeFilePref.idl
netwerk/base/nsIAuthInformation.idl
netwerk/base/nsIAuthModule.idl
netwerk/base/nsIAuthPrompt.idl
netwerk/base/nsIAuthPrompt2.idl
netwerk/base/nsIByteRangeRequest.idl
netwerk/base/nsICachingChannel.idl
netwerk/base/nsIChannel.idl
netwerk/base/nsIChannelEventSink.idl
netwerk/base/nsIEncodedChannel.idl
netwerk/base/nsIForcePendingChannel.idl
netwerk/base/nsIIOService.idl
netwerk/base/nsIInputStreamChannel.idl
netwerk/base/nsIMultiPartChannel.idl
netwerk/base/nsINestedURI.idl
netwerk/base/nsINetAddr.idl
netwerk/base/nsINetUtil.idl
netwerk/base/nsINetworkLinkService.idl
netwerk/base/nsIPermission.idl
netwerk/base/nsIPermissionManager.idl
netwerk/base/nsIPrompt.idl
netwerk/base/nsIProtocolHandler.idl
netwerk/base/nsIRequest.idl
netwerk/base/nsIResumableChannel.idl
netwerk/base/nsISocketTransport.idl
netwerk/base/nsISocketTransportService.idl
netwerk/base/nsISpeculativeConnect.idl
netwerk/base/nsIStreamListenerTee.idl
netwerk/base/nsIStreamTransportService.idl
netwerk/base/nsISystemProxySettings.idl
netwerk/base/nsITraceableChannel.idl
netwerk/base/nsITransport.idl
netwerk/base/nsIURI.idl
netwerk/base/nsIURL.idl
netwerk/base/nsIUploadChannel.idl
netwerk/cache/nsICache.idl
netwerk/cache/nsICacheEntryDescriptor.idl
netwerk/cache/nsICacheService.idl
netwerk/cache/nsICacheSession.idl
netwerk/cache/nsICacheVisitor.idl
netwerk/cache2/nsICacheEntryOpenCallback.idl
netwerk/cache2/nsICacheStorage.idl
netwerk/cookie/nsICookie.idl
netwerk/cookie/nsICookie2.idl
netwerk/cookie/nsICookieManager.idl
netwerk/dns/nsIEffectiveTLDService.idl
netwerk/mime/nsIMIMEHeaderParam.idl
netwerk/mime/nsIMIMEInfo.idl
netwerk/mime/nsIMIMEService.idl
netwerk/protocol/file/nsIFileProtocolHandler.idl
netwerk/protocol/websocket/nsIWebSocketChannel.idl
netwerk/protocol/websocket/nsIWebSocketListener.idl
netwerk/socket/nsISocketProvider.idl
netwerk/streamconv/mozITXTToHTMLConv.idl
netwerk/streamconv/nsIDirIndex.idl
netwerk/streamconv/nsIStreamConverter.idl
netwerk/streamconv/nsIStreamConverterService.idl
netwerk/test/httpserver/nsIHttpServer.idl
parser/html/nsIParserUtils.idl
parser/htmlparser/nsIExpatSink.idl
security/manager/ssl/nsIASN1Object.idl
security/manager/ssl/nsIBadCertListener2.idl
security/manager/ssl/nsISecurityUITelemetry.idl
storage/mozIStorageAggregateFunction.idl
storage/mozIStorageBaseStatement.idl
storage/mozIStorageConnection.idl
storage/mozIStorageError.idl
storage/mozIStorageFunction.idl
storage/mozIStoragePendingStatement.idl
storage/mozIStorageProgressHandler.idl
storage/mozIStorageResultSet.idl
storage/mozIStorageRow.idl
storage/mozIStorageStatementCallback.idl
toolkit/components/autocomplete/nsIAutoCompletePopup.idl
toolkit/components/autocomplete/nsIAutoCompleteResult.idl
toolkit/components/autocomplete/nsIAutoCompleteSearch.idl
toolkit/components/browser/nsIEmbeddingSiteWindow.idl
toolkit/components/browser/nsIPrintPreviewNavigation.idl
toolkit/components/browser/nsIPrintingPromptService.idl
toolkit/components/browser/nsIWebBrowser.idl
toolkit/components/browser/nsIWebBrowserChrome2.idl
toolkit/components/browser/nsIWebBrowserChromeFocus.idl
toolkit/components/browser/nsIWebBrowserPrint.idl
toolkit/components/find/nsIFindService.idl
toolkit/components/find/nsIWebBrowserFind.idl
toolkit/components/parentalcontrols/nsIParentalControlsService.idl
toolkit/components/startup/public/nsIAppStartup.idl
toolkit/components/urlformatter/nsIURLFormatter.idl
toolkit/components/windowwatcher/nsIDialogParamBlock.idl
toolkit/mozapps/extensions/amIWebInstallPrompt.idl
toolkit/mozapps/update/nsIUpdateService.idl
toolkit/profile/nsIProfileMigrator.idl
toolkit/profile/nsIToolkitProfile.idl
toolkit/xre/nsINativeAppSupport.idl
uriloader/base/nsIURIContentListener.idl
uriloader/base/nsIURILoader.idl
uriloader/base/nsIWebProgressListener.idl
uriloader/exthandler/nsIExternalHelperAppService.idl
uriloader/exthandler/nsIExternalProtocolService.idl
uriloader/prefetch/nsIOfflineCacheUpdate.idl
widget/cocoa/nsPIWidgetCocoa.idl
widget/nsIBaseWindow.idl
widget/nsIClipboard.idl
widget/nsIClipboardOwner.idl
widget/nsIDragSession.idl
widget/nsIFilePicker.idl
widget/nsIFormatConverter.idl
widget/nsIGfxInfoDebug.idl
widget/nsIIdleService.idl
widget/nsIIdleServiceInternal.idl
widget/nsIJumpListBuilder.idl
widget/nsIJumpListItem.idl
widget/nsIMacDockSupport.idl
widget/nsIPrintSettingsService.idl
widget/nsISound.idl
widget/nsITaskbarWindowPreview.idl
widget/nsITransferable.idl
xpcom/base/nsIDebug2.idl
xpcom/base/nsIErrorService.idl
xpcom/base/nsIInterfaceRequestor.idl
xpcom/base/nsIMemory.idl
xpcom/base/nsISupports.idl
xpcom/base/nsIVersionComparator.idl
xpcom/base/nsrootidl.idl
xpcom/components/nsIClassInfo.idl
xpcom/components/nsIComponentManager.idl
xpcom/components/nsIComponentRegistrar.idl
xpcom/components/nsIFactory.idl
xpcom/components/nsIModule.idl
xpcom/components/nsIServiceManager.idl
xpcom/ds/nsIMutableArray.idl
xpcom/ds/nsIObserver.idl
xpcom/ds/nsIObserverService.idl
xpcom/ds/nsIProperties.idl
xpcom/ds/nsIPropertyBag2.idl
xpcom/ds/nsIWindowsRegKey.idl
xpcom/io/nsIAsyncInputStream.idl
xpcom/io/nsIAsyncOutputStream.idl
xpcom/io/nsIBinaryInputStream.idl
xpcom/io/nsIBinaryOutputStream.idl
xpcom/io/nsIDirectoryEnumerator.idl
xpcom/io/nsIDirectoryService.idl
xpcom/io/nsIFile.idl
xpcom/io/nsIInputStream.idl
xpcom/io/nsIInputStreamTee.idl
xpcom/io/nsILineInputStream.idl
xpcom/io/nsILocalFileMac.idl
xpcom/io/nsILocalFileWin.idl
xpcom/io/nsIOutputStream.idl
xpcom/io/nsIPipe.idl
xpcom/io/nsISafeOutputStream.idl
xpcom/io/nsIScriptableInputStream.idl
xpcom/io/nsISeekableStream.idl
xpcom/io/nsIStorageStream.idl
xpcom/io/nsIUnicharInputStream.idl
xpcom/io/nsIUnicharLineInputStream.idl
xpcom/threads/nsIEnvironment.idl
xpcom/threads/nsISupportsPriority.idl
xpcom/threads/nsIThreadInternal.idl
xpcom/threads/nsIThreadManager.idl
xpfe/appshell/nsIAppShellService.idl
xpfe/appshell/nsIXULBrowserWindow.idl
xpfe/appshell/nsIXULWindow.idl
--- a/accessible/interfaces/msaa/ISimpleDOMNode.idl
+++ b/accessible/interfaces/msaa/ISimpleDOMNode.idl
@@ -8,17 +8,17 @@ cpp_quote("//")
 cpp_quote("// ISimpleDOMNode")
 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
 cpp_quote("// An interface that extends MSAA's IAccessible to provide readonly DOM node information via cross-process COM.")
 cpp_quote("//")
 cpp_quote("// get_nodeInfo(")
 cpp_quote("//  /* [out] */ BSTR  *nodeName,   // For elements, this is the tag name")
 cpp_quote("//  /* [out] */ short  *nameSpaceID,")
 cpp_quote("//  /* [out] */ BSTR  *nodeValue, ")
-cpp_quote("//  /* [out] */ unsigned int    *numChildren); ") 
+cpp_quote("//  /* [out] */ unsigned int    *numChildren); ")
 cpp_quote("//  /* [out] */ unsigned int    *uniqueID;  // In Win32 accessible events we generate, the target's childID matches to this")
 cpp_quote("//  /* [out] */ unsigned short  *nodeType,")
 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
 cpp_quote("// Get the basic information about a node.")
 cpp_quote("// The namespace ID can be mapped to an URI using nsISimpleDOMDocument::get_nameSpaceURIForID()")
 cpp_quote("//")
 cpp_quote("// get_attributes(")
 cpp_quote("//  /* [in]  */ unsigned short maxAttribs,")
@@ -119,54 +119,54 @@ interface ISimpleDOMNode : IUnknown
     [out] BSTR *nodeName,   // for performance returns NULL for text nodes (true nodeName would be "#text")
     [out] short *nameSpaceID,
     [out] BSTR *nodeValue,
     [out] unsigned int *numChildren,
     [out] unsigned int *uniqueID, // In Win32 accessible events we generate, the target's childID matches to this
     [out, retval] unsigned short *nodeType
   );
 
-  [propget] HRESULT attributes(  
+  [propget] HRESULT attributes(
     [in] unsigned short maxAttribs,
-    [out, size_is(maxAttribs), length_is(*numAttribs)] BSTR *attribNames, 
-    [out, size_is(maxAttribs), length_is(*numAttribs)] short *nameSpaceID,  
+    [out, size_is(maxAttribs), length_is(*numAttribs)] BSTR *attribNames,
+    [out, size_is(maxAttribs), length_is(*numAttribs)] short *nameSpaceID,
     [out, size_is(maxAttribs), length_is(*numAttribs)] BSTR *attribValues,
     [out, retval] unsigned short *numAttribs
   );
 
-  [propget] HRESULT attributesForNames(  
+  [propget] HRESULT attributesForNames(
     [in] unsigned short numAttribs,
-    [in, size_is(numAttribs), length_is(numAttribs)] BSTR *attribNames, 
-    [in, size_is(numAttribs), length_is(numAttribs)] short *nameSpaceID,  
+    [in, size_is(numAttribs), length_is(numAttribs)] BSTR *attribNames,
+    [in, size_is(numAttribs), length_is(numAttribs)] short *nameSpaceID,
     [out, retval, size_is(numAttribs), length_is(numAttribs)] BSTR *attribValues
   );
 
-  [propget] HRESULT computedStyle(  
+  [propget] HRESULT computedStyle(
     [in] unsigned short maxStyleProperties,
     [in] boolean useAlternateView,  // If TRUE, returns properites for media as set in Document's set_alternateViewMediaTypes
-    [out, size_is(maxStyleProperties), length_is(*numStyleProperties)] BSTR *styleProperties, 
+    [out, size_is(maxStyleProperties), length_is(*numStyleProperties)] BSTR *styleProperties,
     [out, size_is(maxStyleProperties), length_is(*numStyleProperties)] BSTR *styleValues,
     [out, retval] unsigned short *numStyleProperties
   );
 
-  [propget] HRESULT computedStyleForProperties(  
-    [in] unsigned short numStyleProperties, 
+  [propget] HRESULT computedStyleForProperties(
+    [in] unsigned short numStyleProperties,
     [in] boolean useAlternateView,  // If TRUE, returns properites for media as set in Document's set_alternateViewMediaTypes
-    [in, size_is(numStyleProperties), length_is(numStyleProperties)] BSTR *styleProperties, 
+    [in, size_is(numStyleProperties), length_is(numStyleProperties)] BSTR *styleProperties,
     [out, retval, size_is(numStyleProperties), length_is(numStyleProperties)] BSTR *styleValues
   );
 
   HRESULT scrollTo([in] boolean placeTopLeft);
 
   [propget] HRESULT parentNode([out, retval] ISimpleDOMNode **node);
   [propget] HRESULT firstChild([out, retval] ISimpleDOMNode **node);
   [propget] HRESULT lastChild([out, retval] ISimpleDOMNode **node);
   [propget] HRESULT previousSibling([out, retval] ISimpleDOMNode **node);
   [propget] HRESULT nextSibling([out, retval] ISimpleDOMNode **node);
-  [propget] HRESULT childAt([in] unsigned childIndex, 
+  [propget] HRESULT childAt([in] unsigned childIndex,
                             [out, retval] ISimpleDOMNode **node);
 
   [propget] HRESULT innerHTML([out, retval] BSTR *innerHTML);
 
   [propget, local] HRESULT localInterface([out][retval] void **localInterface);
 
   [propget, call_as(get_localInterface)]
   HRESULT remoteLocalInterface([out][retval] IUnknown **localInterface);
--- a/accessible/interfaces/msaa/ISimpleDOMText.idl
+++ b/accessible/interfaces/msaa/ISimpleDOMText.idl
@@ -1,17 +1,17 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 import "objidl.idl";
 import "oaidl.idl";
-        
+
 cpp_quote("///////////////////////////////////////////////////////////////////////////////////////////////////////")
 cpp_quote("//")
 cpp_quote("// ISimpleDOMText")
 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
 cpp_quote("// An interface that extends MSAA's IAccessible to provide important additional capabilities on text nodes")
 cpp_quote("//")
 cpp_quote("// [propget] domText(/* out,retval */ BSTR *domText")
 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
@@ -52,28 +52,28 @@ cpp_quote("")
 cpp_quote("")
 
 [object, uuid(4e747be5-2052-4265-8af0-8ecad7aad1c0)]
 interface ISimpleDOMText: IUnknown
 {
   // Includes whitespace in DOM
   [propget] HRESULT domText([out, retval] BSTR *domText);
 
-  HRESULT get_clippedSubstringBounds([in] unsigned int startIndex, 
-                                     [in] unsigned int endIndex, 
+  HRESULT get_clippedSubstringBounds([in] unsigned int startIndex,
+                                     [in] unsigned int endIndex,
                                      [out] int *x,
                                      [out] int *y,
                                      [out] int *width,
                                      [out] int *height);
 
-  HRESULT get_unclippedSubstringBounds([in] unsigned int startIndex, 
-                                       [in] unsigned int endIndex, 
+  HRESULT get_unclippedSubstringBounds([in] unsigned int startIndex,
+                                       [in] unsigned int endIndex,
                                        [out] int *x,
                                        [out] int *y,
                                        [out] int *width,
                                        [out] int *height);
 
-  HRESULT scrollToSubstring([in] unsigned int startIndex, 
+  HRESULT scrollToSubstring([in] unsigned int startIndex,
                             [in] unsigned int endIndex);
 
   [propget] HRESULT fontFamily([out, retval] BSTR *fontFamily);
 };
 
--- a/accessible/interfaces/nsIAccessibleEvent.idl
+++ b/accessible/interfaces/nsIAccessibleEvent.idl
@@ -14,21 +14,21 @@ webidl Node;
 #define NS_ACCESSIBLE_EVENT_TOPIC "accessible-event"
 %}
 
 /**
  * An interface for accessibility events listened to
  * by in-process accessibility clients, which can be used
  * to find out how to get accessibility and DOM interfaces for
  * the event and its target. To listen to in-process accessibility invents,
- * make your object an nsIObserver, and listen for accessible-event by 
+ * make your object an nsIObserver, and listen for accessible-event by
  * using code something like this:
- *   nsCOMPtr<nsIObserverService> observerService = 
+ *   nsCOMPtr<nsIObserverService> observerService =
  *     do_GetService("@mozilla.org/observer-service;1", &rv);
- *   if (NS_SUCCEEDED(rv)) 
+ *   if (NS_SUCCEEDED(rv))
  *     rv = observerService->AddObserver(this, "accessible-event", PR_TRUE);
  */
 [scriptable, builtinclass, uuid(20c69a40-6c2c-42a3-a578-6f4473aab9dd)]
 interface nsIAccessibleEvent : nsISupports
 {
   /**
    * An object has been created.
    */
@@ -185,17 +185,17 @@ interface nsIAccessibleEvent : nsISuppor
    * An application is about to enter drag-and-drop mode
    */
   const unsigned long EVENT_DRAGDROP_START = 0x001F;
 
   /**
    * An application is about to exit drag-and-drop mode
    */
   const unsigned long EVENT_DRAGDROP_END = 0x0020;
-  
+
   /**
    * A dialog box has been displayed
    */
   const unsigned long EVENT_DIALOG_START = 0x0021;
 
   /**
    * A dialog box has been closed
    */
@@ -433,23 +433,23 @@ interface nsIAccessibleEvent : nsISuppor
    */
   const unsigned long EVENT_LAST_ENTRY = 0x005A;
 
   /**
    * The type of event, based on the enumerated event values
    * defined in this interface.
    */
   readonly attribute unsigned long eventType;
-  
+
   /**
    * The nsIAccessible associated with the event.
    * May return null if no accessible is available
    */
   readonly attribute nsIAccessible accessible;
-  
+
   /**
    * The nsIAccessibleDocument that the event target nsIAccessible
    * resides in. This can be used to get the DOM window,
    * the DOM document and the window handler, among other things.
    */
   readonly attribute nsIAccessibleDocument accessibleDocument;
 
   /**
--- a/accessible/interfaces/nsIAccessibleRole.idl
+++ b/accessible/interfaces/nsIAccessibleRole.idl
@@ -118,17 +118,17 @@ interface nsIAccessibleRole : nsISupport
   const unsigned long ROLE_PANE = 16;
 
   /**
    * Represents a graphical image used to represent data.
    */
   const unsigned long ROLE_CHART = 17;
 
   /**
-   * Represents a dialog box or message box. It is used for xul:dialog, 
+   * Represents a dialog box or message box. It is used for xul:dialog,
    * role="dialog".
    */
   const unsigned long ROLE_DIALOG = 18;
 
   /**
    * Represents a window border.
    */
   const unsigned long ROLE_BORDER = 19;
@@ -704,37 +704,37 @@ interface nsIAccessibleRole : nsISupport
    * A item of list that is shown by combobox;
    */
   const unsigned long ROLE_COMBOBOX_OPTION = 115;
 
   /**
    * An image map -- has child links representing the areas
    */
   const unsigned long ROLE_IMAGE_MAP = 116;
-  
+
   /**
    * An option in a listbox
    */
   const unsigned long ROLE_OPTION = 117;
-  
+
   /**
    * A rich option in a listbox, it can have other widgets as children
    */
   const unsigned long ROLE_RICH_OPTION = 118;
-  
+
   /**
    * A list of options
    */
   const unsigned long ROLE_LISTBOX = 119;
 
   /**
    * Represents a mathematical equation in the accessible name
    */
   const unsigned long ROLE_FLAT_EQUATION = 120;
-  
+
   /**
    * Represents a cell within a grid. It is used for role="gridcell". Unlike
    * ROLE_CELL, it allows the calculation of the accessible name from subtree.
    * Also, see ROLE_TABLE.
    */
   const unsigned long ROLE_GRID_CELL = 121;
 
   /**
--- a/accessible/interfaces/nsIAccessibleStates.idl
+++ b/accessible/interfaces/nsIAccessibleStates.idl
@@ -54,24 +54,24 @@ interface nsIAccessibleStates : nsISuppo
 /**
  * Extended state flags (for now non-MSAA, for Java and Gnome/ATK support)
  * "Extended state flags" has separate value space from "MSAA State flags".
  */
   const unsigned long  EXT_STATE_SUPPORTS_AUTOCOMPLETION = 0x00000001;  // For editable areas that have any kind of autocompletion
   const unsigned long  EXT_STATE_DEFUNCT                 = 0x00000002;  // Object no longer exists
   const unsigned long  EXT_STATE_SELECTABLE_TEXT         = 0x00000004;  // For text which is selectable, object must implement nsIAccessibleText
   const unsigned long  EXT_STATE_EDITABLE                = 0x00000008;  // Implements nsIAccessibleEditableText
-  const unsigned long  EXT_STATE_ACTIVE                  = 0x00000010;  // This window is currently the active window    
-  const unsigned long  EXT_STATE_MODAL                   = 0x00000020;  // Must do something with control before leaving it    
-  const unsigned long  EXT_STATE_MULTI_LINE              = 0x00000040;  // Edit control that can take multiple lines    
+  const unsigned long  EXT_STATE_ACTIVE                  = 0x00000010;  // This window is currently the active window
+  const unsigned long  EXT_STATE_MODAL                   = 0x00000020;  // Must do something with control before leaving it
+  const unsigned long  EXT_STATE_MULTI_LINE              = 0x00000040;  // Edit control that can take multiple lines
   const unsigned long  EXT_STATE_HORIZONTAL              = 0x00000080;  // Uses horizontal layout
   const unsigned long  EXT_STATE_OPAQUE                  = 0x00000100;  // Indicates this object paints every pixel within its rectangular region.
-  const unsigned long  EXT_STATE_SINGLE_LINE             = 0x00000200;  // This text object can only contain 1 line of text    
-  const unsigned long  EXT_STATE_TRANSIENT               = 0x00000400;  // 
-  const unsigned long  EXT_STATE_VERTICAL                = 0x00000800;  // Especially used for sliders and scrollbars  
+  const unsigned long  EXT_STATE_SINGLE_LINE             = 0x00000200;  // This text object can only contain 1 line of text
+  const unsigned long  EXT_STATE_TRANSIENT               = 0x00000400;  //
+  const unsigned long  EXT_STATE_VERTICAL                = 0x00000800;  // Especially used for sliders and scrollbars
   const unsigned long  EXT_STATE_STALE                   = 0x00001000;  // Object not dead, but not up-to-date either
   const unsigned long  EXT_STATE_ENABLED                 = 0x00002000;  // A widget that is not unavailable
   const unsigned long  EXT_STATE_SENSITIVE               = 0x00004000;  // Same as ENABLED for now
   const unsigned long  EXT_STATE_EXPANDABLE              = 0x00008000;  // If COLLAPSED or EXPANDED
   const unsigned long  EXT_STATE_PINNED                  = 0x00010000;  // Indicates object is pinned.
   const unsigned long  EXT_STATE_CURRENT                 = 0x00020000;  // Indicates object is the current item in its container
 };
 
--- a/accessible/ipc/win/handler/HandlerData.idl
+++ b/accessible/ipc/win/handler/HandlerData.idl
@@ -138,17 +138,17 @@ interface HandlerData
 interface IHandlerControl : IUnknown
 {
   HRESULT Invalidate();
   HRESULT OnTextChange([in] long aHwnd, [in] long aIA2UniqueId,
                        [in] VARIANT_BOOL aIsInsert,
                        [in] IA2TextSegment* aText);
 }
 
-typedef struct _IARelationData 
+typedef struct _IARelationData
 {
   BSTR mType;
   long mNTargets;
 } IARelationData;
 
 typedef struct _AccChildData
 {
   NEWEST_IA2_INTERFACE* mAccessible;
--- a/browser/components/migration/nsIBrowserProfileMigrator.idl
+++ b/browser/components/migration/nsIBrowserProfileMigrator.idl
@@ -22,24 +22,24 @@ interface nsIBrowserProfileMigrator : ns
   const unsigned short PASSWORDS   = 0x0010;
   const unsigned short BOOKMARKS   = 0x0020;
   const unsigned short OTHERDATA   = 0x0040;
   const unsigned short SESSION     = 0x0080;
 
   /**
    * Copy user profile information to the current active profile.
    * @param aItems   list of data items to migrate. see above for values.
-   * @param aStartup helper interface which is non-null if called during startup. 
+   * @param aStartup helper interface which is non-null if called during startup.
    * @param aProfile profile to migrate from, if there is more than one.
    */
   void migrate(in unsigned short aItems, in nsIProfileStartup aStartup, in jsval aProfile);
 
   /**
    * A bit field containing profile items that this migrator
-   * offers for import. 
+   * offers for import.
    * @param   aProfile the profile that we are looking for available data
    *          to import
    * @param   aDoingStartup "true" if the profile is not currently being used.
    * @return  Promise containing a bit field containing profile items (see above)
    * @note    a return value of 0 represents no items rather than ALL.
    */
   jsval getMigrateData(in jsval aProfile, in boolean aDoingStartup);
 
--- a/browser/components/shell/nsIShellService.idl
+++ b/browser/components/shell/nsIShellService.idl
@@ -21,42 +21,42 @@ interface nsIShellService : nsISupports
    *                      false if the check should be made for HTTP only.
    *                      This parameter may be ignored on some platforms.
    */
   boolean isDefaultBrowser([optional] in boolean aForAllTypes);
 
   /**
    * Registers Firefox as the "Default Browser."
    *
-   * @param aClaimAllTypes Register Firefox as the handler for 
+   * @param aClaimAllTypes Register Firefox as the handler for
    *                       additional protocols (ftp, chrome etc)
    *                       and web documents (.html, .xhtml etc).
    * @param aForAllUsers   Whether or not Firefox should attempt
    *                       to become the default browser for all
-   *                       users on a multi-user system. 
+   *                       users on a multi-user system.
    */
   void setDefaultBrowser(in boolean aClaimAllTypes, in boolean aForAllUsers);
 
-  /** 
+  /**
    * Flags for positioning/sizing of the Desktop Background image.
    */
   const long BACKGROUND_TILE      = 1;
   const long BACKGROUND_STRETCH   = 2;
   const long BACKGROUND_CENTER    = 3;
   const long BACKGROUND_FILL      = 4;
   const long BACKGROUND_FIT       = 5;
   const long BACKGROUND_SPAN      = 6;
 
     /**
-     * Sets the desktop background image using either the HTML <IMG> 
+     * Sets the desktop background image using either the HTML <IMG>
      * element supplied or the background image of the element supplied.
      *
      * @param aImageElement Either a HTML <IMG> element or an element with
      *                      a background image from which to source the
-     *                      background image. 
+     *                      background image.
      * @param aPosition     How to place the image on the desktop
      * @param aImageName    The image name. Equivalent to the leaf name of the
      *                      location.href.
      */
   void setDesktopBackground(in Element aElement,
                             in long aPosition,
                             in ACString aImageName);
 
@@ -65,23 +65,23 @@ interface nsIShellService : nsISupports
    * openApplication.
    */
   const long APPLICATION_MAIL        = 0;
   const long APPLICATION_NEWS        = 1;
 
   /**
    * Opens the application specified. If more than one application of the
    * given type is available on the system, the default or "preferred"
-   * application is used. 
+   * application is used.
    */
   void openApplication(in long aApplication);
 
-  /** 
-   * The desktop background color, visible when no background image is 
-   * used, or if the background image is centered and does not fill the 
+  /**
+   * The desktop background color, visible when no background image is
+   * used, or if the background image is centered and does not fill the
    * entire screen. A rgb value, where (r << 16 | g << 8 | b)
    */
   attribute unsigned long desktopBackgroundColor;
 
   /**
    * Opens an application with a specific URI to load.
    * @param   application
    *          The application file (or bundle directory, on OS X)
--- a/chrome/nsIChromeRegistry.idl
+++ b/chrome/nsIChromeRegistry.idl
@@ -44,17 +44,17 @@ interface nsIChromeRegistry : nsISupport
 interface nsIXULChromeRegistry : nsIChromeRegistry
 {
   // If the optional asBCP47 parameter is true, the locale code will be
   // converted to a BCP47 language tag; in particular, this means that
   // "ja-JP-mac" will be returned as "ja-JP-x-lvariant-mac", which can be
   // passed to ECMA402 Intl API methods without throwing a RangeError.
   ACString getSelectedLocale(in ACString packageName,
                              [optional] in boolean asBCP47);
-  
+
   // Get whether the default writing direction of the locale is RTL
   // (or may be overridden by intl.uidirection pref)
   boolean isLocaleRTL(in ACString package);
 
   /**
    * Installable skin XBL is not always granted the same privileges as other
    * chrome. This asks the chrome registry whether scripts are allowed to be
    * run for a particular chrome URI. Do not pass non-chrome URIs to this
--- a/docshell/base/nsIContentViewer.idl
+++ b/docshell/base/nsIContentViewer.idl
@@ -95,17 +95,17 @@ interface nsIContentViewer : nsISupports
    * In this case, the corresponding docshell will not allow navigation.
    */
   readonly attribute boolean beforeUnloadFiring;
 
   void pageHide(in boolean isUnload);
 
   /**
    * All users of a content viewer are responsible for calling both
-   * close() and destroy(), in that order. 
+   * close() and destroy(), in that order.
    *
    * close() should be called when the load of a new page for the next
    * content viewer begins, and destroy() should be called when the next
    * content viewer replaces this one.
    *
    * |historyEntry| sets the session history entry for the content viewer.  If
    * this is null, then Destroy() will be called on the document by close().
    * If it is non-null, the document will not be destroyed, and the following
--- a/docshell/base/nsIDocShellTreeItem.idl
+++ b/docshell/base/nsIDocShellTreeItem.idl
@@ -10,17 +10,17 @@ interface mozIDOMWindowProxy;
 interface nsIDocShellTreeOwner;
 interface nsPIDOMWindowOuter;
 
 webidl Document;
 
 /**
  * The nsIDocShellTreeItem supplies the methods that are required of any item
  * that wishes to be able to live within the docshell tree either as a middle
- * node or a leaf. 
+ * node or a leaf.
  */
 
 [scriptable, builtinclass, uuid(9b7c586f-9214-480c-a2c4-49b526fff1a6)]
 interface nsIDocShellTreeItem : nsISupports
 {
 	/*
 	name of the DocShellTreeItem
 	*/
@@ -41,17 +41,17 @@ interface nsIDocShellTreeItem : nsISuppo
 	const long typeChrome=0;            // typeChrome must equal 0
 	const long typeContent=1;           // typeContent must equal 1
 	const long typeContentWrapper=2;    // typeContentWrapper must equal 2
 	const long typeChromeWrapper=3;     // typeChromeWrapper must equal 3
 
 	const long typeAll=0x7FFFFFFF;
 
 	/*
-	The type this item is.  
+	The type this item is.
 	*/
 	readonly attribute long itemType;
 	[noscript,notxpcom,nostdcall] long ItemType();
 
 	/*
 	Parent DocShell.
 	*/
 	readonly attribute nsIDocShellTreeItem parent;
@@ -60,30 +60,30 @@ interface nsIDocShellTreeItem : nsISuppo
 	This getter returns the same thing parent does however if the parent
 	is of a different itemType, or if the parent is an <iframe mozbrowser>.
 	It will instead return nullptr.  This call is a convience function for
 	Ithose wishing to not cross the boundaries at which item types change.
 	*/
 	readonly attribute nsIDocShellTreeItem sameTypeParent;
 
 	/*
-	Returns the root DocShellTreeItem.  This is a convience equivalent to 
+	Returns the root DocShellTreeItem.  This is a convience equivalent to
 	getting the parent and its parent until there isn't a parent.
 	*/
 	readonly attribute nsIDocShellTreeItem rootTreeItem;
 
 	/*
-	Returns the root DocShellTreeItem of the same type.  This is a convience 
-	equivalent to getting the parent of the same type and its parent until 
+	Returns the root DocShellTreeItem of the same type.  This is a convience
+	equivalent to getting the parent of the same type and its parent until
 	there isn't a parent.
 	*/
 	readonly attribute nsIDocShellTreeItem sameTypeRootTreeItem;
 
 	/*
-	Returns the docShellTreeItem with the specified name.  Search order is as 
+	Returns the docShellTreeItem with the specified name.  Search order is as
 	follows...
 	1.)  Check name of self, if it matches return it.
 	2.)  For each immediate child.
 		a.) Check name of child and if it matches return it.
 		b.)  Ask the child to perform the check
 			i.) Do not ask a child if it is the aRequestor
 			ii.) Do not ask a child if it is of a different item type.
 	3.)  If there is a parent of the same item type ask parent to perform the check
@@ -109,35 +109,35 @@ interface nsIDocShellTreeItem : nsISuppo
 	                                     in nsIDocShellTreeItem aRequestor,
 	                                     in nsIDocShellTreeItem aOriginalRequestor,
 	                                     in bool aSkipTabGroup);
 
 	/*
 	The owner of the DocShell Tree.  This interface will be called upon when
 	the docshell has things it needs to tell to the owner of the docshell.
 	Note that docShell tree ownership does not cross tree types.  Meaning
-	setting ownership on a chrome tree does not set ownership on the content 
+	setting ownership on a chrome tree does not set ownership on the content
 	sub-trees.  A given tree's boundaries are identified by the type changes.
 	Trees of different types may be connected, but should not be traversed
 	for things such as ownership.
-	
-	Note implementers of this interface should NOT effect the lifetime of the 
+
+	Note implementers of this interface should NOT effect the lifetime of the
 	parent DocShell by holding this reference as it creates a cycle.  Owners
 	when releasing this interface should set the treeOwner to nullptr.
 	Implementers of this interface are guaranteed that when treeOwner is
 	set that the poitner is valid without having to addref.
-	
-	Further note however when others try to get the interface it should be 
-	addref'd before handing it to them. 
+
+	Further note however when others try to get the interface it should be
+	addref'd before handing it to them.
 	*/
 	readonly attribute nsIDocShellTreeOwner treeOwner;
 	[noscript] void setTreeOwner(in nsIDocShellTreeOwner treeOwner);
 
 	/*
-	The current number of DocShells which are immediate children of the 
+	The current number of DocShells which are immediate children of the
 	this object.
 	*/
 	readonly attribute long childCount;
 
 	/*
 	Add a new child DocShellTreeItem.  Adds to the end of the list.
 	Note that this does NOT take a reference to the child.  The child stays
 	alive only as long as it's referenced from outside the docshell tree.
--- a/docshell/base/nsIDocumentLoaderFactory.idl
+++ b/docshell/base/nsIDocumentLoaderFactory.idl
@@ -23,17 +23,17 @@ webidl Document;
  * The component is a service, so use GetService, not CreateInstance to get it.
  */
 
 [scriptable, uuid(e795239e-9d3c-47c4-b063-9e600fb3b287)]
 interface nsIDocumentLoaderFactory : nsISupports {
     nsIContentViewer createInstance(in string aCommand,
                               in nsIChannel aChannel,
                               in nsILoadGroup aLoadGroup,
-                              in ACString aContentType, 
+                              in ACString aContentType,
                               in nsIDocShell aContainer,
                               in nsISupports aExtraInfo,
                               out nsIStreamListener aDocListenerResult);
 
     nsIContentViewer createInstanceForDocument(in nsISupports aContainer,
                                          in Document aDocument,
                                          in string aCommand);
 };
--- a/docshell/base/nsIRefreshURI.idl
+++ b/docshell/base/nsIRefreshURI.idl
@@ -10,24 +10,24 @@ interface nsIChannel;
 interface nsIPrincipal;
 interface nsIURI;
 
 [scriptable, uuid(a5e61a3c-51bd-45be-ac0c-e87b71860656)]
 interface nsIRefreshURI : nsISupports {
     /**
       * Load a uri after waiting for aMillis milliseconds. If the docshell
       * is busy loading a page currently, the refresh request will be
-      * queued and executed when the current load finishes. 
+      * queued and executed when the current load finishes.
       *
       * @param aUri The uri to refresh.
       * @param aPrincipal The triggeringPrincipal for the refresh load
       *   May be null, in which case the principal of current document will be
       *   applied.
       * @param aMillis The number of milliseconds to wait.
-      * @param aRepeat Flag to indicate if the uri is to be 
+      * @param aRepeat Flag to indicate if the uri is to be
       *                repeatedly refreshed every aMillis milliseconds.
       * @param aMetaRefresh Flag to indicate if this is a Meta refresh.
       */
     void refreshURI(in nsIURI aURI, in nsIPrincipal aPrincipal,
                     in long aMillis, in boolean aRepeat,
                     in boolean aMetaRefresh);
 
     /**
@@ -40,34 +40,34 @@ interface nsIRefreshURI : nsISupports {
       * @param aMillis The number of milliseconds by which this refresh would
       *                be delayed if it were not being forced.
       * @param aMetaRefresh Flag to indicate if this is a meta refresh.
       */
     void forceRefreshURI(in nsIURI aURI, in nsIPrincipal aPrincipal,
                          in long aMillis, in boolean aMetaRefresh);
 
     /**
-      * Checks the passed in channel to see if there is a refresh header, 
+      * Checks the passed in channel to see if there is a refresh header,
       * if there is, will setup a timer to refresh the uri found
       * in the header. If docshell is busy loading a page currently, the
-      * request will be queued and executed when the current page 
-      * finishes loading. 
+      * request will be queued and executed when the current page
+      * finishes loading.
       *
       * Returns the NS_REFRESHURI_HEADER_FOUND success code if a refresh
       * header was found and successfully setup.
       *
-      * @param aChannel The channel to be parsed. 
+      * @param aChannel The channel to be parsed.
       */
-    void setupRefreshURI(in nsIChannel aChannel); 
+    void setupRefreshURI(in nsIChannel aChannel);
 
     /**
       * Parses the passed in header string and sets up a refreshURI if
-      * a "refresh" header is found. If docshell is busy loading a page 
-      * currently, the request will be queued and executed when 
-      * the current page finishes loading. 
+      * a "refresh" header is found. If docshell is busy loading a page
+      * currently, the request will be queued and executed when
+      * the current page finishes loading.
       *
       * @param aBaseURI base URI to resolve refresh uri with.
       * @param aPrincipal The triggeringPrincipal for the refresh load
       *   May be null, in which case the principal of current document will be
       *   applied.
       * @param aHeader  The meta refresh header string.
       */
     void setupRefreshURIFromHeader(in nsIURI aBaseURI,
--- a/docshell/base/nsIScrollable.idl
+++ b/docshell/base/nsIScrollable.idl
@@ -4,17 +4,17 @@
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 /**
  * The nsIScrollable is an interface that can be implemented by a control that
- * supports scrolling.  This is a generic interface without concern for the 
+ * supports scrolling.  This is a generic interface without concern for the
  * type of content that may be inside.
  */
 [scriptable, uuid(3507fc93-313e-4a4c-8ca8-4d0ea0f97315)]
 interface nsIScrollable : nsISupports
 {
   /**
    * Constants declaring the two scroll orientations a scrollbar can be in.
    * ScrollOrientation_X - Horizontal scrolling.  When passing this
--- a/docshell/base/nsITooltipListener.idl
+++ b/docshell/base/nsITooltipListener.idl
@@ -1,13 +1,13 @@
 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
- 
+
 #include "nsISupports.idl"
 
 /**
  * An optional interface for embedding clients wishing to receive
  * notifications for when a tooltip should be displayed or removed.
  * The embedder implements this interface on the web browser chrome
  * object associated with the window that notifications are required
  * for.
@@ -30,15 +30,15 @@ interface nsITooltipListener : nsISuppor
      * @note
      * Coordinates are specified in pixels, relative to the top-left
      * corner of the browser area.
      *
      * @return <code>NS_OK</code> if the tooltip was displayed.
      */
     void onShowTooltip(in long aXCoords, in long aYCoords, in AString aTipText,
                        in AString aTipDir);
-  
+
     /**
      * Called when the tooltip should be hidden, either because the pointer
      * has moved or the tooltip has timed out.
      */
     void onHideTooltip();
 };
--- a/docshell/base/nsITooltipTextProvider.idl
+++ b/docshell/base/nsITooltipTextProvider.idl
@@ -1,24 +1,24 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
- 
+
 #include "nsISupports.idl"
 
 webidl Node;
 
 /**
  * An interface implemented by a tooltip text provider service. This
  * service is called to discover what tooltip text is associated
  * with the node that the pointer is positioned over.
  *
  * Embedders may implement and register their own tooltip text provider
- * service if they wish to provide different tooltip text. 
+ * service if they wish to provide different tooltip text.
  *
  * The default service returns the text stored in the TITLE
  * attribute of the node or a containing parent.
  *
  * @note
  * The tooltip text provider service is registered with the contract
  * defined in NS_TOOLTIPTEXTPROVIDER_CONTRACTID.
  *
--- a/docshell/base/nsIWebNavigation.idl
+++ b/docshell/base/nsIWebNavigation.idl
@@ -140,17 +140,17 @@ interface nsIWebNavigation : nsISupports
   const unsigned long LOAD_FLAGS_BYPASS_PROXY    = 0x0200;
 
   /**
    * This flag specifies that a reload was triggered as a result of detecting
    * an incorrect character encoding while parsing a previously loaded
    * document.
    */
   const unsigned long LOAD_FLAGS_CHARSET_CHANGE  = 0x0400;
- 
+
   /**
    * If this flag is set, Stop() will be called before the load starts
    * and will stop both content and network activity (the default is to
    * only stop network activity).  Effectively, this passes the
    * STOP_CONTENT flag to Stop(), in addition to the STOP_NETWORK flag.
    */
   const unsigned long LOAD_FLAGS_STOP_CONTENT    = 0x0800;
 
@@ -163,17 +163,17 @@ interface nsIWebNavigation : nsISupports
     This flag is set when a user explicitly disables the Mixed Content
     Blocker, and allows Mixed Content to load on an https page.
   */
   const unsigned long LOAD_FLAGS_ALLOW_MIXED_CONTENT = 0x2000;
 
   /**
    * This flag specifies that this is the first load in this object.
    * Set with care, since setting incorrectly can cause us to assume that
-   * nothing was actually loaded in this object if the load ends up being 
+   * nothing was actually loaded in this object if the load ends up being
    * handled by an external application.  This flag must not be passed to
    * Reload.
    */
   const unsigned long LOAD_FLAGS_FIRST_LOAD = 0x4000;
 
   /**
    * This flag specifies that the load should not be subject to popup
    * blocking checks.  This flag must not be passed to Reload.
--- a/docshell/base/nsIWebNavigationInfo.idl
+++ b/docshell/base/nsIWebNavigationInfo.idl
@@ -34,17 +34,17 @@ interface nsIWebNavigationInfo : nsISupp
    * "XPCOM plug-ins".
    */
   const unsigned long PLUGIN = 2;
 
   /**
    * @note Other return types may be added here in the future as they become
    * relevant.
    */
-  
+
   /**
    * Returned by isTypeSupported to indicate that a type is supported via some
    * other means.
    */
   const unsigned long OTHER = 1 << 15;
 
   /**
    * Query whether aType is supported.
--- a/docshell/base/nsIWebPageDescriptor.idl
+++ b/docshell/base/nsIWebPageDescriptor.idl
@@ -13,17 +13,17 @@
 interface nsIWebPageDescriptor : nsISupports
 {
   const unsigned long DISPLAY_AS_SOURCE = 0x0001;
   const unsigned long DISPLAY_NORMAL    = 0x0002;
 
  /**
   * Tells the object to load the page specified by the page descriptor
   *
-  * @throws NS_ERROR_FAILURE - 
+  * @throws NS_ERROR_FAILURE -
   */
   void loadPage(in nsISupports aPageDescriptor, in unsigned long aDisplayType);
 
 
  /**
   * Retrieves the page descriptor for the curent document.
   */
   readonly attribute nsISupports currentDescriptor;
--- a/dom/base/nsISelectionDisplay.idl
+++ b/dom/base/nsISelectionDisplay.idl
@@ -12,26 +12,26 @@ interface nsISelectionDisplay : nsISuppo
    const short DISPLAY_TEXT = 1;   //display text selected.
    const short DISPLAY_IMAGES = 2; //show images selected
    const short DISPLAY_FRAMES = 4; //display hrules ect.
    const short DISPLAY_ALL = 7; //display all. used for isEditor as well
 
    /*
    SetSelectionFlags used to set whether you want to see HRULES/IMAGES with border.
     also used to tell if the presshell is an editor right now. this should change
-    
+
     @param aToggle -either DISPLAY_(TEXT,IMAGES,FRAMES,ALL)
                     This will tell the rendering engine to draw the different
-                    selection types. 
+                    selection types.
 
    */
     void setSelectionFlags(in short toggle);
 
    /*
    GetSelectionFlags used to get whether you want to see HRULES/IMAGES with border.
     also used to tell if the presshell is an editor right now. this should change
-   
-    @param short *aReturn - This will be filled with DISPLAY_(TEXT,IMAGE,FRAMES,ALL) 
+
+    @param short *aReturn - This will be filled with DISPLAY_(TEXT,IMAGE,FRAMES,ALL)
                             bit flags.
    */
     short getSelectionFlags();
 
 };
--- a/dom/commandhandler/nsICommandManager.idl
+++ b/dom/commandhandler/nsICommandManager.idl
@@ -69,17 +69,17 @@ interface nsICommandManager : nsISupport
    *
    * On input: aCommandParams filled in with values that the caller cares
    * about, most of which are command-specific (see the command documentation
    * for details). One boolean value, "enabled", applies to all commands,
    * and, in return will be set to indicate whether the command is enabled
    * (equivalent to calling isCommandEnabled).
    *
    * aCommandName is the name of the command that needs the state
-   * aTargetWindow is the source of command controller 
+   * aTargetWindow is the source of command controller
    *      (null means use focus controller)
    * On output: aCommandParams: values set by the caller filled in with
    * state from the command.
    */
   void        getCommandState(in string aCommandName,
                               in mozIDOMWindowProxy aTargetWindow,
                   /* inout */ in nsICommandParams aCommandParams);
 
--- a/dom/commandhandler/nsIControllerCommand.idl
+++ b/dom/commandhandler/nsIControllerCommand.idl
@@ -28,26 +28,26 @@ interface nsIControllerCommand : nsISupp
    *                      state.
    * @param aCommandContext    a cookie held by the nsIControllerCommandTable,
    *                  allowing the command to get some context information.
    *                  The contents of this cookie are implementation-defined.
    */
   boolean isCommandEnabled(in string aCommandName, in nsISupports aCommandContext);
 
   void getCommandStateParams(in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext);
-  
+
   /**
    * Execute the name command.
    *
    * @param aCommandName  the name of the command to execute.
-   * 
+   *
    * @param aCommandContext    a cookie held by the nsIControllerCommandTable,
    *                  allowing the command to get some context information.
    *                  The contents of this cookie are implementation-defined.
    */
   [can_run_script]
   void    doCommand(in string aCommandName, in nsISupports aCommandContext);
 
   [can_run_script]
   void    doCommandParams(in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext);
-  
+
 };
 
--- a/dom/commandhandler/nsIControllerCommandTable.idl
+++ b/dom/commandhandler/nsIControllerCommandTable.idl
@@ -7,48 +7,48 @@
 #include "nsICommandParams.idl"
 
 %{C++
 class nsControllerCommandTable;
 %}
 
 /**
  * nsIControllerCommandTable
- * 
+ *
  * An interface via which a controller can maintain a series of commands,
  * and efficiently dispatch commands to their respective handlers.
  *
  * Controllers that use an nsIControllerCommandTable should support
  * nsIInterfaceRequestor, and be able to return an interface to their
  * controller command table via getInterface().
- * 
+ *
  */
 
 [scriptable, builtinclass, uuid(c847f90e-b8f3-49db-a4df-8867831f2800)]
 interface nsIControllerCommandTable : nsISupports
 {
   /**
    * Make this command table immutable, so that commands cannot
    * be registered or unregistered. Some command tables are made
-   * mutable after command registration so that they can be 
+   * mutable after command registration so that they can be
    * used as singletons.
    */
   void  makeImmutable();
-  
+
   /**
    * Register and unregister commands with the command table.
    *
    * @param aCommandName  the name of the command under which to register or
    *                      unregister the given command handler.
    *
    * @param aCommand      the handler for this command.
    */
   void    registerCommand(in string aCommandName, in nsIControllerCommand aCommand);
   void    unregisterCommand(in string aCommandName, in nsIControllerCommand aCommand);
-  
+
   /**
    * Find the command handler which has been registered to handle the named command.
    *
    * @param aCommandName  the name of the command to find the handler for.
    */
   nsIControllerCommand findCommandHandler(in string aCommandName);
 
   /**
--- a/dom/commandhandler/nsIControllerContext.idl
+++ b/dom/commandhandler/nsIControllerContext.idl
@@ -1,13 +1,13 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
- 
+
 #include "nsISupports.idl"
 #include "nsIControllerCommandTable.idl"
 
 [scriptable, builtinclass, uuid(47B82B60-A36F-4167-8072-6F421151ED50)]
 interface nsIControllerContext : nsISupports
 {
   /**
    *  Set a context on this controller, which is passed
--- a/dom/html/nsIImageDocument.idl
+++ b/dom/html/nsIImageDocument.idl
@@ -39,9 +39,9 @@ interface nsIImageDocument : nsISupports
 
   /* A helper method for switching between states.
    * The switching logic is as follows. If the image has been resized
    * restore image original size, otherwise if the image is overflowing
    * current visible area resize the image to fit the area.
    */
   [binaryname(DOMToggleImageSize)]
   void toggleImageSize();
-};  
+};
--- a/dom/interfaces/base/nsIDOMWindowUtils.idl
+++ b/dom/interfaces/base/nsIDOMWindowUtils.idl
@@ -204,19 +204,19 @@ interface nsIDOMWindowUtils : nsISupport
    *
    * Setting a new resolution does *not* trigger reflow.  This API is
    * entirely separate from textZoom and fullZoom; a resolution scale
    * can be applied together with both textZoom and fullZoom.
    *
    * The effect of this API is for gfx code to allocate more or fewer
    * pixels for rescalable content by a factor of |resolution| in
    * both dimensions.
-   * 
+   *
    * In addition, the content is scaled by the amount of the resolution,
-   * so that it is displayed at a correspondingly larger or smaller size, 
+   * so that it is displayed at a correspondingly larger or smaller size,
    * without the need for the caller to set an additional transform.
    *
    * This can be used to implement a non-reflowing scale-zoom, e.g.
    * for pinch-zoom on mobile platforms.
    *
    * The caller of this method must have chrome privileges.
    */
   void setResolutionAndScaleTo(in float aResolution);
--- a/dom/interfaces/base/nsIRemoteTab.idl
+++ b/dom/interfaces/base/nsIRemoteTab.idl
@@ -91,17 +91,17 @@ interface nsIRemoteTab : nsISupports
   /**
    * The frame element which currently embeds this nsIRemoteTab object.
    */
   readonly attribute Element ownerElement;
 
   /**
    * Notify APZ to start autoscrolling.
    * (aAnchorX, aAnchorY) are the coordinates of the autoscroll anchor,
-   * in CSS coordinates relative to the screen. aScrollId and 
+   * in CSS coordinates relative to the screen. aScrollId and
    * aPresShellId identify the scroll frame that content chose to scroll.
    * Returns whether we were successfully able to notify APZ.
    * If this function returns true, APZ (which may live in another process)
    * may still reject the autoscroll, but it's then APZ's reponsibility
    * to notify content via an "autoscroll-rejected-by-apz" message.
    */
   boolean startApzAutoscroll(in float aAnchorX, in float aAnchorY,
                              in nsViewID aScrollId, in uint32_t aPresShellId);
--- a/dom/interfaces/events/nsIDOMEventListener.idl
+++ b/dom/interfaces/events/nsIDOMEventListener.idl
@@ -6,27 +6,27 @@
 #include "domstubs.idl"
 
 webidl Event;
 
 /**
  * The nsIDOMEventListener interface is a callback interface for
  * listening to events in the Document Object Model.
  *
- * For more information on this interface please see 
+ * For more information on this interface please see
  * http://www.w3.org/TR/DOM-Level-2-Events/
  */
 
 [uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4)]
 interface nsIDOMEventListener : nsISupports
 {
   /**
-   * This method is called whenever an event occurs of the type for which 
+   * This method is called whenever an event occurs of the type for which
    * the EventListener interface was registered.
    *
-   * @param   evt The Event contains contextual information about the 
-   *              event. It also contains the stopPropagation and 
-   *              preventDefault methods which are used in determining the 
+   * @param   evt The Event contains contextual information about the
+   *              event. It also contains the stopPropagation and
+   *              preventDefault methods which are used in determining the
    *              event's flow and default action.
    */
   [can_run_script]
   void                      handleEvent(in Event event);
 };
--- a/dom/interfaces/security/nsIContentSecurityPolicy.idl
+++ b/dom/interfaces/security/nsIContentSecurityPolicy.idl
@@ -237,17 +237,17 @@ interface nsIContentSecurityPolicy : nsI
   [noscript] readonly attribute AString referrer;
   [noscript, notxpcom, nostdcall] readonly attribute unsigned long long innerWindowID;
 
   /**
    *  Ensure we have a nsIEventTarget to use to label CSPReportSenderRunnable
    */
   [noscript] void ensureEventTarget(in nsIEventTarget aEventTarget);
 
- 
+
   /**
    * Verifies ancestry as permitted by the policy.
    *
    * NOTE: Calls to this may trigger violation reports when queried, so this
    * value should not be cached.
    *
    * @param docShell
    *    containing the protected resource
--- a/dom/interfaces/sidebar/nsIWebProtocolHandlerRegistrar.idl
+++ b/dom/interfaces/sidebar/nsIWebProtocolHandlerRegistrar.idl
@@ -5,23 +5,23 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 interface nsIURI;
 
 /**
  * nsIWebProtocolHandlerRegistrar
- * 
+ *
  * Applications wishing to use web protocol handlers need to implement this
  * interface. Typically they will prompt the user to confirm adding an entry
- * to the local list. 
+ * to the local list.
  *
  * The component must have the contract id defined below so that the Navigator
- * implementation can invoke it. 
+ * implementation can invoke it.
  */
 
 [scriptable, uuid(1ce9ef8d-f462-49ca-b8e9-c946c4f37d6e)]
 interface nsIWebProtocolHandlerRegistrar : nsISupports
 {
   /**
    * See documentation in Navigator.webidl
    * The additional contentWindow param for this method represents the dom
--- a/dom/interfaces/xul/nsIDOMXULButtonElement.idl
+++ b/dom/interfaces/xul/nsIDOMXULButtonElement.idl
@@ -7,15 +7,15 @@
 
 [scriptable, uuid(6ed53cfb-9e59-424c-af8d-e74582381951)]
 interface nsIDOMXULButtonElement : nsIDOMXULControlElement {
   attribute AString type;
   attribute AString dlgType;
 
   // For buttons of type="menu" only.
   attribute boolean open;
-  
+
   // For buttons of type="checkbox" only.
   attribute boolean checked;
 
   // For buttons of type="radio" only.
   attribute AString group;
 };
--- a/dom/interfaces/xul/nsIDOMXULControlElement.idl
+++ b/dom/interfaces/xul/nsIDOMXULControlElement.idl
@@ -5,17 +5,17 @@
 
 #include "nsISupports.idl"
 
 interface nsIControllers;
 
 [scriptable, uuid(bdc1d047-6d22-4813-bc50-638ccb349c7d)]
 interface nsIDOMXULControlElement : nsISupports {
   attribute boolean disabled;
-  
+
 // XXX defined in XULElement, but should be defined here
 //  readonly attribute nsIControllers controllers;
-  
+
 //  void focus();
 //  void blur();
 };
 
 
--- a/dom/interfaces/xul/nsIDOMXULMenuListElement.idl
+++ b/dom/interfaces/xul/nsIDOMXULMenuListElement.idl
@@ -6,19 +6,19 @@
 #include "nsIDOMXULSelectCntrlEl.idl"
 
 webidl Element;
 
 [scriptable, uuid(36c16a17-c0e9-4b35-951b-81a147314ef1)]
 interface nsIDOMXULMenuListElement : nsIDOMXULSelectControlElement {
   attribute boolean editable;
   attribute boolean open;
-  
+
   // label of selected option or value of textfield for editable menu lists
   readonly attribute AString label;
 
   attribute AString crop;
   attribute AString image;
-  
+
   // For editable menu lists only.
   readonly attribute Element inputField;
 };
 
--- a/dom/interfaces/xul/nsIDOMXULMultSelectCntrlEl.idl
+++ b/dom/interfaces/xul/nsIDOMXULMultSelectCntrlEl.idl
@@ -12,26 +12,26 @@ webidl NodeList;
 interface nsIDOMXULMultiSelectControlElement : nsIDOMXULSelectControlElement
 {
   attribute AString selType;
 
   attribute Element currentItem;
   attribute long currentIndex;
 
   readonly attribute NodeList selectedItems;
-  
+
   void addItemToSelection(in nsIDOMXULSelectControlItemElement item);
   void removeItemFromSelection(in nsIDOMXULSelectControlItemElement item);
   void toggleItemSelection(in nsIDOMXULSelectControlItemElement item);
 
   void selectItem(in nsIDOMXULSelectControlItemElement item);
   void selectItemRange(in nsIDOMXULSelectControlItemElement startItem, in nsIDOMXULSelectControlItemElement item);
 
   void selectAll();
   void invertSelection();
   void clearSelection();
 
-  // XXX - temporary, pending implementation of scriptable, 
+  // XXX - temporary, pending implementation of scriptable,
   //       mutable NodeList for selectedItems
   readonly attribute long selectedCount;
   [binaryname(MultiGetSelectedItem)]
   Element getSelectedItem(in long index);
 };
--- a/dom/interfaces/xul/nsIDOMXULSelectCntrlItemEl.idl
+++ b/dom/interfaces/xul/nsIDOMXULSelectCntrlItemEl.idl
@@ -11,20 +11,20 @@ webidl Element;
 [scriptable, uuid(5c6be58f-17df-4750-88a5-4a59ac28adc9)]
 interface nsIDOMXULSelectControlItemElement : nsISupports {
   attribute boolean disabled;
   attribute AString crop;
   attribute AString image;
   attribute AString label;
   attribute AString accessKey;
   attribute AString command;
-  
+
   attribute AString value;
-  
+
   readonly attribute boolean selected;
-  
+
   readonly attribute Element control;
-  
+
   // XXX defined in XULElement, but should be defined here
   // void doCommand();
 };
 
 
--- a/dom/plugins/base/nsIHTTPHeaderListener.idl
+++ b/dom/plugins/base/nsIHTTPHeaderListener.idl
@@ -11,17 +11,17 @@
  * nsIPluginHost::{GetURL,PostURL}() call. <P>
  */
 
 [scriptable, uuid(ea51e0b8-871c-4b85-92da-6f400394c5ec)]
 interface nsIHTTPHeaderListener : nsISupports
 {
   /**
    * Called for each HTTP Response header.
-   * NOTE: You must copy the values of the params.  
+   * NOTE: You must copy the values of the params.
    */
   void newResponseHeader(in string headerName, in string headerValue);
 
   /**
    * Called once for the HTTP Response status line.
    * Value does NOT include a terminating newline.
    * NOTE: You must copy this value.
    */
--- a/dom/plugins/base/nsIPluginInstanceOwner.idl
+++ b/dom/plugins/base/nsIPluginInstanceOwner.idl
@@ -58,17 +58,17 @@ interface nsIPluginInstanceOwner : nsISu
 
 %{C++
   /**
    * Called when there is a valid target so that the proper
    * frame can be updated with new content. will not be called
    * with nullptr aTarget.
    */
   NS_IMETHOD
-  GetURL(const char *aURL, const char *aTarget, 
+  GetURL(const char *aURL, const char *aTarget,
          nsIInputStream *aPostStream,
          void *aHeadersData, uint32_t aHeadersDataLen,
          bool aDoCheckLoadURIChecks) = 0;
 %}
 
   /**
    * Get the associated document.
    */
--- a/dom/xul/nsIController.idl
+++ b/dom/xul/nsIController.idl
@@ -16,24 +16,24 @@ interface nsIController : nsISupports {
   void onEvent(in string eventName);
 };
 
 
 /*
 
   Enhanced controller interface that allows for passing of parameters
   to commands.
-  
+
 */
 
 interface nsICommandParams;
 
 [scriptable, uuid(EEC0B435-7F53-44FE-B00A-CF3EED65C01A)]
 interface nsICommandController : nsISupports
 {
-  
+
   void        getCommandStateWithParams( in string command, in nsICommandParams aCommandParams);
-    
+
   [can_run_script]
   void        doCommandWithParams(in string command, in nsICommandParams aCommandParams);
 
   Array<ACString> getSupportedCommands();
 };
--- a/dom/xul/nsIControllers.idl
+++ b/dom/xul/nsIControllers.idl
@@ -24,11 +24,11 @@ interface nsIControllers : nsISupports
         Return an ID for this controller which is unique to this
         nsIControllers.
     */
     unsigned long getControllerId(in nsIController controller);
     /*
         Get the controller specified by the given ID.
     */
     nsIController getControllerById(in unsigned long controllerID);
-    
+
 	unsigned long getControllerCount();
 };
--- a/intl/locale/nsICollation.idl
+++ b/intl/locale/nsICollation.idl
@@ -26,20 +26,20 @@ interface nsICollationFactory : nsISuppo
 };
 
 [scriptable, uuid(b0132cc0-3786-4557-9874-910d7def5f93)]
 interface nsICollation : nsISupports {
 
   // use the primary comparison for the given locale - no flags
   const long kCollationStrengthDefault = 0;
 
-  // do not consider case differences when doing the comparison i.e. A=a) 
+  // do not consider case differences when doing the comparison i.e. A=a)
   const long kCollationCaseInsensitiveAscii = 1;
 
-  // do not consider accent differences when doing the comparison a=á) 
+  // do not consider accent differences when doing the comparison a=á)
   const long kCollationAccentInsenstive = 2;
 
   // case sensitive collation (default)
   const long kCollationCaseSensitive = kCollationStrengthDefault;
 
   // case insensitive collation
   const long kCollationCaseInSensitive = (kCollationCaseInsensitiveAscii | kCollationAccentInsenstive);
 
@@ -47,17 +47,17 @@ interface nsICollation : nsISupports {
   void initialize(in ACString locale);
 
   // compare two strings
   // result is same as strcmp
   long compareString(in long strength, in AString string1, in AString string2);
 
   // allocate sort key from input string
   // returns newly allocated key, and its band its byte length
-  [noscript] void allocateRawSortKey(in long strength, 
+  [noscript] void allocateRawSortKey(in long strength,
                                      in AString stringIn,
                                      [array,size_is(outLen)] out octet key,
                                      out unsigned long outLen);
 
   // compare two sort keys
   // length is a byte length, result is same as strcmp
   [noscript] long compareRawSortKey([const,array,size_is(len1)] in octet key1, in unsigned long len1,
                                     [const,array,size_is(len2)] in octet key2, in unsigned long len2);
--- a/layout/printing/nsIPrintProgress.idl
+++ b/layout/printing/nsIPrintProgress.idl
@@ -9,35 +9,35 @@ interface nsIObserver;
 interface nsIPrompt;
 
 [scriptable, uuid(05f4fb88-e568-4d35-b394-ce0aa3eea6fc)]
 interface nsIPrintProgress: nsIWebProgressListener {
 
   /* Open the progress dialog
      you can specify parameters through an xpcom object
   */
-  void openProgressDialog(in mozIDOMWindowProxy parent, 
-                          in string dialogURL, 
-                          in nsISupports parameters, 
+  void openProgressDialog(in mozIDOMWindowProxy parent,
+                          in string dialogURL,
+                          in nsISupports parameters,
                           in nsIObserver openDialogObserver,
                           out boolean notifyOnOpen);
-  
+
   /* Close the progress dialog */
   void closeProgressDialog(in boolean forceClose);
-  
+
   /* Register a Web Progress Listener */
   void registerListener(in nsIWebProgressListener listener);
 
   /* Unregister a Web Progress Listener */
   void unregisterListener(in nsIWebProgressListener listener);
-  
-  /* This method is called after the dialog that shows the progress has been shown 
+
+  /* This method is called after the dialog that shows the progress has been shown
   */
   void doneIniting();
-  
+
   /* Retrieve the prompter, needed to display modal dialog on top of progress dialog */
   nsIPrompt getPrompter();
 
   /* Indicated if the user asked to cancel the current process */
   attribute boolean processCanceledByUser;
 };
 
 
--- a/mobile/android/components/SessionStore.idl
+++ b/mobile/android/components/SessionStore.idl
@@ -47,17 +47,17 @@ interface nsISessionStore : nsISupports
   /**
    * Whether the "Undo close tab" message should be shown or not after a tab has been closed.
    */
  readonly attribute boolean canUndoLastCloseTab;
 
   /**
    * @param aTab is the browser tab to get the value for.
    * @param aKey is the value's name.
-   * 
+   *
    * @returns A string value or an empty string if none is set.
    */
   AString getTabValue(in jsval aTab, in AString aKey);
 
   /**
    * @param aTab         is the browser tab to set the value for.
    * @param aKey         is the value's name.
    * @param aStringValue is the value itself (use JSON.stringify/parse before setting JS objects).
--- a/modules/libjar/nsIZipReader.idl
+++ b/modules/libjar/nsIZipReader.idl
@@ -62,17 +62,17 @@ interface nsIZipEntry : nsISupports
     readonly attribute unsigned long    permissions;
 };
 
 [scriptable, uuid(9ba4ef54-e0a0-4f65-9d23-128482448885)]
 interface nsIZipReader : nsISupports
 {
     /**
      * Opens a zip file for reading.
-     * It is allowed to open with another file, 
+     * It is allowed to open with another file,
      * but it needs to be closed first with close().
      */
     void open(in nsIFile zipFile);
 
     /**
      * Opens a zip file inside a zip file for reading.
      */
     void openInner(in nsIZipReader zipReader, in AUTF8String zipEntry);
@@ -98,21 +98,21 @@ interface nsIZipReader : nsISupports
      * its input stream will result in an error.
      *
      * Subsequent attempts to access a nsIZipEntry obtained from this zip
      * reader will cause unspecified behavior.
      */
     void close();
 
     /**
-     * Tests the integrity of the archive by performing a CRC check 
+     * Tests the integrity of the archive by performing a CRC check
      * on each item expanded into memory.  If an entry is specified
      * the integrity of only that item is tested.  If null (javascript)
-     * or EmptyCString() (c++) is passed in the integrity of all items 
-     * in the archive are tested.  
+     * or EmptyCString() (c++) is passed in the integrity of all items
+     * in the archive are tested.
      */
     void test(in AUTF8String aEntryName);
 
     /**
      * Extracts a zip entry into a local file specified by outFile.
      * The entry must be stored in the zip in either uncompressed or
      * DEFLATE-compressed format for the extraction to be successful.
      * If the entry is a directory, the directory will be extracted
@@ -124,32 +124,32 @@ interface nsIZipReader : nsISupports
      * Returns a nsIZipEntry describing a specified zip entry.
      */
     nsIZipEntry getEntry(in AUTF8String zipEntry);
 
     /**
      * Checks whether the zipfile contains an entry specified by entryName.
      */
     boolean hasEntry(in AUTF8String zipEntry);
- 
+
     /**
      * Returns a string enumerator containing the matching entry names.
      *
      * @param aPattern
      *   A regular expression used to find matching entries in the zip file.
-     *   Set this parameter to null (javascript) or EmptyCString() (c++) or "*" 
+     *   Set this parameter to null (javascript) or EmptyCString() (c++) or "*"
      *   to get all entries; otherwise, use the
      *   following syntax:
      *
      *   o * matches anything
      *   o ? matches one character
      *   o $ matches the end of the string
      *   o [abc] matches one occurrence of a, b, or c. The only character that
      *           must be escaped inside the brackets is ].  ^ and - must never
-     *           appear in the first and second positions within the brackets, 
+     *           appear in the first and second positions within the brackets,
      *           respectively.  (In the former case, the behavior specified for
      *           '[^az]' will happen.)
      *   o [a-z] matches any character between a and z.  The characters a and z
      *           must either both be letters or both be numbers, with the
      *           character represented by 'a' having a lower ASCII value than
      *           the character represented by 'z'.
      *   o [^az] matches any character except a or z.  If ] is to appear inside
      *           the brackets as a character to not match, it must be escaped.
@@ -179,48 +179,48 @@ interface nsIZipReader : nsISupports
      * Returns an input stream containing the contents of the specified zip
      * entry.
      * @param zipEntry the name of the entry to open the stream from
      */
     nsIInputStream getInputStream(in AUTF8String zipEntry);
 
     /**
      * Returns an input stream containing the contents of the specified zip
-     * entry. If the entry refers to a directory (ends with '/'), a directory stream 
+     * entry. If the entry refers to a directory (ends with '/'), a directory stream
      * is opened, otherwise the contents of the file entry is returned.
      * @param aJarSpec the Spec of the URI for the JAR (only used for directory streams)
      * @param zipEntry the name of the entry to open the stream from
      */
     nsIInputStream getInputStreamWithSpec(in AUTF8String aJarSpec, in AUTF8String zipEntry);
 };
 
 ////////////////////////////////////////////////////////////////////////////////
 // nsIZipReaderCache
 
 [scriptable, uuid(31179807-9fcd-46c4-befa-2ade209a394b)]
 interface nsIZipReaderCache : nsISupports
 {
     /**
-     * Initializes a new zip reader cache. 
+     * Initializes a new zip reader cache.
      * @param cacheSize - the number of released entries to maintain before
      *   beginning to throw some out (note that the number of outstanding
      *   entries can be much greater than this number -- this is the count
      *   for those otherwise unused entries)
      */
     void init(in unsigned long cacheSize);
 
     /**
      * Returns a (possibly shared) nsIZipReader for an nsIFile.
      *
      * If the zip reader for given file is not in the cache, a new zip reader
-     * is created, initialized, and opened (see nsIZipReader::init and 
-     * nsIZipReader::open). Otherwise the previously created zip reader is 
+     * is created, initialized, and opened (see nsIZipReader::init and
+     * nsIZipReader::open). Otherwise the previously created zip reader is
      * returned.
      *
-     * @note If someone called close() on the shared nsIZipReader, this method 
+     * @note If someone called close() on the shared nsIZipReader, this method
      *       will return the closed zip reader.
      */
     nsIZipReader getZip(in nsIFile zipFile);
 
     /**
      * Like getZip(), returns a (possibly shared) nsIZipReader for an nsIFile,
      * but if a zip reader for the given file is not in the cache, returns
      * error NS_ERROR_CACHE_KEY_NOT_FOUND rather than creating a new reader.
--- a/modules/libpref/nsIPrefBranch.idl
+++ b/modules/libpref/nsIPrefBranch.idl
@@ -191,17 +191,17 @@ interface nsIPrefBranch : nsISupports
    * preference is a preference which represents an XPCOM object that can not
    * be easily represented using a standard boolean, integer or string value.
    *
    * @param aPrefName The complex preference to get the value of.
    * @param aType     The XPCOM interface that this complex preference
    *                  represents. Interfaces currently supported are:
    *                    - nsIFile
    *                    - nsIPrefLocalizedString (Localized UniChar)
-   * @param aValue    The XPCOM object into which to the complex preference 
+   * @param aValue    The XPCOM object into which to the complex preference
    *                  value should be retrieved.
    *
    * @throws Error The value does not exist or is the wrong type.
    *
    * @see setComplexValue
    */
   void getComplexValue(in string aPrefName, in nsIIDRef aType,
                        [iid_is(aType), retval] out nsQIResult aValue);
@@ -213,17 +213,17 @@ interface nsIPrefBranch : nsISupports
    *
    * @param aPrefName The complex preference to set the value of.
    * @param aType     The XPCOM interface that this complex preference
    *                  represents. Interfaces currently supported are:
    *                    - nsIFile
    *                    - nsISupportsString (UniChar)
    *                      (deprecated; see setStringPref)
    *                    - nsIPrefLocalizedString (Localized UniChar)
-   * @param aValue    The XPCOM object from which to set the complex preference 
+   * @param aValue    The XPCOM object from which to set the complex preference
    *                  value.
    *
    * @throws Error if setting failed or the value is the wrong type.
    *
    * @see getComplexValue
    */
   void setComplexValue(in string aPrefName, in nsIIDRef aType, in nsISupports aValue);
 
@@ -292,17 +292,17 @@ interface nsIPrefBranch : nsISupports
    *                  false The preference is not locked.
    *
    * @see lockPref
    * @see unlockPref
    */
   boolean prefIsLocked(in string aPrefName);
 
   /**
-   * Called to unlock a specific preference. Unlocking a previously locked 
+   * Called to unlock a specific preference. Unlocking a previously locked
    * preference allows the preference service to once again return the user set
    * value of the preference.
    *
    * @param aPrefName The preference to be unlocked.
    *
    * @note
    * This method can be called on either a default or user branch but, in
    * effect, always operates on the default branch.
@@ -327,17 +327,17 @@ interface nsIPrefBranch : nsISupports
    *
    * @throws Error The preference(s) do not exist or an error occurred.
    */
   void deleteBranch(in string aStartingAt);
 
   /**
    * Returns an array of strings representing the child preferences of the
    * root of this branch.
-   * 
+   *
    * @param aStartingAt The point on the branch at which to start enumerating
    *                    the child preferences. Pass in "" to enumerate all
    *                    preferences referenced by this branch.
    * @param aCount      Receives the number of elements in the array.
    * @param aChildArray Receives the array of child preferences.
    *
    * @note
    * This method can be called on either a default or user branch but, in
@@ -413,17 +413,17 @@ interface nsIPrefBranch : nsISupports
    * to be notified in any particular order, so you can't be sure whether the
    * added/removed observer will be called during the notification when it
    * is added/removed.
    *
    * @note
    * It is possible to change preferences during the notification.
    *
    * @note
-   * It is not safe to change observers during this callback in Gecko 
+   * It is not safe to change observers during this callback in Gecko
    * releases before 1.9. If you want a safe way to remove a pref observer,
    * please use an nsITimer.
    *
    * @see nsIObserver
    * @see removeObserver
    */
   [binaryname(AddObserverImpl)]
   void addObserver(in ACString aDomain, in nsIObserver aObserver,
--- a/modules/libpref/nsIPrefService.idl
+++ b/modules/libpref/nsIPrefService.idl
@@ -66,37 +66,37 @@ interface nsIPrefService : nsISupports
    * preference value. When using a Get method a user set value will be
    * returned if one exists, otherwise a default value will be returned.
    *
    * @param aPrefRoot The preference "root" on which to base this "branch".
    *                  For example, if the root "browser.startup." is used, the
    *                  branch will be able to easily access the preferences
    *                  "browser.startup.page", "browser.startup.homepage", or
    *                  "browser.startup.homepage_override" by simply requesting
-   *                  "page", "homepage", or "homepage_override". nullptr or "" 
+   *                  "page", "homepage", or "homepage_override". nullptr or ""
    *                  may be used to access to the entire preference "tree".
    *
    * @return nsIPrefBranch The object representing the requested branch.
    *
    * @see getDefaultBranch
    */
   nsIPrefBranch getBranch(in string aPrefRoot);
 
   /**
-   * Call to get a Preferences "Branch" which accesses only the default 
+   * Call to get a Preferences "Branch" which accesses only the default
    * preference data. Using a Set method on this object will always create or
    * set a default preference value. When using a Get method a default value
    * will always be returned.
    *
    * @param aPrefRoot The preference "root" on which to base this "branch".
    *                  For example, if the root "browser.startup." is used, the
    *                  branch will be able to easily access the preferences
    *                  "browser.startup.page", "browser.startup.homepage", or
    *                  "browser.startup.homepage_override" by simply requesting
-   *                  "page", "homepage", or "homepage_override". nullptr or "" 
+   *                  "page", "homepage", or "homepage_override". nullptr or ""
    *                  may be used to access to the entire preference "tree".
    *
    * @note
    * Few consumers will want to create default branch objects. Many of the
    * branch methods do nothing on a default branch because the operations only
    * make sense when applied to user set preferences.
    *
    * @return nsIPrefBranch The object representing the requested default branch.
--- a/modules/libpref/nsIRelativeFilePref.idl
+++ b/modules/libpref/nsIRelativeFilePref.idl
@@ -9,17 +9,17 @@ interface nsIFile;
 /**
  * The nsIRelativeFilePref interface is a wrapper for an nsIFile and
  * and a directory service key. When used as a pref value, it stores a
  * relative path to the file from the location pointed to by the directory
  * service key. The path has the same syntax across all platforms.
  *
  * @see nsIPrefBranch::getComplexValue
  * @see nsIPrefBranch::setComplexValue
- * 
+ *
  */
 
 [uuid(2f977d4e-5485-11d4-87e2-0010a4e75ef2)]
 interface nsIRelativeFilePref : nsISupports
 {
   /**
    * file
    *
--- a/netwerk/base/nsIAuthInformation.idl
+++ b/netwerk/base/nsIAuthInformation.idl
@@ -78,17 +78,17 @@ interface nsIAuthInformation : nsISuppor
    * Can be the empty string if the protocol does not support realms.
    * Otherwise, this is a human-readable string like "Secret files".
    */
   readonly attribute AString realm;
 
   /**
    * The authentication scheme used for this request, if applicable. If the
    * protocol for this authentication does not support schemes, this will be
-   * the empty string. Otherwise, this will be a string such as "basic" or 
+   * the empty string. Otherwise, this will be a string such as "basic" or
    * "digest". This string will always be in lowercase.
    */
   readonly attribute AUTF8String authenticationScheme;
 
   /**
    * The initial value should be used to prefill the dialog or be shown
    * in some other way to the user.
    * On return, this parameter should contain the username entered by
--- a/netwerk/base/nsIAuthModule.idl
+++ b/netwerk/base/nsIAuthModule.idl
@@ -82,56 +82,56 @@ interface nsIAuthModule : nsISupports
      * @param aOutTokenLength
      *        If getNextToken succeeds, then aOutTokenLength contains the
      *        length of the buffer (number of bytes) pointed to by aOutToken.
      */
     void getNextToken([const] in voidPtr  aInToken,
                       in unsigned long    aInTokenLength,
                       out voidPtr         aOutToken,
                       out unsigned long   aOutTokenLength);
-    /** 
+    /**
      * Once a security context has been established through calls to GetNextToken()
      * it may be used to protect data exchanged between client and server. Calls
      * to Wrap() are used to protect items of data to be sent to the server.
-     * 
+     *
      * @param aInToken
      *        A buffer containing the data to be sent to the server
      * @param aInTokenLength
      *        The length of the input token
      * @param confidential
      *        If set to true, Wrap() will encrypt the data, otherwise data will
      *        just be integrity protected (checksummed)
      * @param aOutToken
      *        A buffer containing the resulting data to be sent to the server
      * @param aOutTokenLength
      *        The length of the output token buffer
      *
      * Wrap() may return NS_ERROR_NOT_IMPLEMENTED, if the underlying authentication
      * mechanism does not support security layers.
-     */    
+     */
     void wrap([const] in voidPtr aInToken,
               in unsigned long   aInTokenLength,
-              in boolean         confidential, 
+              in boolean         confidential,
               out voidPtr        aOutToken,
               out unsigned long  aOutTokenLength);
 
-    /** 
+    /**
      * Unwrap() is used to unpack, decrypt, and verify the checksums on data
      * returned by a server when security layers are in use.
-     * 
+     *
      * @param aInToken
      *        A buffer containing the data received from the server
      * @param aInTokenLength
      *        The length of the input token
      * @param aOutToken
      *        A buffer containing the plaintext data from the server
      * @param aOutTokenLength
      *        The length of the output token buffer
      *
-     * Unwrap() may return NS_ERROR_NOT_IMPLEMENTED, if the underlying  
+     * Unwrap() may return NS_ERROR_NOT_IMPLEMENTED, if the underlying
      * authentication mechanism does not support security layers.
      */
     void unwrap([const] in voidPtr aInToken,
                 in unsigned long   aInTokenLength,
                 out voidPtr        aOutToken,
                 out unsigned long  aOutTokenLength);
 
 %{C++
--- a/netwerk/base/nsIAuthPrompt.idl
+++ b/netwerk/base/nsIAuthPrompt.idl
@@ -4,17 +4,17 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 interface nsIPrompt;
 
 [scriptable, uuid(358089f9-ee4b-4711-82fd-bcd07fc62061)]
 interface nsIAuthPrompt : nsISupports
-{         
+{
     const uint32_t SAVE_PASSWORD_NEVER             = 0;
     const uint32_t SAVE_PASSWORD_FOR_SESSION       = 1;
     const uint32_t SAVE_PASSWORD_PERMANENTLY       = 2;
 
     /**
      * Puts up a text input dialog with OK and Cancel buttons.
      * Note: prompt uses separate args for the "in" and "out" values of the
      *       input field, whereas the other functions use a single inout arg.
@@ -27,17 +27,17 @@ interface nsIAuthPrompt : nsISupports
      * @param  result        The value entered by the user if OK was
      *                       selected.
      * @return true for OK, false for Cancel
      */
     boolean prompt(in wstring dialogTitle,
                    in wstring text,
                    in wstring passwordRealm,
                    in uint32_t savePassword,
-                   in wstring defaultText, 
+                   in wstring defaultText,
                    out wstring result);
 
     /**
      * Puts up a username/password dialog with OK and Cancel buttons.
      * Puts up a password dialog with OK and Cancel buttons.
      * @param  dialogText    The title for the dialog.
      * @param  text          The text to display in the dialog.
      * @param  passwordRealm The "realm" the password belongs to: e.g.
@@ -47,17 +47,17 @@ interface nsIAuthPrompt : nsISupports
      * @param  pwd           The password entered by the user if OK was
      *                       selected.
      * @return true for OK, false for Cancel
      */
     boolean promptUsernameAndPassword(in wstring dialogTitle,
                                       in wstring text,
                                       in wstring passwordRealm,
                                       in uint32_t savePassword,
-                                      inout wstring user, 
+                                      inout wstring user,
                                       inout wstring pwd);
 
     /**
      * Puts up a password dialog with OK and Cancel buttons.
      * @param  dialogText    The title for the dialog.
      * @param  text          The text to display in the dialog.
      * @param  passwordRealm The "realm" the password belongs to: e.g.
      *                       ldap://localhost/dc=test. If a username is
--- a/netwerk/base/nsIAuthPrompt2.idl
+++ b/netwerk/base/nsIAuthPrompt2.idl
@@ -12,17 +12,17 @@ interface nsIAuthInformation;
 /**
  * An interface allowing to prompt for a username and password. This interface
  * is usually acquired using getInterface on notification callbacks or similar.
  * It can be used to prompt users for authentication information, either
  * synchronously or asynchronously.
  */
 [scriptable, uuid(651395EB-8612-4876-8AC0-A88D4DCE9E1E)]
 interface nsIAuthPrompt2 : nsISupports
-{         
+{
   /** @name Security Levels */
   /* @{ */
   /**
    * The password will be sent unencrypted. No security provided.
    */
   const uint32_t LEVEL_NONE = 0;
   /**
    * Password will be sent encrypted, but the connection is otherwise
--- a/netwerk/base/nsIByteRangeRequest.idl
+++ b/netwerk/base/nsIByteRangeRequest.idl
@@ -3,24 +3,24 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 [scriptable, uuid(C1B1F426-7E83-4759-9F88-0E1B17F49366)]
 interface nsIByteRangeRequest : nsISupports
 {
-    /** 
+    /**
      * Returns true IFF this request is a byte range request, otherwise it
-     * returns false (This is effectively the same as checking to see if 
+     * returns false (This is effectively the same as checking to see if
      * |startRequest| is zero and |endRange| is the content length.)
      */
     readonly attribute boolean isByteRangeRequest;
 
-    /** 
+    /**
      * Absolute start position in remote file for this request.
      */
     readonly attribute long long startRange;
 
     /**
      * Absolute end postion in remote file for this request
      */
     readonly attribute long long endRange;
--- a/netwerk/base/nsICachingChannel.idl
+++ b/netwerk/base/nsICachingChannel.idl
@@ -19,17 +19,17 @@ interface nsIFile;
  */
 [scriptable, builtinclass, uuid(dd1d6122-5ecf-4fe4-8f0f-995e7ab3121a)]
 interface nsICachingChannel : nsICacheInfoChannel
 {
     /**
      * Set/get the cache token... uniquely identifies the data in the cache.
      * Holding a reference to this token prevents the cached data from being
      * removed.
-     * 
+     *
      * A cache token retrieved from a particular instance of nsICachingChannel
      * could be set on another instance of nsICachingChannel provided the
      * underlying implementations are compatible.  The implementation of
      * nsICachingChannel would be expected to only read from the cache entry
      * identified by the cache token and not try to validate it.
      *
      * The cache token can be QI'd to a nsICacheEntryInfo if more detail
      * about the cache entry is needed (e.g., expiration time).
--- a/netwerk/base/nsIChannel.idl
+++ b/netwerk/base/nsIChannel.idl
@@ -51,29 +51,29 @@ interface nsIChannel : nsIRequest
     readonly attribute nsIURI URI;
 
     /**
      * The owner, corresponding to the entity that is responsible for this
      * channel.  Used by the security manager to grant or deny privileges to
      * mobile code loaded from this channel.
      *
      * NOTE: this is a strong reference to the owner, so if the owner is also
-     * holding a strong reference to the channel, care must be taken to 
+     * holding a strong reference to the channel, care must be taken to
      * explicitly drop its reference to the channel.
      */
     attribute nsISupports owner;
 
     /**
      * The notification callbacks for the channel.  This is set by clients, who
-     * wish to provide a means to receive progress, status and protocol-specific 
+     * wish to provide a means to receive progress, status and protocol-specific
      * notifications.  If this value is NULL, the channel implementation may use
      * the notification callbacks from its load group.  The channel may also
      * query the notification callbacks from its load group if its notification
      * callbacks do not supply the requested interface.
-     * 
+     *
      * Interfaces commonly requested include: nsIProgressEventSink, nsIPrompt,
      * and nsIAuthPrompt/nsIAuthPrompt2.
      *
      * When the channel is done, it must not continue holding references to
      * this object.
      *
      * NOTE: A channel implementation should take care when "caching" an
      * interface pointer queried from its notification callbacks.  If the
@@ -91,18 +91,18 @@ interface nsIChannel : nsIRequest
      * delivered over TLS all the same.
      *
      * FIXME(bz, bug 1528449) is that still true now that
      * document.open() doesn't do this?
      */
     readonly attribute nsISupports securityInfo;
 
     /**
-     * The MIME type of the channel's content if available. 
-     * 
+     * The MIME type of the channel's content if available.
+     *
      * NOTE: the content type can often be wrongly specified (e.g., wrong file
      * extension, wrong MIME type, wrong document type stored on a server, etc.),
      * and the caller most likely wants to verify with the actual data.
      *
      * Setting contentType before the channel has been opened provides a hint
      * to the channel as to what the MIME type is.  The channel may ignore this
      * hint in deciding on the actual MIME type that it will report.
      *
@@ -199,18 +199,18 @@ interface nsIChannel : nsIRequest
      * Set (e.g., by the docshell) to indicate whether or not the channel
      * corresponds to a document URI.
      * While setting this flag is sufficient to mark a channel as a document
      * load, _checking_ whether the channel is a document load requires the use
      * of the new channel.isDocument
      */
     const unsigned long LOAD_DOCUMENT_URI = 1 << 16;
 
-    /** 
-     * If the end consumer for this load has been retargeted after discovering 
+    /**
+     * If the end consumer for this load has been retargeted after discovering
      * its content, this flag will be set:
      */
     const unsigned long LOAD_RETARGETED_DOCUMENT_URI = 1 << 17;
 
     /**
      * This flag is set to indicate that this channel is replacing another
      * channel.  This means that:
      *
--- a/netwerk/base/nsIChannelEventSink.idl
+++ b/netwerk/base/nsIChannelEventSink.idl
@@ -89,13 +89,13 @@ interface nsIChannelEventSink : nsISuppo
      *        One of REDIRECT_TEMPORARY and REDIRECT_PERMANENT will always be
      *        set.
      * @param callback
      *        Object to inform about the async result of this method
      *
      * @throw <any> Throwing an exception will cause the redirect to be
      *        cancelled
      */
-    void asyncOnChannelRedirect(in nsIChannel oldChannel, 
+    void asyncOnChannelRedirect(in nsIChannel oldChannel,
                                 in nsIChannel newChannel,
                                 in unsigned long flags,
                                 in nsIAsyncVerifyRedirectCallback callback);
 };
--- a/netwerk/base/nsIEncodedChannel.idl
+++ b/netwerk/base/nsIEncodedChannel.idl
@@ -32,19 +32,19 @@ interface nsIEncodedChannel : nsISupport
      *
      * Also note that contentEncodings only exist during or after OnStartRequest.
      * Calling contentEncodings before OnStartRequest is an error.
      */
     readonly attribute nsIUTF8StringEnumerator contentEncodings;
 
     /**
      * This attribute controls whether or not content conversion should be
-     * done per the Content-Encoding response header.  applyConversion can only 
-     * be set before or during OnStartRequest.  Calling this during 
-     * OnDataAvailable is an error. 
+     * done per the Content-Encoding response header.  applyConversion can only
+     * be set before or during OnStartRequest.  Calling this during
+     * OnDataAvailable is an error.
      *
      * TRUE by default.
      */
     attribute boolean applyConversion;
 
     /**
      * This function will start converters if they are available.
      * aNewNextListener will be nullptr if no converter is available.
--- a/netwerk/base/nsIForcePendingChannel.idl
+++ b/netwerk/base/nsIForcePendingChannel.idl
@@ -1,22 +1,22 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 /**
- * nsIForcePending interface exposes a function that enables overwriting of the normal 
+ * nsIForcePending interface exposes a function that enables overwriting of the normal
  * behavior for the channel's IsPending(), forcing 'true' to be returned.
  */
 
 [noscript, uuid(2ac3e1ca-049f-44c3-a519-f0681f51e9b1)]
 interface nsIForcePendingChannel : nsISupports
 {
 
 /**
-     * forcePending(true) overrides the normal behavior for the 
+     * forcePending(true) overrides the normal behavior for the
      * channel's IsPending(), forcing 'true' to be returned. A call to
      * forcePending(false) reverts IsPending() back to normal behavior.
      */
     void forcePending(in boolean aForcePending);
 };
--- a/netwerk/base/nsIIOService.idl
+++ b/netwerk/base/nsIIOService.idl
@@ -69,17 +69,17 @@ interface nsIIOService : nsISupports
                   [optional] in nsIURI aBaseURI);
 
     /**
      * This method constructs a new URI from a nsIFile.
      *
      * @param aFile specifies the file path
      * @return reference to a new nsIURI object
      *
-     * Note: in the future, for perf reasons we should allow 
+     * Note: in the future, for perf reasons we should allow
      * callers to specify whether this is a file or directory by
      * splitting this  into newDirURI() and newActualFileURI().
      */
     nsIURI newFileURI(in nsIFile aFile);
 
     /**
      * Creates a channel for a given URI.
      *
@@ -133,20 +133,20 @@ interface nsIIOService : nsISupports
                           in nsIURI aBaseURI,
                           in Node aLoadingNode,
                           in nsIPrincipal aLoadingPrincipal,
                           in nsIPrincipal aTriggeringPrincipal,
                           in unsigned long aSecurityFlags,
                           in unsigned long aContentPolicyType);
 
     /**
-     * Returns true if networking is in "offline" mode. When in offline mode, 
-     * attempts to access the network will fail (although this does not 
-     * necessarily correlate with whether there is actually a network 
-     * available -- that's hard to detect without causing the dialer to 
+     * Returns true if networking is in "offline" mode. When in offline mode,
+     * attempts to access the network will fail (although this does not
+     * necessarily correlate with whether there is actually a network
+     * available -- that's hard to detect without causing the dialer to
      * come up).
      *
      * Changing this fires observer notifications ... see below.
      */
     attribute boolean offline;
 
     /**
      * Returns false if there are no interfaces for a network request
--- a/netwerk/base/nsIInputStreamChannel.idl
+++ b/netwerk/base/nsIInputStreamChannel.idl
@@ -34,24 +34,24 @@ interface nsIInputStreamChannel : nsISup
      * only be set once.
      *
      * @throws NS_ERROR_IN_PROGRESS if the setter is called after the channel
      * has been opened.
      */
     attribute nsIInputStream contentStream;
 
     /**
-     * Get/set the srcdoc data string.  When the input stream channel is 
+     * Get/set the srcdoc data string.  When the input stream channel is
      * created to load a srcdoc iframe, this is set to hold the value of the
      * srcdoc attribute.
      *
      * This should be the same value used to create contentStream, but this is
      * not checked.
      *
-     * Changing the value of this attribute will not otherwise affect the 
+     * Changing the value of this attribute will not otherwise affect the
      * functionality of the channel or input stream.
      */
     attribute AString srcdocData;
 
     /**
      * Returns true if srcdocData has been set within the channel.
      */
     readonly attribute boolean isSrcdocChannel;
--- a/netwerk/base/nsIMultiPartChannel.idl
+++ b/netwerk/base/nsIMultiPartChannel.idl
@@ -3,17 +3,17 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 interface nsIChannel;
 
 /**
- * An interface to access the the base channel 
+ * An interface to access the the base channel
  * associated with a MultiPartChannel.
  */
 
 [scriptable, uuid(4fefb490-5567-11e5-a837-0800200c9a66)]
 interface nsIMultiPartChannel : nsISupports
 {
     /**
      * readonly attribute to access the underlying channel
--- a/netwerk/base/nsINestedURI.idl
+++ b/netwerk/base/nsINestedURI.idl
@@ -35,17 +35,17 @@ interface nsINestedURI : nsISupports
   readonly attribute nsIURI innerURI;
 
   /**
    * The innermost URI for this nested URI.  This must not return null if the
    * getter succeeds.  This is equivalent to repeatedly calling innerURI while
    * the returned URI QIs to nsINestedURI.
    *
    * Modifying the returned URI must not in any way modify the nested URI; this
-   * means the returned URI must be either immutable or a clone.   
+   * means the returned URI must be either immutable or a clone.
    */
   readonly attribute nsIURI innermostURI;
 };
 
 [scriptable, builtinclass, uuid(ca3d6c03-4eee-4271-a97a-d16c0a0b2c5c)]
 interface nsINestedURIMutator : nsISupports
 {
   /*
--- a/netwerk/base/nsINetAddr.idl
+++ b/netwerk/base/nsINetAddr.idl
@@ -1,9 +1,9 @@
-/* vim: et ts=4 sw=4 tw=80 
+/* vim: et ts=4 sw=4 tw=80
  */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 %{ C++
@@ -44,26 +44,26 @@ interface nsINetAddr : nsISupports
      * @return the port number for a FAMILY_INET or FAMILY_INET6 address.
      *
      * @throws NS_ERROR_NOT_AVAILABLE if the address family is not FAMILY_INET or
      * FAMILY_INET6.
      */
     readonly attribute unsigned short port;
 
     /**
-     * @return the flow label for a FAMILY_INET6 address. 
-     * 
+     * @return the flow label for a FAMILY_INET6 address.
+     *
      * @see http://www.ietf.org/rfc/rfc3697.txt
      *
      * @throws NS_ERROR_NOT_AVAILABLE if the address family is not FAMILY_INET6
      */
     readonly attribute unsigned long flow;
 
     /**
-     * @return the address scope of a FAMILY_INET6 address.  
+     * @return the address scope of a FAMILY_INET6 address.
      *
      * @see http://tools.ietf.org/html/rfc4007
      *
      * @throws NS_ERROR_NOT_AVAILABLE if the address family is not FAMILY_INET6
      */
     readonly attribute unsigned long scope;
 
     /**
--- a/netwerk/base/nsINetUtil.idl
+++ b/netwerk/base/nsINetUtil.idl
@@ -120,60 +120,60 @@ interface nsINetUtil : nsISupports
 
   /** %XX-escape URL query */
   const unsigned long ESCAPE_URL_QUERY = 1 << 8;
 
   /** %XX-escape URL ref */
   const unsigned long ESCAPE_URL_REF = 1 << 9;
 
   /** %XX-escape URL path - same as escaping directory, basename and extension */
-  const unsigned long ESCAPE_URL_FILEPATH = 
+  const unsigned long ESCAPE_URL_FILEPATH =
     ESCAPE_URL_DIRECTORY | ESCAPE_URL_FILE_BASENAME | ESCAPE_URL_FILE_EXTENSION;
 
   /** %XX-escape scheme, username, password, host, path, params, query and ref */
-  const unsigned long ESCAPE_URL_MINIMAL = 
+  const unsigned long ESCAPE_URL_MINIMAL =
     ESCAPE_URL_SCHEME | ESCAPE_URL_USERNAME | ESCAPE_URL_PASSWORD |
     ESCAPE_URL_HOST   | ESCAPE_URL_FILEPATH | ESCAPE_URL_PARAM    |
     ESCAPE_URL_QUERY  | ESCAPE_URL_REF;
 
   /** Force %XX-escaping of already escaped sequences */
   const unsigned long ESCAPE_URL_FORCED = 1 << 10;
 
   /** Skip non-ascii octets, %XX-escape all others */
-  const unsigned long ESCAPE_URL_ONLY_ASCII = 1 << 11;     
+  const unsigned long ESCAPE_URL_ONLY_ASCII = 1 << 11;
 
-  /** 
+  /**
    * Skip graphic octets (0x20-0x7E) when escaping
-   * Skips all ASCII octets (0x00-0x7F) when unescaping 
+   * Skips all ASCII octets (0x00-0x7F) when unescaping
    */
   const unsigned long ESCAPE_URL_ONLY_NONASCII = 1 << 12;
 
   /** Force %XX-escape of colon */
   const unsigned long ESCAPE_URL_COLON = 1 << 14;
 
   /** Skip C0 and DEL from unescaping */
   const unsigned long ESCAPE_URL_SKIP_CONTROL = 1 << 15;
 
   /**
-   * %XX-Escape invalid chars in a URL segment. 
+   * %XX-Escape invalid chars in a URL segment.
    *
    * @param aStr the URL to be escaped
    * @param aFlags the URL segment type flags
    *
    * @return the escaped string (the string itself if escaping did not happen)
    *
    */
   ACString escapeURL(in ACString aStr, in unsigned long aFlags);
 
   /**
    * Expands URL escape sequences
    *
    * @param aStr the URL to be unescaped
    * @param aFlags only ESCAPE_URL_ONLY_NONASCII and ESCAPE_URL_SKIP_CONTROL
-   *               are recognized.  If |aFlags| is 0 all escape sequences are 
+   *               are recognized.  If |aFlags| is 0 all escape sequences are
    *               unescaped
    * @return unescaped string
    */
   ACString unescapeString(in AUTF8String aStr, in unsigned long aFlags);
 
   /**
    * Extract the charset parameter location and value from a content-type
    * header.
--- a/netwerk/base/nsINetworkLinkService.idl
+++ b/netwerk/base/nsINetworkLinkService.idl
@@ -30,17 +30,17 @@ interface nsINetworkLinkService : nsISup
    * The link is only up when network connections can be established. For
    * example, the link is down during DHCP configuration (unless there
    * is another usable interface already configured).
    *
    * If the link status is not currently known, we generally assume that
    * it is up.
    */
   readonly attribute boolean isLinkUp;
-  
+
   /**
    * This is set to true when we believe that isLinkUp is accurate.
    */
   readonly attribute boolean linkStatusKnown;
 
   /**
    * The type of network connection.
    */
--- a/netwerk/base/nsIPermission.idl
+++ b/netwerk/base/nsIPermission.idl
@@ -20,17 +20,17 @@ interface nsIPermission : nsISupports
     /**
      * The principal for which this permission applies.
      */
     readonly attribute nsIPrincipal principal;
 
     /**
      * a case-sensitive ASCII string, indicating the type of permission
      * (e.g., "cookie", "image", etc).
-     * This string is specified by the consumer when adding a permission 
+     * This string is specified by the consumer when adding a permission
      * via nsIPermissionManager.
      * @see nsIPermissionManager
      */
     readonly attribute ACString type;
 
     /**
      * The permission (see nsIPermissionManager.idl for allowed values)
      */
--- a/netwerk/base/nsIPermissionManager.idl
+++ b/netwerk/base/nsIPermissionManager.idl
@@ -1,16 +1,16 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 /**
  * This file contains an interface to the Permission Manager,
- * used to persistenly store permissions for different object types (cookies, 
+ * used to persistenly store permissions for different object types (cookies,
  * images etc) on a site-by-site basis.
  *
  * This service broadcasts the following notification when the permission list
  * is changed:
  *
  * topic  : "perm-changed" (PERM_CHANGE_NOTIFICATION)
  *          broadcast whenever the permission list changes in some way. there
  *          are four possible data strings for this notification; one
@@ -93,17 +93,17 @@ interface nsIPermissionManager : nsISupp
    *                    NOTE: UNKNOWN_ACTION (0) is reserved to represent the
    *                    default permission when no entry is found for a host, and
    *                    should not be used by consumers to indicate otherwise.
    * @param expiretype  a constant defining whether this permission should
    *                    never expire (EXPIRE_NEVER), expire at the end of the
    *                    session (EXPIRE_SESSION), or expire at a specified time
    *                    (EXPIRE_TIME).
    * @param expiretime  an integer representation of when this permission
-   *                    should be forgotten (milliseconds since Jan 1 1970 0:00:00). 
+   *                    should be forgotten (milliseconds since Jan 1 1970 0:00:00).
    */
   void add(in nsIURI uri,
            in ACString type,
            in uint32_t permission,
            [optional] in uint32_t expireType,
            [optional] in int64_t expireTime);
 
   /**
@@ -148,17 +148,17 @@ interface nsIPermissionManager : nsISupp
                         [optional] in int64_t expireTime);
 
   /**
    * Remove permission information for a given URI and permission type. This will
    * remove the permission for the entire host described by the uri, acting as the
    * opposite operation to the add() method.
    *
    * @param uri    the uri to remove the permission for
-   * @param type   a case-sensitive ASCII string, identifying the consumer. 
+   * @param type   a case-sensitive ASCII string, identifying the consumer.
    *               The type must have been previously registered using the
    *               add() method.
    */
   void remove(in nsIURI uri,
               in ACString type);
 
   /**
    * Remove permission information for a given principal.
--- a/netwerk/base/nsIPrompt.idl
+++ b/netwerk/base/nsIPrompt.idl
@@ -7,17 +7,17 @@
  * This is the prompt interface which can be used without knowlege of a
  * parent window. The parentage is hidden by the GetInterface though
  * which it is gotten. This interface is identical to nsIPromptService
  * but without the parent nsIDOMWindow parameter. See nsIPromptService
  * for all documentation.
  *
  * Accesskeys can be attached to buttons and checkboxes by inserting
  * an & before the accesskey character. For a real &, use && instead.
- */  
+ */
 
 #include "nsISupports.idl"
 
 [scriptable, uuid(a63f70c0-148b-11d3-9333-00104ba0fd40)]
 interface nsIPrompt : nsISupports
 {
     void alert(in wstring dialogTitle,
                in wstring text);
@@ -29,31 +29,31 @@ interface nsIPrompt : nsISupports
 
     boolean confirm(in wstring dialogTitle,
                     in wstring text);
 
     boolean confirmCheck(in wstring dialogTitle,
                          in wstring text,
                          in wstring checkMsg,
                          inout boolean checkValue);
-                         
+
     const unsigned long BUTTON_POS_0              = 1;
     const unsigned long BUTTON_POS_1              = 1 << 8;
     const unsigned long BUTTON_POS_2              = 1 << 16;
-     
+
     const unsigned long BUTTON_TITLE_OK            = 1;
     const unsigned long BUTTON_TITLE_CANCEL        = 2;
     const unsigned long BUTTON_TITLE_YES           = 3;
     const unsigned long BUTTON_TITLE_NO            = 4;
     const unsigned long BUTTON_TITLE_SAVE          = 5;
     const unsigned long BUTTON_TITLE_DONT_SAVE     = 6;
     const unsigned long BUTTON_TITLE_REVERT        = 7;
 
     const unsigned long BUTTON_TITLE_IS_STRING     = 127;
-    
+
     const unsigned long BUTTON_POS_0_DEFAULT       = 0 << 24;
     const unsigned long BUTTON_POS_1_DEFAULT       = 1 << 24;
     const unsigned long BUTTON_POS_2_DEFAULT       = 2 << 24;
 
     /* used for security dialogs, buttons are initially disabled */
     const unsigned long BUTTON_DELAY_ENABLE        = 1 << 26;
 
     const unsigned long STD_OK_CANCEL_BUTTONS      = (BUTTON_TITLE_OK * BUTTON_POS_0) +
@@ -67,31 +67,31 @@ interface nsIPrompt : nsISupports
                    in wstring button0Title,
                    in wstring button1Title,
                    in wstring button2Title,
                    in wstring checkMsg,
                    inout boolean checkValue);
 
      boolean prompt(in wstring dialogTitle,
                     in wstring text,
-                    inout wstring value, 
+                    inout wstring value,
                     in wstring checkMsg,
                     inout boolean checkValue);
 
      boolean promptPassword(in wstring dialogTitle,
                             in wstring text,
                             inout wstring password,
                             in wstring checkMsg,
                             inout boolean checkValue);
- 
+
      boolean promptUsernameAndPassword(in wstring dialogTitle,
                                        in wstring text,
                                        inout wstring username,
                                        inout wstring password,
                                        in wstring checkMsg,
                                        inout boolean checkValue);
-    
+
     boolean select(in wstring dialogTitle,
                    in wstring text,
                    in  uint32_t count,
                    [array, size_is(count)] in wstring selectList,
                    out long outSelection);
 };
--- a/netwerk/base/nsIProtocolHandler.idl
+++ b/netwerk/base/nsIProtocolHandler.idl
@@ -47,25 +47,25 @@ interface nsIProtocolHandlerWithDynamicF
 [scriptable, uuid(a87210e6-7c8c-41f7-864d-df809015193e)]
 interface nsIProtocolHandler : nsISupports
 {
     /**
      * The scheme of this protocol (e.g., "file").
      */
     readonly attribute ACString scheme;
 
-    /** 
+    /**
      * The default port is the port that this protocol normally uses.
      * If a port does not make sense for the protocol (e.g., "about:")
      * then -1 will be returned.
      */
     readonly attribute long defaultPort;
 
     /**
-     * Returns the protocol specific flags (see flag definitions below).  
+     * Returns the protocol specific flags (see flag definitions below).
      */
     readonly attribute unsigned long protocolFlags;
 
 %{C++
   // Helper method to get the protocol flags in the right way.
   nsresult DoGetProtocolFlags(nsIURI* aURI, uint32_t* aFlags)
   {
       nsCOMPtr<nsIProtocolHandlerWithDynamicFlags> dh = do_QueryInterface(this);
@@ -96,38 +96,38 @@ interface nsIProtocolHandler : nsISuppor
      * @param aOriginCharset - the charset of the document from which this URI
      *                         string originated.  this corresponds to the
      *                         charset that should be used when communicating
      *                         this URI to an origin server, for example.  if
      *                         null, then UTF-8 encoding is assumed (i.e.,
      *                         no charset transformation from aSpec).
      * @param aBaseURI       - if null, aSpec must specify an absolute URI.
      *                         otherwise, aSpec may be resolved relative
-     *                         to aBaseURI, depending on the protocol. 
-     *                         If the protocol has no concept of relative 
+     *                         to aBaseURI, depending on the protocol.
+     *                         If the protocol has no concept of relative
      *                         URI aBaseURI will simply be ignored.
      */
     nsIURI newURI(in AUTF8String aSpec,
                   [optional] in string aOriginCharset,
                   [optional] in nsIURI aBaseURI);
 
     /**
      * Constructs a new channel from the given URI for this protocol handler and
      * sets the loadInfo for the constructed channel.
      */
     nsIChannel newChannel(in nsIURI aURI, in nsILoadInfo aLoadinfo);
 
     /**
      * Allows a protocol to override blacklisted ports.
      *
-     * This method will be called when there is an attempt to connect to a port 
+     * This method will be called when there is an attempt to connect to a port
      * that is blacklisted.  For example, for most protocols, port 25 (Simple Mail
-     * Transfer) is banned.  When a URI containing this "known-to-do-bad-things" 
-     * port number is encountered, this function will be called to ask if the 
-     * protocol handler wants to override the ban.  
+     * Transfer) is banned.  When a URI containing this "known-to-do-bad-things"
+     * port number is encountered, this function will be called to ask if the
+     * protocol handler wants to override the ban.
      */
     boolean allowPort(in long port, in string scheme);
 
 
     /**************************************************************************
      * Constants for the protocol flags (the first is the default mask, the
      * others are deviations):
      *
@@ -213,25 +213,25 @@ interface nsIProtocolHandler : nsISuppor
      */
 
     /**
      * The URIs for this protocol can be loaded by anyone.  For example, any
      * website should be allowed to trigger a load of a URI for this protocol.
      * Web-safe protocols like "http" should set this flag.
      */
     const unsigned long URI_LOADABLE_BY_ANYONE = (1<<6);
-    
+
     /**
      * The URIs for this protocol are UNSAFE if loaded by untrusted (web)
      * content and may only be loaded by privileged code (for example, code
      * which has the system principal).  Various internal protocols should set
      * this flag.
      */
     const unsigned long URI_DANGEROUS_TO_LOAD = (1<<7);
-    
+
     /**
      * The URIs for this protocol point to resources that are part of the
      * application's user interface.  There are cases when such resources may
      * be made accessible to untrusted content such as web pages, so this is
      * less restrictive than URI_DANGEROUS_TO_LOAD but more restrictive than
      * URI_LOADABLE_BY_ANYONE.  See the documentation for
      * nsIScriptSecurityManager::CheckLoadURI.
      */
--- a/netwerk/base/nsIRequest.idl
+++ b/netwerk/base/nsIRequest.idl
@@ -39,19 +39,19 @@ interface nsIRequest : nsISupports
 
     /**
      * The error status associated with the request.
      */
     readonly attribute nsresult status;
 
     /**
      * Cancels the current request.  This will close any open input or
-     * output streams and terminate any async requests.  Users should 
+     * output streams and terminate any async requests.  Users should
      * normally pass NS_BINDING_ABORTED, although other errors may also
-     * be passed.  The error passed in will become the value of the 
+     * be passed.  The error passed in will become the value of the
      * status attribute.
      *
      * Implementations must not send any notifications (e.g. via
      * nsIRequestObserver) synchronously from this function. Similarly,
      * removal from the load group (if any) must also happen asynchronously.
      *
      * Requests that use nsIStreamListener must not call onDataAvailable
      * anymore after cancel has been called.
@@ -71,30 +71,30 @@ interface nsIRequest : nsISupports
      * any open streams remain logically opened and will continue delivering
      * data when the transport is resumed.
      *
      * Calling cancel() on a suspended request must not send any
      * notifications (such as onstopRequest) until the request is resumed.
      *
      * NOTE: some implementations are unable to immediately suspend, and
      * may continue to deliver events already posted to an event queue. In
-     * general, callers should be capable of handling events even after 
+     * general, callers should be capable of handling events even after
      * suspending a request.
      */
     void suspend();
 
     /**
      * Resumes the current request.  This may have the effect of re-opening
-     * any underlying transport and will resume the delivery of data to 
+     * any underlying transport and will resume the delivery of data to
      * any open streams.
      */
     void resume();
 
     /**
-     * The load group of this request.  While pending, the request is a 
+     * The load group of this request.  While pending, the request is a
      * member of the load group.  It is the responsibility of the request
      * to implement this policy.
      */
     attribute nsILoadGroup loadGroup;
 
     /**
      * The load flags of this request.  Bits 0-15 are reserved.
      *
@@ -170,49 +170,49 @@ interface nsIRequest : nsISupports
      * This flag is used for a shift-reload.
      */
     const unsigned long LOAD_BYPASS_CACHE = 1 << 9;
 
     /**
      * Attempt to force a load from the cache, bypassing ALL validation logic
      * (note: this is stronger than VALIDATE_NEVER, which still validates for
      * certain conditions).
-     * 
+     *
      * If the resource is not present in cache, it will be loaded from the
      * network.  Combine this flag with LOAD_ONLY_FROM_CACHE if you wish to
      * perform cache-only loads without validation checks.
      *
      * This flag is used when browsing via history.  It is not recommended for
      * normal browsing as it may likely violate reasonable assumptions made by
      * the server and confuse users.
      */
     const unsigned long LOAD_FROM_CACHE   = 1 << 10;
 
     /**
      * The following flags control the frequency of cached content validation
      * when neither LOAD_BYPASS_CACHE or LOAD_FROM_CACHE are set.  By default,
      * cached content is automatically validated if necessary before reuse.
-     * 
+     *
      * VALIDATE_ALWAYS forces validation of any cached content independent of
      * its expiration time (unless it is https with Cache-Control: immutable)
-     * 
+     *
      * VALIDATE_NEVER disables validation of cached content, unless it arrived
      * with the "Cache: no-store" header, or arrived via HTTPS with the
      * "Cache: no-cache" header.
      *
-     * VALIDATE_ONCE_PER_SESSION disables validation of expired content, 
-     * provided it has already been validated (at least once) since the start 
+     * VALIDATE_ONCE_PER_SESSION disables validation of expired content,
+     * provided it has already been validated (at least once) since the start
      * of this session.
      *
      * NOTE TO IMPLEMENTORS:
      *   These flags are intended for normal browsing, and they should therefore
      *   not apply to content that must be validated before each use.  Consider,
      *   for example, a HTTP response with a "Cache-control: no-cache" header.
      *   According to RFC2616, this response must be validated before it can
-     *   be taken from a cache.  Breaking this requirement could result in 
+     *   be taken from a cache.  Breaking this requirement could result in
      *   incorrect and potentially undesirable side-effects.
      */
     const unsigned long VALIDATE_ALWAYS           = 1 << 11;
     const unsigned long VALIDATE_NEVER            = 1 << 12;
     const unsigned long VALIDATE_ONCE_PER_SESSION = 1 << 13;
 
     /**
      * When set, this flag indicates that no user-specific data should be added
--- a/netwerk/base/nsIResumableChannel.idl
+++ b/netwerk/base/nsIResumableChannel.idl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
- 
+
 interface nsIStreamListener;
 
 [scriptable, uuid(4ad136fa-83af-4a22-a76e-503642c0f4a8)]
 interface nsIResumableChannel : nsISupports {
     /**
      * Prepare this channel for resuming. The request will not start until
      * asyncOpen or open is called. Calling resumeAt after open or asyncOpen
      * has been called has undefined behaviour.
--- a/netwerk/base/nsISocketTransport.idl
+++ b/netwerk/base/nsISocketTransport.idl
@@ -97,25 +97,25 @@ interface nsISocketTransport : nsITransp
     /**
      * Security info object returned from the secure socket provider.  This
      * object supports nsISSLSocketControl, nsITransportSecurityInfo, and
      * possibly other interfaces.
      *
      * This attribute is only available once the socket is connected.
      */
     readonly attribute nsISupports securityInfo;
-    
+
     /**
      * Security notification callbacks passed to the secure socket provider
      * via nsISSLSocketControl at socket creation time.
      *
      * NOTE: this attribute cannot be changed once a stream has been opened.
      */
     attribute nsIInterfaceRequestor securityCallbacks;
-   
+
     /**
      * Test if this socket transport is (still) connected.
      */
     boolean isAlive();
 
     /**
      * Socket timeouts in seconds.  To specify no timeout, pass UINT32_MAX
      * as aValue to setTimeout.  The implementation may truncate timeout values
@@ -168,25 +168,25 @@ interface nsISocketTransport : nsITransp
     const unsigned long STATUS_CONNECTED_TO   = 0x804b0004;
     const unsigned long STATUS_SENDING_TO     = 0x804b0005;
     const unsigned long STATUS_WAITING_FOR    = 0x804b000a;
     const unsigned long STATUS_RECEIVING_FROM = 0x804b0006;
     const unsigned long STATUS_TLS_HANDSHAKE_STARTING = 0x804b000c;
     const unsigned long STATUS_TLS_HANDSHAKE_ENDED    = 0x804b000d;
 
     /**
-     * connectionFlags is a bitmask that can be used to modify underlying 
+     * connectionFlags is a bitmask that can be used to modify underlying
      * behavior of the socket connection. See the flags below.
      */
     attribute unsigned long connectionFlags;
 
     /**
      * Values for the connectionFlags
      *
-     * When making a new connection BYPASS_CACHE will force the Necko DNS 
+     * When making a new connection BYPASS_CACHE will force the Necko DNS
      * cache entry to be refreshed with a new call to NSPR if it is set before
      * opening the new stream.
      */
     const unsigned long BYPASS_CACHE = (1 << 0);
 
     /**
      * When setting this flag, the socket will not apply any
      * credentials when establishing a connection. For example,
--- a/netwerk/base/nsISocketTransportService.idl
+++ b/netwerk/base/nsISocketTransportService.idl
@@ -14,17 +14,17 @@ interface nsIRunnable;
 class nsASocketHandler;
 struct PRFileDesc;
 %}
 
 [ptr] native PRFileDescPtr(PRFileDesc);
 [ptr] native nsASocketHandlerPtr(nsASocketHandler);
 
 [builtinclass, scriptable, uuid(ad56b25f-e6bb-4db3-9f7b-5b7db33fd2b1)]
-interface nsISocketTransportService : nsISupports 
+interface nsISocketTransportService : nsISupports
 {
     /**
      * Creates a transport for a specified host and port.
      *
      * @param aSocketTypes
      *        array of socket type strings.  null if using default socket type.
      * @param aTypeCount
      *        specifies length of aSocketTypes.
--- a/netwerk/base/nsISpeculativeConnect.idl
+++ b/netwerk/base/nsISpeculativeConnect.idl
@@ -14,17 +14,17 @@ interface nsISpeculativeConnect : nsISup
 {
     /**
      * Called as a hint to indicate a new transaction for the URI is likely coming
      * soon. The implementer may use this information to start a TCP
      * and/or SSL level handshake for that resource immediately so that it is
      * ready and/or progressed when the transaction is actually submitted.
      *
      * No obligation is taken on by the implementer, nor is the submitter obligated
-     * to actually open the new channel. 
+     * to actually open the new channel.
      *
      * @param aURI the URI of the hinted transaction
      * @param aPrincipal the principal that will be used for opening the
      *        channel of the hinted transaction.
      * @param aCallbacks any security callbacks for use with SSL for interfaces
      *        such as nsIBadCertListener. May be null.
      *
      */
--- a/netwerk/base/nsIStreamListenerTee.idl
+++ b/netwerk/base/nsIStreamListenerTee.idl
@@ -10,41 +10,41 @@ interface nsIEventTarget;
 
 /**
  * As data "flows" into a stream listener tee, it is copied to the output stream
  * and then forwarded to the real listener.
  */
 [scriptable, uuid(62b27fc1-6e8c-4225-8ad0-b9d44252973a)]
 interface nsIStreamListenerTee : nsIStreamListener
 {
-    /** 
+    /**
      * Initalize the tee.
      *
      * @param listener
      *    the original listener the tee will propagate onStartRequest,
-     *    onDataAvailable and onStopRequest notifications to, exceptions from 
+     *    onDataAvailable and onStopRequest notifications to, exceptions from
      *    the listener will be propagated back to the channel
      * @param sink
      *    the stream the data coming from the channel will be written to,
      *    should be blocking
      * @param requestObserver
      *    optional parameter, listener that gets only onStartRequest and
      *    onStopRequest notifications; exceptions threw within this optional
      *    observer are also propagated to the channel, but exceptions from
-     *    the original listener (listener parameter) are privileged 
+     *    the original listener (listener parameter) are privileged
      */
     void init(in nsIStreamListener listener,
               in nsIOutputStream sink,
               [optional] in nsIRequestObserver requestObserver);
 
-    /** 
+    /**
      * Initalize the tee like above, but with the extra parameter to make it
      * possible to copy the output asynchronously
      * @param anEventTarget
      *    if set, this event-target is used to copy data to the output stream,
      *    giving an asynchronous tee
     */
     void initAsync(in nsIStreamListener listener,
                    in nsIEventTarget eventTarget,
                    in nsIOutputStream sink,
                    [optional] in nsIRequestObserver requestObserver);
-    
+
 };
--- a/netwerk/base/nsIStreamTransportService.idl
+++ b/netwerk/base/nsIStreamTransportService.idl
@@ -11,17 +11,17 @@ interface nsIInputAvailableCallback;
 
 /**
  * This service read/writes a stream on a background thread.
  *
  * Note: instead of using this interface, probably you want to use
  * NS_MakeAsyncNonBlockingInputStream.
  *
  * Use this service to transform any blocking stream (e.g., file stream)
- * into a fully asynchronous stream that can be read/written without 
+ * into a fully asynchronous stream that can be read/written without
  * blocking the main thread.
  */
 [builtinclass, scriptable, uuid(5e0adf7d-9785-45c3-a193-04f25a75da8f)]
 interface nsIStreamTransportService : nsISupports
 {
     /**
      * CreateInputTransport
      *
--- a/netwerk/base/nsISystemProxySettings.idl
+++ b/netwerk/base/nsISystemProxySettings.idl
@@ -1,16 +1,16 @@
 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
-/** 
+/**
  * This interface allows the proxy code to use platform-specific proxy
  * settings when the proxy preference is set to "automatic discovery". This service
  * acts like a PAC parser to netwerk, but it will actually read the system settings and
  * either return the proper proxy data from the autoconfig URL specified in the system proxy,
  * or generate proxy data based on the system's manual proxy settings.
  */
 [scriptable, uuid(971591cd-277e-409a-bbf6-0a79879cd307)]
 interface nsISystemProxySettings : nsISupports
@@ -23,17 +23,17 @@ interface nsISystemProxySettings : nsISu
      * functions such as dbus.
      */
     readonly attribute bool mainThreadOnly;
 
     /**
      * If non-empty, use this PAC file. If empty, call getProxyForURI instead.
      */
     readonly attribute AUTF8String PACURI;
-    
+
     /**
      * See ProxyAutoConfig::getProxyForURI; this function behaves similarly except
      * a more relaxed return string is allowed that includes full urls instead of just
      * host:port syntax. e.g. "PROXY http://www.foo.com:8080" instead of
      * "PROXY www.foo.com:8080"
      */
     AUTF8String getProxyForURI(in AUTF8String testSpec,
                                in AUTF8String testScheme,
--- a/netwerk/base/nsITraceableChannel.idl
+++ b/netwerk/base/nsITraceableChannel.idl
@@ -10,25 +10,25 @@ interface nsIStreamListener;
 /**
  * A channel implementing this interface allows one to intercept its data by
  * inserting intermediate stream listeners.
  */
 [scriptable, uuid(68167b0b-ef34-4d79-a09a-8045f7c5140e)]
 interface nsITraceableChannel : nsISupports
 {
     /*
-     * Replace the channel's listener with a new one, and return the listener 
-     * the channel used to have. The new listener intercepts OnStartRequest, 
-     * OnDataAvailable and OnStopRequest calls and must pass them to 
-     * the original listener after examination. If multiple callers replace 
+     * Replace the channel's listener with a new one, and return the listener
+     * the channel used to have. The new listener intercepts OnStartRequest,
+     * OnDataAvailable and OnStopRequest calls and must pass them to
+     * the original listener after examination. If multiple callers replace
      * the channel's listener, a chain of listeners is created.
-     * The caller of setNewListener has no way to control at which place 
+     * The caller of setNewListener has no way to control at which place
      * in the chain its listener is placed.
      *
-     * Note: The caller of setNewListener must not delay passing 
+     * Note: The caller of setNewListener must not delay passing
      * OnStartRequest to the original listener.
      *
      * Note2: A channel may restrict when the listener can be replaced.
      * It is not recommended to allow listener replacement after OnStartRequest
      * has been called.
      */
     nsIStreamListener setNewListener(in nsIStreamListener aListener);
 };
--- a/netwerk/base/nsITransport.idl
+++ b/netwerk/base/nsITransport.idl
@@ -10,21 +10,21 @@ interface nsITransportEventSink;
 interface nsIEventTarget;
 
 /**
  * nsITransport
  *
  * This interface provides a common way of accessing i/o streams connected
  * to some resource.  This interface does not in any way specify the resource.
  * It provides methods to open blocking or non-blocking, buffered or unbuffered
- * streams to the resource.  The name "transport" is meant to connote the 
+ * streams to the resource.  The name "transport" is meant to connote the
  * inherent data transfer implied by this interface (i.e., data is being
  * transfered in some fashion via the streams exposed by this interface).
  *
- * A transport can have an event sink associated with it.  The event sink 
+ * A transport can have an event sink associated with it.  The event sink
  * receives transport-specific events as the transfer is occuring.  For a
  * socket transport, these events can include status about the connection.
  * See nsISocketTransport for more info about socket transport specifics.
  */
 [scriptable, uuid(2a8c6334-a5e6-4ec3-9865-1256541446fb)]
 interface nsITransport : nsISupports
 {
     /**
@@ -41,17 +41,17 @@ interface nsITransport : nsISupports
      * OPEN_BLOCKING
      *   If specified, then the resulting stream will have blocking stream
      *   semantics.  This means that if the stream has no data and is not
      *   closed, then reading from it will block the calling thread until
      *   at least one byte is available or until the stream is closed.
      *   If this flag is NOT specified, then the stream has non-blocking
      *   stream semantics.  This means that if the stream has no data and is
      *   not closed, then reading from it returns NS_BASE_STREAM_WOULD_BLOCK.
-     *   In addition, in non-blocking mode, the stream is guaranteed to 
+     *   In addition, in non-blocking mode, the stream is guaranteed to
      *   support nsIAsyncInputStream.  This interface allows the consumer of
      *   the stream to be notified when the stream can again be read.
      *
      * OPEN_UNBUFFERED
      *   If specified, the resulting stream may not support ReadSegments.
      *   ReadSegments is only gauranteed to be implemented when this flag is
      *   NOT specified.
      *
@@ -117,18 +117,18 @@ interface nsITransport : nsISupports
      * @param aSink
      *        receives transport layer notifications
      * @param aEventTarget
      *        indicates the event target to which the notifications should
      *        be delivered.  if NULL, then the notifications may occur on
      *        any thread.
      */
     void setEventSink(in nsITransportEventSink aSink,
-                      in nsIEventTarget aEventTarget); 
-    
+                      in nsIEventTarget aEventTarget);
+
     /**
      * Generic nsITransportEventSink status codes.  nsITransport
      * implementations may override these status codes with their own more
      * specific status codes (e.g., see nsISocketTransport).
      *
      * In C++, these constants have a type of uint32_t, so C++ callers must use
      * the NS_NET_STATUS_* constants defined below, which have a type of
      * nsresult.
--- a/netwerk/base/nsIURI.idl
+++ b/netwerk/base/nsIURI.idl
@@ -193,17 +193,17 @@ interface nsIURI : nsISupports
        bool ret;
        mozilla::Unused << SchemeIs(aScheme, &ret);
        return ret;
      }
     %}
 
     /**
      * This method resolves a relative string into an absolute URI string,
-     * using this URI as the base. 
+     * using this URI as the base.
      *
      * NOTE: some implementations may have no concept of a relative URI.
      */
     AUTF8String resolve(in AUTF8String relativePath);
 
 
     /************************************************************************
      * Additional attributes:
--- a/netwerk/base/nsIURL.idl
+++ b/netwerk/base/nsIURL.idl
@@ -50,17 +50,17 @@ interface nsIURL : nsIURI
      */
     readonly attribute AUTF8String directory;
 
     /**
      * Returns the file name portion of a URL.  If the URL denotes a path to a
      * directory and not a file, e.g. http://host/foo/bar/, then the Directory
      * attribute accesses the complete /foo/bar/ portion, and the FileName is
      * the empty string. Note that this is purely based on searching for the
-     * last trailing slash. And hence don't rely on this to be a definite file. 
+     * last trailing slash. And hence don't rely on this to be a definite file.
      *
      * Some characters may be escaped.
      */
     readonly attribute AUTF8String fileName;
 
     /*************************************************************************
      * The URL filename is broken down even further:
      */
@@ -77,17 +77,17 @@ interface nsIURL : nsIURI
      * extension does not exist, the empty string is returned.
      *
      * Some characters may be escaped.
      */
     readonly attribute AUTF8String fileExtension;
 
     /**
      * This method takes a uri and compares the two.  The common uri portion
-     * is returned as a string.  The minimum common uri portion is the 
+     * is returned as a string.  The minimum common uri portion is the
      * protocol, and any of these if present:  login, password, host and port
      * If no commonality is found, "" is returned.  If they are identical, the
      * whole path with file/ref/etc. is returned.  For file uris, it is
      * expected that the common spec would be at least "file:///" since '/' is
      * a shared common root.
      *
      * Examples:
      *    this.spec               aURIToCompare.spec        result
--- a/netwerk/base/nsIUploadChannel.idl
+++ b/netwerk/base/nsIUploadChannel.idl
@@ -26,17 +26,17 @@ interface nsIUploadChannel : nsISupports
      *   (3) implement nsISeekableStream::seek
      *
      * History here is that we need to support both streams that already have
      * headers (e.g., Content-Type and Content-Length) information prepended to
      * the stream (by plugins) as well as clients (composer, uploading
      * application) that want to upload data streams without any knowledge of
      * protocol specifications.  For this reason, we have a special meaning
      * for the aContentType parameter (see below).
-     * 
+     *
      * @param aStream
      *        The stream to be uploaded by this channel.
      * @param aContentType
      *        If aContentType is empty, the protocol will assume that no
      *        content headers are to be added to the uploaded stream and that
      *        any required headers are already encoded in the stream.  In the
      *        case of HTTP, if this parameter is non-empty, then its value will
      *        replace any existing Content-Type header on the HTTP request.
--- a/netwerk/cache/nsICache.idl
+++ b/netwerk/cache/nsICache.idl
@@ -59,20 +59,20 @@ interface nsICache : nsISupports
      *               you may WRITE if it needs updating.
      *
      *
      * Comments:
      *
      * If you think that you might need to modify cached data or meta data,
      * then you must open a cache entry requesting WRITE access.  Only one
      * cache entry descriptor, per cache entry, will be granted WRITE access.
-     * 
+     *
      * Usually, you will request READ_WRITE access in order to first test the
      * meta data and informational fields to determine if a write (ie. going
-     * to the net) may actually be necessary.  If you determine that it is 
+     * to the net) may actually be necessary.  If you determine that it is
      * not, then you would mark the cache entry as valid (using MarkValid) and
      * then simply read the data from the cache.
      *
      * A descriptor granted WRITE access has exclusive access to the cache
      * entry up to the point at which it marks it as valid.  Once the cache
      * entry has been "validated", other descriptors with READ access may be
      * opened to the cache entry.
      *
@@ -116,25 +116,25 @@ interface nsICache : nsISupports
 
     /**
      * All entries for a cache session are stored as streams of data or
      * as objects.  These constant my be used to specify the type of entries
      * when calling nsICacheService::CreateSession().
      */
     const long NOT_STREAM_BASED = 0;
     const long STREAM_BASED     = 1;
-    
+
     /**
      * The synchronous OpenCacheEntry() may be blocking or non-blocking.  If a cache entry is
      * waiting to be validated by another cache descriptor (so no new cache descriptors for that
      * key can be created, OpenCacheEntry() will return NS_ERROR_CACHE_WAIT_FOR_VALIDATION in
      * non-blocking mode.  In blocking mode, it will wait until the cache entry for the key has
      * been validated or doomed.  If the cache entry is validated, then a descriptor for that
      * entry will be created and returned.  If the cache entry was doomed, then a descriptor
-     * will be created for a new cache entry for the key. 
+     * will be created for a new cache entry for the key.
      */
     const long NON_BLOCKING = 0;
     const long BLOCKING     = 1;
 
     /**
      * Constant meaning no expiration time.
      */
     const unsigned long NO_EXPIRATION_TIME = 0xFFFFFFFF;
--- a/netwerk/cache/nsICacheEntryDescriptor.idl
+++ b/netwerk/cache/nsICacheEntryDescriptor.idl
@@ -62,57 +62,57 @@ interface nsICacheEntryDescriptor : nsIC
     nsIOutputStream openOutputStream(in unsigned long offset);
 
     /**
      * Get/set the cache data element.  This will fail if the cache entry
      * IS stream based.  The cache entry holds a strong reference to this
      * object.  The object will be released when the cache entry is destroyed.
      */
     attribute nsISupports cacheElement;
-    
+
     /**
       * Stores the Content-Length specified in the HTTP header for this
       * entry. Checked before we write to the cache entry, to prevent ever
-      * taking up space in the cache for an entry that we know up front 
+      * taking up space in the cache for an entry that we know up front
       * is going to have to be evicted anyway. See bug 588507.
       */
     attribute int64_t    predictedDataSize;
 
     /**
      * Get the access granted to this descriptor.  See nsICache.idl for the
      * definitions of the access modes and a thorough description of their
      * corresponding meanings.
      */
     readonly attribute nsCacheAccessMode accessGranted;
-    
+
     /**
      * Get/set the storage policy of the cache entry.  See nsICache.idl for
      * the definitions of the storage policies.
      */
     attribute nsCacheStoragePolicy storagePolicy;
 
     /**
      * Get the disk file associated with the cache entry.
      */
     readonly attribute nsIFile file;
 
     /**
      * Get/set security info on the cache entry for this descriptor.  This fails
      * if the storage policy is not STORE_IN_MEMORY.
      */
     attribute nsISupports securityInfo;
-    
+
     /**
      * Get the size of the cache entry data, as stored. This may differ
      * from the entry's dataSize, if the entry is compressed.
      */
     readonly attribute unsigned long storageDataSize;
 
     /**
-     * Doom the cache entry this descriptor references in order to slate it for 
+     * Doom the cache entry this descriptor references in order to slate it for
      * removal.  Once doomed a cache entry cannot be undoomed.
      *
      * A descriptor with WRITE access can doom the cache entry and choose to
      * fail pending requests.  This means that pending requests will not get
      * a cache descriptor.  This is meant as a tool for clients that wish to
      * instruct pending requests to skip the cache.
      */
     void doom();
@@ -129,27 +129,27 @@ interface nsICacheEntryDescriptor : nsIC
      * A writer must validate this cache object before any readers are given
      * a descriptor to the object.
      */
     void markValid();
 
     /**
      *  Explicitly close the descriptor (optional).
      */
-    
+
     void close();
 
     /**
      * Methods for accessing meta data.  Meta data is a table of key/value
      * string pairs.  The strings do not have to conform to any particular
      * charset, but they must be null terminated.
      */
     string getMetaDataElement(in string key);
     void   setMetaDataElement(in string key, in string value);
-    
+
     /**
      * Visitor will be called with key/value pair for each meta data element.
      */
     void   visitMetaData(in nsICacheMetaDataVisitor  visitor);
 };
 
 
 
--- a/netwerk/cache/nsICacheService.idl
+++ b/netwerk/cache/nsICacheService.idl
@@ -35,17 +35,17 @@ interface nsICacheService : nsISupports
      * equivalent.
      *
      * @param clientID - Specifies the name of the client using the cache.
      * @param storagePolicy - Limits the storage policy for all entries
      *   accessed via the returned session.  As a result, devices excluded
      *   by the storage policy will not be searched when opening entries
      *   from the returned session.
      * @param streamBased - Indicates whether or not the data being cached
-     *   can be represented as a stream.  The storagePolicy must be 
+     *   can be represented as a stream.  The storagePolicy must be
      *   consistent with the value of this field.  For example, a non-stream-
      *   based cache entry can only have a storage policy of STORE_IN_MEMORY.
      * @return new cache session.
      */
     nsICacheSession createSession(in string                 clientID,
                                   in nsCacheStoragePolicy   storagePolicy,
                                   in boolean                streamBased);
 
--- a/netwerk/cache/nsICacheSession.idl
+++ b/netwerk/cache/nsICacheSession.idl
@@ -61,17 +61,17 @@ interface nsICacheSession : nsISupports
                              in nsCacheAccessMode  accessRequested,
                              in nsICacheListener   listener,
                              [optional] in boolean noWait);
 
     /**
      * Evict all entries for this session's clientID according to its storagePolicy.
      */
     void evictEntries();
-    
+
     /**
      * Return whether any of the cache devices implied by the session storage policy
      * are currently enabled for instantiation if they don't already exist.
      */
     boolean isStorageEnabled();
 
     /**
      * Asynchronously doom an entry specified by the key. Listener will be
--- a/netwerk/cache/nsICacheVisitor.idl
+++ b/netwerk/cache/nsICacheVisitor.idl
@@ -27,45 +27,45 @@ interface nsICacheVisitor : nsISupports
     boolean visitDevice(in string               deviceID,
                         in nsICacheDeviceInfo   deviceInfo);
 
     /**
      * Called to provide information about a cache entry.
      *
      * @param deviceID - specifies the device being visited.
      * @param entryInfo - specifies information about this entry.
-     * 
+     *
      * @return true to visit the next entry on the current device, or if the
      *   end of the device has been reached, advance to the next device.
      * @return false to advance to the next device.
      */
     boolean visitEntry(in string                deviceID,
                        in nsICacheEntryInfo     entryInfo);
 };
 
 
 [scriptable, uuid(31d1c294-1dd2-11b2-be3a-c79230dca297)]
 interface nsICacheDeviceInfo : nsISupports
 {
     /**
      * Get a human readable description of the cache device.
      */
     readonly attribute ACString  description;
-    
+
     /**
      * Get a usage report, statistics, miscellaneous data about
      * the cache device.
      */
     readonly attribute ACString  usageReport;
-    
+
     /**
      * Get the number of stored cache entries.
      */
     readonly attribute unsigned long  entryCount;
-    
+
     /**
      * Get the total size of the stored cache entries.
      */
     readonly attribute unsigned long  totalSize;
 
     /**
      * Get the upper limit of the size of the data the cache can store.
      */
@@ -85,17 +85,17 @@ interface nsICacheEntryInfo : nsISupport
      * Get the id for the device that stores this cache entry.
      */
     readonly attribute ACString deviceID;
 
     /**
      * Get the key identifying the cache entry.
      */
     readonly attribute ACString key;
-    
+
     /**
      * Get the number of times the cache entry has been opened.
      */
     readonly attribute long  fetchCount;
 
     /**
      * Get the last time the cache entry was opened (in seconds since the Epoch).
      */
--- a/netwerk/cache2/nsICacheEntryOpenCallback.idl
+++ b/netwerk/cache2/nsICacheEntryOpenCallback.idl
@@ -36,37 +36,37 @@ interface nsICacheEntryOpenCallback : ns
    * Called before onCacheEntryAvailable callback, depending on the result it
    * may be called more then one time.
    *
    * This callback is ensured to be called on the same thread on which asyncOpenURI
    * has been called, unless nsICacheStorage.CHECK_MULTITHREADED flag has been specified.
    * In that case this callback can be invoked on any thread, usually it is the cache I/O
    * or cache management thread.
    *
-   * IMPORTANT NOTE: 
+   * IMPORTANT NOTE:
    * This callback may be invoked sooner then respective asyncOpenURI call exits.
    *
    * @param aEntry
    *    An entry to examine.  Consumer has a chance to decide whether the
    *    entry is valid or not.
    * @param aApplicationCache
    *    Optional, application cache the entry has been found in, if any.
    * @return
    *    State of the entry, see the constants just above.
    */
   unsigned long onCacheEntryCheck(in nsICacheEntry aEntry,
                                   in nsIApplicationCache aApplicationCache);
 
   /**
-   * Callback giving actual result of asyncOpenURI.  It may give consumer the cache 
+   * Callback giving actual result of asyncOpenURI.  It may give consumer the cache
    * entry or a failure result when it's not possible to open it from some reason.
    * This callback is ensured to be called on the same thread on which asyncOpenURI
    * has been called.
    *
-   * IMPORTANT NOTE: 
+   * IMPORTANT NOTE:
    * This callback may be invoked sooner then respective asyncOpenURI call exits.
    *
    * @param aEntry
    *    The entry bound to the originally requested URI.  May be null when
    *    loading from a particular application cache and the URI has not
    *    been found in that application cache.
    * @param aNew
    *    Whether no data so far has been stored for this entry, i.e. reading
--- a/netwerk/cache2/nsICacheStorage.idl
+++ b/netwerk/cache2/nsICacheStorage.idl
@@ -39,19 +39,19 @@ interface nsICacheStorage : nsISupports
   const uint32_t OPEN_PRIORITY = 1 << 2;
 
   /**
    * Bypass the cache load when write is still in progress.
    */
   const uint32_t OPEN_BYPASS_IF_BUSY = 1 << 3;
 
   /**
-   * Perform the cache entry check (onCacheEntryCheck invocation) on any thread 
+   * Perform the cache entry check (onCacheEntryCheck invocation) on any thread
    * for optimal perfomance optimization.  If this flag is not specified it is
-   * ensured that onCacheEntryCheck is called on the same thread as respective 
+   * ensured that onCacheEntryCheck is called on the same thread as respective
    * asyncOpen has been called.
    */
   const uint32_t CHECK_MULTITHREADED = 1 << 4;
 
   /**
    * Don't automatically update any 'last used' metadata of the entry.
    */
   const uint32_t OPEN_SECRETLY = 1 << 5;
@@ -74,17 +74,17 @@ interface nsICacheStorage : nsISupports
    *    different entries.  If you don't know what aIdExtension should be
    *    leave it empty.
    * @param aFlags
    *    OPEN_NORMALLY - open cache entry normally for read and write
    *    OPEN_TRUNCATE - delete any existing entry before opening it
    *    OPEN_READONLY - don't create an entry if there is none
    *    OPEN_PRIORITY - give this request a priority over others
    *    OPEN_BYPASS_IF_BUSY - backward compatibility only, LOAD_BYPASS_LOCAL_CACHE_IF_BUSY
-   *    CHECK_MULTITHREADED - onCacheEntryCheck may be called on any thread, consumer 
+   *    CHECK_MULTITHREADED - onCacheEntryCheck may be called on any thread, consumer
    *                          implementation is thread-safe
    * @param aCallback
    *    The consumer that receives the result.
    *    IMPORTANT: The callback may be called sooner the method returns.
    */
   void asyncOpenURI(in nsIURI aURI, in ACString aIdExtension,
                     in uint32_t aFlags,
                     in nsICacheEntryOpenCallback aCallback);
--- a/netwerk/cookie/nsICookie.idl
+++ b/netwerk/cookie/nsICookie.idl
@@ -1,17 +1,17 @@
 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
-/** 
+/**
  * An optional interface for accessing the HTTP or
  * javascript cookie object
  */
 
 typedef long nsCookieStatus;
 typedef long nsCookiePolicy;
 
 [scriptable, uuid(adf0db5e-211e-45a3-be14-4486ac430a58)]
--- a/netwerk/cookie/nsICookie2.idl
+++ b/netwerk/cookie/nsICookie2.idl
@@ -1,16 +1,16 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsICookie.idl"
 
-/** 
+/**
  * Main cookie object interface for use by consumers:
  * extends nsICookie, a frozen interface for external
  * access of cookie objects
  */
 
 [scriptable, uuid(be205dae-4f4c-11e6-80ba-ea5cd310c1a8)]
 interface nsICookie2 : nsICookie
 {
--- a/netwerk/cookie/nsICookieManager.idl
+++ b/netwerk/cookie/nsICookieManager.idl
@@ -18,17 +18,17 @@ interface nsICookie2;
 interface nsIFile;
 
 [scriptable, function, uuid(20709db8-8dad-4e45-b33e-6e7c761dfc5d)]
 interface nsIPrivateModeCallback : nsISupports
 {
   void callback();
 };
 
-/** 
+/**
  * An optional interface for accessing or removing the cookies
  * that are in the cookie list
  */
 
 [scriptable, builtinclass, uuid(AAAB6710-0F2C-11d5-A53B-0010A401EB10)]
 interface nsICookieManager : nsISupports
 {
 
--- a/netwerk/dns/nsIEffectiveTLDService.idl
+++ b/netwerk/dns/nsIEffectiveTLDService.idl
@@ -22,18 +22,18 @@ interface nsIEffectiveTLDService : nsISu
      * If consumers wish to compare the result of this method against the host from
      * another nsIURI, the host should be obtained using nsIURI::GetAsciiHost().
      * In the case of nested URIs, the innermost URI will be used.
      *
      * @param   aURI   The URI to be analyzed
      *
      * @returns the public suffix
      *
-     * @throws NS_ERROR_UNEXPECTED 
-     *         or other error returned by nsIIDNService::normalize when 
+     * @throws NS_ERROR_UNEXPECTED
+     *         or other error returned by nsIIDNService::normalize when
      *         the hostname contains characters disallowed in URIs
      * @throws NS_ERROR_HOST_IS_IP_ADDRESS
      *         if the host is a numeric IPv4 or IPv6 address (as determined by
      *         the success of a call to PR_StringToNetAddr()).
      */
     ACString getPublicSuffix(in nsIURI aURI);
 
     /**
@@ -59,18 +59,18 @@ interface nsIEffectiveTLDService : nsISu
      * In the case of nested URIs, the innermost URI will be used.
      *
      * @param   aURI               The URI to be analyzed
      * @param   aAdditionalParts   Number of domain name parts to be
      *                             returned in addition to the public suffix
      *
      * @returns the base domain (public suffix plus the requested number of additional parts)
      *
-     * @throws NS_ERROR_UNEXPECTED 
-     *         or other error returned by nsIIDNService::normalize when 
+     * @throws NS_ERROR_UNEXPECTED
+     *         or other error returned by nsIIDNService::normalize when
      *         the hostname contains characters disallowed in URIs
      * @throws NS_ERROR_INSUFFICIENT_DOMAIN_LEVELS
      *         when there are insufficient subdomain levels in the hostname to satisfy the
      *         requested aAdditionalParts value.
      * @throws NS_ERROR_HOST_IS_IP_ADDRESS
      *         if aHost is a numeric IPv4 or IPv6 address (as determined by
      *         the success of a call to PR_StringToNetAddr()).
      *
--- a/netwerk/mime/nsIMIMEHeaderParam.idl
+++ b/netwerk/mime/nsIMIMEHeaderParam.idl
@@ -1,130 +1,130 @@
 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /* vim:expandtab:shiftwidth=4:tabstop=4:
  */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
- 
+
 /*
- * This interface allows any module to access the routine 
+ * This interface allows any module to access the routine
  * for MIME header parameter parsing (RFC 2231/5987)
  */
 
 #include "nsISupports.idl"
 
 [scriptable, uuid(9c9252a1-fdaf-40a2-9c2b-a3dc45e28dde)]
 interface nsIMIMEHeaderParam : nsISupports {
 
-  /** 
+  /**
    * Given the value of a single header field  (such as
    * Content-Disposition and Content-Type) and the name of a parameter
    * (e.g. filename, name, charset), returns the value of the parameter.
    * The value is obtained by decoding RFC 2231/5987-style encoding,
    * RFC 2047-style encoding, and converting to UniChar(UTF-16)
-   * from charset specified in RFC 2231/2047 encoding, UTF-8, 
+   * from charset specified in RFC 2231/2047 encoding, UTF-8,
    * <code>aFallbackCharset</code>, the locale charset as fallback if
    * <code>TryLocaleCharset</code> is set, and null-padding as last resort
    * if all else fails.
    *
-   * <p> 
-   * This method internally invokes <code>getParameterInternal</code>, 
+   * <p>
+   * This method internally invokes <code>getParameterInternal</code>,
    * However, it does not stop at decoding RFC 2231 (the task for
    * <code>getParameterInternal</code> but tries to cope
    * with several non-standard-compliant cases mentioned below.
    *
    * <p>
    * Note that a lot of MUAs put RFC 2047-encoded parameters. Unfortunately,
    * this includes Mozilla as of 2003-05-30. Even more standard-ignorant MUAs,
    * web servers and application servers put 'raw 8bit characters'. This will
    * try to cope with all these cases as gracefully as possible. Additionally,
-   * it returns the language tag if the parameter is encoded per RFC 2231 and 
+   * it returns the language tag if the parameter is encoded per RFC 2231 and
    * includes lang.
    *
    * <p>
    * Note that GetParameterHTTP skips some of the workarounds used for
    * mail (MIME) header fields, and thus SHOULD be used from non-mail
    * code.
    *
    *
-   * @param  aHeaderVal        a header string to get the value of a parameter 
+   * @param  aHeaderVal        a header string to get the value of a parameter
    *                           from.
-   * @param  aParamName        the name of a MIME header parameter (e.g. 
-   *                           filename, name, charset). If empty,  returns 
+   * @param  aParamName        the name of a MIME header parameter (e.g.
+   *                           filename, name, charset). If empty,  returns
    *                           the first (possibly) _unnamed_ 'parameter'.
    * @param  aFallbackCharset  fallback charset to try if  the string after
-   *                           RFC 2231/2047 decoding or the raw 8bit 
+   *                           RFC 2231/2047 decoding or the raw 8bit
    *                           string is not UTF-8
-   * @param  aTryLocaleCharset If set, makes yet another attempt 
+   * @param  aTryLocaleCharset If set, makes yet another attempt
    *                           with the locale charset.
-   * @param  aLang             If non-null, assigns it to a pointer 
-   *                           to a string containing the value of language 
-   *                           obtained from RFC 2231 parsing. Caller has to 
+   * @param  aLang             If non-null, assigns it to a pointer
+   *                           to a string containing the value of language
+   *                           obtained from RFC 2231 parsing. Caller has to
    *                           free it.
    * @return the value of <code>aParamName</code> in Unichar(UTF-16).
    */
   AString getParameter(in ACString aHeaderVal,
                        in string aParamName,
                        in ACString aFallbackCharset,
-                       in boolean aTryLocaleCharset, 
+                       in boolean aTryLocaleCharset,
                        out string aLang);
 
 
   /**
    * Like getParameter, but disabling encodings and workarounds specific to
    * MIME (as opposed to HTTP).
    */
   AString getParameterHTTP(in ACString aHeaderVal,
                            in string aParamName,
                            in ACString aFallbackCharset,
-                           in boolean aTryLocaleCharset, 
+                           in boolean aTryLocaleCharset,
                            out string aLang);
 
-  /** 
+  /**
    * Given the value of a header field parameter using the encoding
    * defined in RFC 5987, decode the value into a Unicode string, and extract
    * the optional language parameter.
    *
-   * <p> 
+   * <p>
    * This function is purposefully picky; it will abort for all (most?)
    * invalid inputs. This is by design. In particular, it does not support
    * any character encodings other than UTF-8, in order not to promote
    * non-interoperable usage.
    *
    * <p>
    * Code that parses HTTP header fields (as opposed to MIME header fields)
    * should use this function.
    *
    * @param  aParamVal         a header field parameter to decode.
    * @param  aLang             will be set to the language part (possibly
    *                           empty).
    * @return the decoded parameter value.
    */
-  AString decodeRFC5987Param(in ACString aParamVal, 
+  AString decodeRFC5987Param(in ACString aParamVal,
                              out ACString aLang);
 
-  /** 
+  /**
    * Given the value of a single header field  (such as
    * Content-Disposition and Content-Type) and the name of a parameter
-   * (e.g. filename, name, charset), returns the value of the parameter 
-   * after decoding RFC 2231-style encoding. 
+   * (e.g. filename, name, charset), returns the value of the parameter
+   * after decoding RFC 2231-style encoding.
    * <p>
-   * For <strong>internal use only</strong>. The only other place where 
-   * this needs to be  invoked  is  |MimeHeaders_get_parameter| in 
-   * mailnews/mime/src/mimehdrs.cpp defined as 
-   * char * MimeHeaders_get_parameter (const char *header_value, 
+   * For <strong>internal use only</strong>. The only other place where
+   * this needs to be  invoked  is  |MimeHeaders_get_parameter| in
+   * mailnews/mime/src/mimehdrs.cpp defined as
+   * char * MimeHeaders_get_parameter (const char *header_value,
    *                                   const char *parm_name,
    *                                   char **charset, char **language)
    *
    * Otherwise, this method would have been made static.
    *
    * @param  aHeaderVal  a header string to get the value of a parameter from.
-   * @param  aParamName  the name of a MIME header parameter (e.g. 
-   *                     filename, name, charset). If empty,  returns 
+   * @param  aParamName  the name of a MIME header parameter (e.g.
+   *                     filename, name, charset). If empty,  returns
    *                     the first (possibly) _unnamed_ 'parameter'.
    * @param  aCharset    If non-null, it gets assigned a new pointer
    *                     to a string containing the value of charset obtained
    *                     from RFC 2231 parsing. Caller has to free it.
    * @param  aLang       If non-null, it gets assigned a new pointer
    *                     to a string containing the value of language obtained
    *                     from RFC 2231 parsing. Caller has to free it.
    * @return             the value of <code>aParamName</code> after
@@ -133,74 +133,74 @@ interface nsIMIMEHeaderParam : nsISuppor
 
   [noscript]
   string getParameterInternal(in string aHeaderVal,
                               in string aParamName,
                               out string aCharset,
                               out string aLang);
 
 
-  /** 
+  /**
    * Given a header value, decodes RFC 2047-style encoding and
    * returns the decoded header value in UTF-8 if either it's
    * RFC-2047-encoded or aDefaultCharset is given. Otherwise,
-   * returns the input header value (in whatever encoding) 
-   * as it is except that  RFC 822 (using backslash) quotation and 
+   * returns the input header value (in whatever encoding)
+   * as it is except that  RFC 822 (using backslash) quotation and
    * CRLF (if aEatContinuation is set) are stripped away
    * <p>
-   * For internal use only. The only other place where this needs to be 
-   * invoked  is  <code>MIME_DecodeMimeHeader</code> in 
+   * For internal use only. The only other place where this needs to be
+   * invoked  is  <code>MIME_DecodeMimeHeader</code> in
    * mailnews/mime/src/mimehdrs.cpp defined as
-   * char * Mime_DecodeMimeHeader(char *header_val, const char *charset, 
+   * char * Mime_DecodeMimeHeader(char *header_val, const char *charset,
    *                              bool override, bool eatcontinuation)
    *
    * @param aHeaderVal       a header value to decode
    * @param aDefaultCharset  MIME charset to use in place of MIME charset
    *                         specified in RFC 2047 style encoding
    *                         when <code>aOverrideCharset</code> is set.
-   * @param aOverrideCharset When set, overrides MIME charset specified 
+   * @param aOverrideCharset When set, overrides MIME charset specified
    *                         in RFC 2047 style encoding with <code>aDefaultCharset</code>
    * @param aEatContinuation When set, removes CR/LF
    * @return                 decoded header value
    */
   [noscript]
   ACString decodeRFC2047Header(in string aHeaderVal,
                                in string aDefaultCharset,
                                in boolean aOverrideCharset,
                                in boolean aEatContinuation);
 
 
-  /** 
-   * Given a header parameter, decodes RFC 2047 style encoding (if it's 
+  /**
+   * Given a header parameter, decodes RFC 2047 style encoding (if it's
    * not obtained from RFC 2231 encoding),  converts it to
-   * UTF-8 and returns the result in UTF-8 if an attempt to extract 
+   * UTF-8 and returns the result in UTF-8 if an attempt to extract
    * charset info. from a few different sources succeeds.
-   * Otherwise,  returns the input header value (in whatever encoding) 
+   * Otherwise,  returns the input header value (in whatever encoding)
    * as it is except that  RFC 822 (using backslash) quotation is
    * stripped off.
    * <p>
-   * For internal use only. The only other place where this needs to be 
-   * invoked  is  <code>mime_decode_filename</code> in 
+   * For internal use only. The only other place where this needs to be
+   * invoked  is  <code>mime_decode_filename</code> in
    * mailnews/mime/src/mimehdrs.cpp defined as
-   * char * mime_decode_filename(char *name, const char *charset, 
-   *                             MimeDisplayOptions *opt) 
+   * char * mime_decode_filename(char *name, const char *charset,
+   *                             MimeDisplayOptions *opt)
    *
    * @param aParamValue      the value of a parameter to decode and convert
-   * @param aCharset         charset obtained from RFC 2231 decoding  in which 
+   * @param aCharset         charset obtained from RFC 2231 decoding  in which
    *                         <code>aParamValue</code> is encoded. If null,
-   *                         indicates that it needs to try RFC 2047, instead. 
+   *                         indicates that it needs to try RFC 2047, instead.
    * @param aDefaultCharset  MIME charset to use when aCharset is null and
-   *                         cannot be obtained per RFC 2047 (most likely 
-   *                         because 'bare' string is  used.)  Besides, it 
-   *                         overrides aCharset/MIME charset obtained from 
+   *                         cannot be obtained per RFC 2047 (most likely
+   *                         because 'bare' string is  used.)  Besides, it
+   *                         overrides aCharset/MIME charset obtained from
    *                         RFC 2047 if <code>aOverrideCharset</code>  is set.
-   * @param aOverrideCharset When set, overrides MIME charset specified 
-   *                         in RFC 2047 style encoding with 
+   * @param aOverrideCharset When set, overrides MIME charset specified
+   *                         in RFC 2047 style encoding with
    *                         <code>aDefaultCharset</code>
-   * @return                 decoded parameter 
+   * @return                 decoded parameter
    */
 
   [noscript]
    ACString decodeParameter(in ACString aParamValue,
                             in string aCharset,
                             in string aDefaultCharset,
                             in boolean aOverrideCharset);
 };
--- a/netwerk/mime/nsIMIMEInfo.idl
+++ b/netwerk/mime/nsIMIMEInfo.idl
@@ -14,22 +14,22 @@ interface nsIMutableArray;
 interface nsIInterfaceRequestor;
 
 typedef long nsHandlerInfoAction;
 
 /**
  * nsIHandlerInfo gives access to the information about how a given protocol
  * scheme or MIME-type is handled.
  */
-[scriptable, uuid(325e56a7-3762-4312-aec7-f1fcf84b4145)] 
+[scriptable, uuid(325e56a7-3762-4312-aec7-f1fcf84b4145)]
 interface nsIHandlerInfo : nsISupports {
     /**
      * The type of this handler info.  For MIME handlers, this is the MIME type.
      * For protocol handlers, it's the scheme.
-     * 
+     *
      * @return String representing the type.
      */
     readonly attribute ACString type;
 
     /**
      * A human readable description of the handler type
      */
     attribute AString description;
@@ -63,35 +63,35 @@ interface nsIHandlerInfo : nsISupports {
      * usable if hasDefaultHandler is true.
      */
     readonly attribute AString defaultDescription;
 
     /**
      * Launches the application with the specified URI, in a way that
      * depends on the value of preferredAction. preferredAction must be
      * useHelperApp or useSystemDefault.
-     *  
+     *
      * @note Only the URI scheme is used to determine how to launch.  This is
      * essentially a pass-by-value operation.  This means that in the case of
      * a file: URI, the handler that is registered for file: will be launched
      * and our code will not make any decision based on the content-type or
-     * extension, though the invoked file: handler is free to do so. 
+     * extension, though the invoked file: handler is free to do so.
      *
      * @param aURI
      *        The URI to launch this application with
      *
-     * @param aWindowContext 
+     * @param aWindowContext
      *        The window to parent the dialog against, and, if a web handler
-     *        is chosen, it is loaded in this window as well.  See 
+     *        is chosen, it is loaded in this window as well.  See
      *        nsIHandlerApp.launchWithURI for more details.
      *
      * @throw NS_ERROR_INVALID_ARG if preferredAction is not valid for this
      * call. Other exceptions may be thrown.
      */
-    void launchWithURI(in nsIURI aURI, 
+    void launchWithURI(in nsIURI aURI,
                        [optional] in nsIInterfaceRequestor aWindowContext);
 
     /**
      * preferredAction is how the user specified they would like to handle
      * this content type: save to disk, use specified helper app, use OS
      * default handler or handle using navigator; possible value constants
      * listed below
      */
@@ -132,62 +132,62 @@ interface nsIMIMEInfo : nsIHandlerInfo {
      * @return Array of extensions.
      */
     nsIUTF8StringEnumerator getFileExtensions();
 
     /**
      * Set File Extensions. Input is a comma delimited list of extensions.
      */
     void setFileExtensions(in AUTF8String aExtensions);
- 
+
     /**
      * Returns whether or not the given extension is
      * associated with this MIME info.
      *
-     * @return TRUE if the association exists. 
+     * @return TRUE if the association exists.
      */
     boolean extensionExists(in AUTF8String aExtension);
 
     /**
      * Append a given extension to the set of extensions
      */
     void appendExtension(in AUTF8String aExtension);
 
     /**
      * Returns the first extension association in
      * the internal set of extensions.
      *
      * @return The first extension.
      */
     attribute AUTF8String primaryExtension;
-    
+
     /**
      * The MIME type of this MIMEInfo.
-     * 
+     *
      * @return String representing the MIME type.
-     * 
+     *
      * @deprecated  use nsIHandlerInfo::type instead.
      */
     readonly attribute ACString MIMEType;
 
     /**
      * Returns whether or not these two nsIMIMEInfos are logically
      * equivalent.
      *
      * @returns PR_TRUE if the two are considered equal
      */
     boolean equals(in nsIMIMEInfo aMIMEInfo);
 
-    /** 
+    /**
      * Returns a list of nsILocalHandlerApp objects containing
-     * handlers associated with this mimeinfo. Implemented per 
+     * handlers associated with this mimeinfo. Implemented per
      * platform using information in this object to generate the
-     * best list. Typically used for an "open with" style user 
+     * best list. Typically used for an "open with" style user
      * option.
-     * 
+     *
      * @return nsIArray of nsILocalHandlerApp
      */
     readonly attribute nsIArray possibleLocalHandlers;
 
     /**
      * Launches the application with the specified file, in a way that
      * depends on the value of preferredAction. preferredAction must be
      * useHelperApp or useSystemDefault.
@@ -220,46 +220,46 @@ interface nsIHandlerApp : nsISupports {
      * Detailed description for this handler. Suitable for
      * a tooltip or short informative sentence.
      */
     attribute AString detailedDescription;
 
     /**
      * Whether or not the given handler app is logically equivalent to the
      * invokant (i.e. they represent the same app).
-     * 
+     *
      * Two apps are the same if they are both either local or web handlers
      * and their executables/URI templates and command line parameters are
      * the same.
      *
      * @param aHandlerApp the handler app to compare to the invokant
      *
      * @returns true if the two are logically equivalent, false otherwise
      */
     boolean equals(in nsIHandlerApp aHandlerApp);
 
     /**
      * Launches the application with the specified URI.
      *
      * @param aURI
      *        The URI to launch this application with
      *
-     * @param aWindowContext 
+     * @param aWindowContext
      *
      *        Currently only relevant to web-handler apps.  If given, this
      *        represents the docshell to load the handler in and is passed
      *        through to nsIURILoader.openURI.  If this parameter is null or
-     *        not present, the web handler app implementation will attempt to 
+     *        not present, the web handler app implementation will attempt to
      *        find/create a place to load the handler and do so.  As of this
      *        writing, it tries to load the web handler in a new window using
-     *        nsIBrowserDOMWindow.openURI.  In the future, it may attempt to 
+     *        nsIBrowserDOMWindow.openURI.  In the future, it may attempt to
      *        have a more comprehensive strategy which could include handing
      *        off to the system default browser (bug 394479).
      */
-    void launchWithURI(in nsIURI aURI, 
+    void launchWithURI(in nsIURI aURI,
                        [optional] in nsIInterfaceRequestor aWindowContext);
 
 };
 
 /**
  * nsILocalHandlerApp is a local OS-level executable
  */
 [scriptable, uuid(D36B6329-52AE-4f45-80F4-B2536AE5F8B2)]
@@ -300,33 +300,33 @@ interface nsILocalHandlerApp : nsIHandle
     AString getParameter(in unsigned long parameterIndex);
 
     /**
      * Checks to see if a parameter exists in the command line
      * parameter list.
      *
      * @param param the parameter to search for.
      *
-     * @return TRUE if the parameter exists in the current list. 
+     * @return TRUE if the parameter exists in the current list.
      */
     boolean parameterExists(in AString param);
 };
 
 /**
  * nsIWebHandlerApp is a web-based handler, as speced by the WhatWG HTML5
- * draft.  Currently, only GET-based handlers are supported.  At some point, 
+ * draft.  Currently, only GET-based handlers are supported.  At some point,
  * we probably want to work with WhatWG to spec out and implement POST-based
  * handlers as well.
  */
 [scriptable, uuid(7521a093-c498-45ce-b462-df7ba0d882f6)]
 interface nsIWebHandlerApp : nsIHandlerApp {
 
     /**
      * Template used to construct the URI to GET.  Template is expected to have
-     * a %s in it, and the escaped URI to be handled is inserted in place of 
+     * a %s in it, and the escaped URI to be handled is inserted in place of
      * that %s, as per the HTML5 spec.
      */
     attribute AUTF8String uriTemplate;
 };
 
 /**
  * nsIDBusHandlerApp represents local applications launched by DBus a message
  * invoking a method taking a single string argument descibing a URI
@@ -334,32 +334,32 @@ interface nsIWebHandlerApp : nsIHandlerA
 [scriptable, uuid(1ffc274b-4cbf-4bb5-a635-05ad2cbb6534)]
 interface nsIDBusHandlerApp : nsIHandlerApp {
 
     /**
      * Service defines the dbus service that should handle this protocol.
      * If its not set,  NS_ERROR_FAILURE will be returned by LaunchWithURI
      */
     attribute AUTF8String service;
-    
+
     /**
-     * Objpath defines the object path of the dbus service that should handle 
-     * this protocol. If its not set,  NS_ERROR_FAILURE will be returned 
+     * Objpath defines the object path of the dbus service that should handle
+     * this protocol. If its not set,  NS_ERROR_FAILURE will be returned
      * by LaunchWithURI
      */
     attribute AUTF8String objectPath;
 
     /**
-     * DBusInterface defines the interface of the dbus service that should 
-     * handle this protocol. If its not set,  NS_ERROR_FAILURE will be  
+     * DBusInterface defines the interface of the dbus service that should
+     * handle this protocol. If its not set,  NS_ERROR_FAILURE will be
      * returned by LaunchWithURI
      */
     attribute AUTF8String dBusInterface;
-    
+
     /**
-     * Method defines the dbus method that should be invoked to handle this 
-     * protocol. If its not set,  NS_ERROR_FAILURE will be returned by 
+     * Method defines the dbus method that should be invoked to handle this
+     * protocol. If its not set,  NS_ERROR_FAILURE will be returned by
      * LaunchWithURI
      */
     attribute AUTF8String method;
-    
+
 };
 
--- a/netwerk/mime/nsIMIMEService.idl
+++ b/netwerk/mime/nsIMIMEService.idl
@@ -55,17 +55,17 @@ interface nsIMIMEService : nsISupports {
      * associated with this URI. The association is purely
      * file extension to MIME type based. No attempt to determine
      * the type via server headers or byte scanning is made.
      *
      * @param  The URI the user wants MIME info on.
      * @return The MIME type, if any.
      */
     ACString getTypeFromURI(in nsIURI aURI);
-    
+
     //
     ACString getTypeFromFile(in nsIFile aFile);
 
     /**
      * Given a Type/Extension combination, returns the default extension
      * for this type. This may be identical to the passed-in extension.
      *
      * @param aMIMEType The Type to get information on. Must not be empty.
--- a/netwerk/protocol/file/nsIFileProtocolHandler.idl
+++ b/netwerk/protocol/file/nsIFileProtocolHandler.idl
@@ -7,17 +7,17 @@
 
 interface nsIFile;
 interface nsIURIMutator;
 
 [scriptable, uuid(1fb25bd5-4354-4dcd-8d97-621b7b3ed2e4)]
 interface nsIFileProtocolHandler : nsIProtocolHandler
 {
     /**
-     * This method constructs a new file URI 
+     * This method constructs a new file URI
      *
      * @param aFile nsIFile
      * @return reference to a new nsIURI object
      */
     nsIURI newFileURI(in nsIFile aFile);
 
     /**
      * This method constructs a new file URI, and returns a URI mutator
@@ -40,25 +40,25 @@ interface nsIFileProtocolHandler : nsIPr
      * getURLSpecFromDirFile if possible, for performance reasons.
      */
     AUTF8String getURLSpecFromFile(in nsIFile file);
 
     /**
      * Converts the nsIFile to the corresponding URL string. Should
      * only be called on files which are not directories. Otherwise
      * identical to getURLSpecFromFile, but is usually more efficient.
-     * WARNING: This restriction may not be enforced at runtime! 
+     * WARNING: This restriction may not be enforced at runtime!
      */
     AUTF8String getURLSpecFromActualFile(in nsIFile file);
 
     /**
      * Converts the nsIFile to the corresponding URL string. Should
      * only be called on files which are directories. Otherwise
      * identical to getURLSpecFromFile, but is usually more efficient.
-     * WARNING: This restriction may not be enforced at runtime! 
+     * WARNING: This restriction may not be enforced at runtime!
      */
     AUTF8String getURLSpecFromDir(in nsIFile file);
 
     /**
      * Converts the URL string into the corresponding nsIFile if possible.
      * A local file will be created if the URL string begins with file://.
      */
     nsIFile getFileFromURLSpec(in AUTF8String url);
--- a/netwerk/protocol/websocket/nsIWebSocketChannel.idl
+++ b/netwerk/protocol/websocket/nsIWebSocketChannel.idl
@@ -14,17 +14,17 @@ interface nsILoadInfo;
 interface nsIPrincipal;
 interface nsITransportProvider;
 
 webidl Node;
 
 #include "nsISupports.idl"
 
 /**
- * Low-level websocket API: handles network protocol.  
+ * Low-level websocket API: handles network protocol.
  *
  * This is primarly intended for use by the higher-level nsIWebSocket.idl.
  * We are also making it scriptable for now, but this may change once we have
  * WebSockets for Workers.
  */
 [scriptable, builtinclass, uuid(ce71d028-322a-4105-a947-a894689b52bf)]
 interface nsIWebSocketChannel : nsISupports
 {
@@ -141,31 +141,31 @@ interface nsIWebSocketChannel : nsISuppo
      * or sendBinaryMsg should be made after calling this. The listener object
      * may receive more messages if a server close has not yet been received.
      *
      * @param aCode the websocket closing handshake close code. Set to 0 if
      *        you are not providing a code.
      * @param aReason the websocket closing handshake close reason
      */
     [must_use] void close(in unsigned short aCode, in AUTF8String aReason);
-    
+
     // section 7.4.1 defines these close codes
     const unsigned short CLOSE_NORMAL               = 1000;
     const unsigned short CLOSE_GOING_AWAY           = 1001;
     const unsigned short CLOSE_PROTOCOL_ERROR       = 1002;
     const unsigned short CLOSE_UNSUPPORTED_DATATYPE = 1003;
     //  code 1004 is reserved
     const unsigned short CLOSE_NO_STATUS            = 1005;
     const unsigned short CLOSE_ABNORMAL             = 1006;
     const unsigned short CLOSE_INVALID_PAYLOAD      = 1007;
     const unsigned short CLOSE_POLICY_VIOLATION     = 1008;
     const unsigned short CLOSE_TOO_LARGE            = 1009;
     const unsigned short CLOSE_EXTENSION_MISSING    = 1010;
     // Initially used just for server-side internal errors: adopted later for
-    // client-side errors too (not clear if will make into spec: see 
+    // client-side errors too (not clear if will make into spec: see
     // http://www.ietf.org/mail-archive/web/hybi/current/msg09372.html
     const unsigned short CLOSE_INTERNAL_ERROR       = 1011;
     // MUST NOT be set as a status code in Close control frame by an endpoint:
     // To be used if TLS handshake failed (ex: server certificate unverifiable)
     const unsigned short CLOSE_TLS_FAILED           = 1015;
 
     /**
      * Use to send text message down the connection to WebSocket peer.
@@ -176,42 +176,42 @@ interface nsIWebSocketChannel : nsISuppo
 
     /**
      * Use to send binary message down the connection to WebSocket peer.
      *
      * @param aMsg the data to send
      */
     [must_use] void sendBinaryMsg(in ACString aMsg);
 
-    /** 
+    /**
      * Use to send a binary stream (Blob) to Websocket peer.
      *
-     * @param aStream The input stream to be sent.  
+     * @param aStream The input stream to be sent.
      */
-    [must_use] void sendBinaryStream(in nsIInputStream aStream, 
+    [must_use] void sendBinaryStream(in nsIInputStream aStream,
                                      in unsigned long length);
 
     /**
      * This value determines how often (in seconds) websocket keepalive
      * pings are sent.  If set to 0 (the default), no pings are ever sent.
      *
-     * This value can currently only be set before asyncOpen is called, else 
+     * This value can currently only be set before asyncOpen is called, else
      * NS_ERROR_IN_PROGRESS is thrown.
      *
      * Be careful using this setting: ping traffic can consume lots of power and
      * bandwidth over time.
      */
     [must_use] attribute unsigned long pingInterval;
 
     /**
      * This value determines how long (in seconds) the websocket waits for
      * the server to reply to a ping that has been sent before considering the
      * connection broken.
      *
-     * This value can currently only be set before asyncOpen is called, else 
+     * This value can currently only be set before asyncOpen is called, else
      * NS_ERROR_IN_PROGRESS is thrown.
      */
     [must_use] attribute unsigned long pingTimeout;
 
     /**
      * Unique ID for this channel. It's not readonly because when the channel is
      * created via IPC, the serial number is received from the child process.
      */
--- a/netwerk/protocol/websocket/nsIWebSocketListener.idl
+++ b/netwerk/protocol/websocket/nsIWebSocketListener.idl
@@ -10,33 +10,33 @@
  * nsIWebSocketListener: passed to nsIWebSocketChannel::AsyncOpen. Receives
  * websocket traffic events as they arrive.
  */
 [scriptable, uuid(d74c96b2-65b3-4e39-9e39-c577de5d7a73)]
 interface nsIWebSocketListener : nsISupports
 {
     /**
      * Called to signify the establishment of the message stream.
-     * 
+     *
      * Unlike most other networking channels (which use nsIRequestObserver
      * instead of this class), we do not guarantee that OnStart is always
      * called: OnStop is called without calling this function if errors occur
      * during connection setup.  If the websocket connection is successful,
      * OnStart will be called before any other calls to this API.
      *
      * @param aContext user defined context
      */
     [must_use] void onStart(in nsISupports aContext);
 
     /**
      * Called to signify the completion of the message stream.
      * OnStop is the final notification the listener will receive and it
      * completes the WebSocket connection: after it returns the
      * nsIWebSocketChannel will release its reference to the listener.
-     * 
+     *
      * Note: this event can be received in error cases even if
      * nsIWebSocketChannel::Close() has not been called.
      *
      * @param aContext user defined context
      * @param aStatusCode reason for stopping (NS_OK if completed successfully)
      */
     [must_use] void onStop(in nsISupports aContext,
                            in nsresult aStatusCode);
@@ -79,12 +79,12 @@ interface nsIWebSocketListener : nsISupp
      *
      * @param aContext user defined context
      * @param aCode the websocket closing handshake close code.
      * @param aReason the websocket closing handshake close reason
      */
     [must_use] void onServerClose(in nsISupports aContext,
                                   in unsigned short aCode,
                                   in AUTF8String aReason);
-    
+
 };
 
 
--- a/netwerk/socket/nsISocketProvider.idl
+++ b/netwerk/socket/nsISocketProvider.idl
@@ -42,56 +42,56 @@ interface nsISocketProvider : nsISupport
      * @param aFileDesc
      *        The resulting PRFileDesc.
      * @param aSecurityInfo
      *        Any security info that should be associated with aFileDesc.  This
      *        object typically implements nsITransportSecurityInfo.
      */
     [noscript]
     void newSocket(in long                      aFamily,
-                   in string                    aHost, 
+                   in string                    aHost,
                    in long                      aPort,
                    in nsIProxyInfo              aProxy,
                    in const_OriginAttributesRef aOriginAttributes,
                    in unsigned long             aFlags,
                    in unsigned long             aTlsFlags,
-                   out PRFileDescStar           aFileDesc, 
+                   out PRFileDescStar           aFileDesc,
                    out nsISupports              aSecurityInfo);
 
     /**
      * addToSocket
      *
      * This function is called to allow the socket provider to layer a
      * PRFileDesc on top of another PRFileDesc.  For example, SSL via a SOCKS
      * proxy.
      *
      * Parameters are the same as newSocket with the exception of aFileDesc,
      * which is an in-param instead.
      */
     [noscript]
     void addToSocket(in long                      aFamily,
-                     in string                    aHost, 
+                     in string                    aHost,
                      in long                      aPort,
                      in nsIProxyInfo              aProxy,
                      in const_OriginAttributesRef aOriginAttributes,
                      in unsigned long             aFlags,
                      in unsigned long             aTlsFlags,
-                     in PRFileDescStar            aFileDesc, 
+                     in PRFileDescStar            aFileDesc,
                      out nsISupports              aSecurityInfo);
 
     /**
      * PROXY_RESOLVES_HOST
      *
      * This flag is set if the proxy is to perform hostname resolution instead
      * of the client.  When set, the hostname parameter passed when in this
      * interface will be used instead of the address structure passed for a
      * later connect et al. request.
      */
     const long PROXY_RESOLVES_HOST = 1 << 0;
-    
+
     /**
      * When setting this flag, the socket will not apply any
      * credentials when establishing a connection. For example,
      * an SSL connection would not send any client-certificates
      * if this flag is set.
      */
     const long ANONYMOUS_CONNECT = 1 << 1;
 
--- a/netwerk/streamconv/mozITXTToHTMLConv.idl
+++ b/netwerk/streamconv/mozITXTToHTMLConv.idl
@@ -13,17 +13,17 @@
 
 #include "nsIStreamConverter.idl"
 
 %{C++
 // {77c0e42a-1dd2-11b2-8ebf-edc6606f2f4b}
 #define MOZITXTTOHTMLCONV_CID \
     { 0x77c0e42a, 0x1dd2, 0x11b2, \
     { 0x8e, 0xbf, 0xed, 0xc6, 0x60, 0x6f, 0x2f, 0x4b } }
-	
+
 #define MOZ_TXTTOHTMLCONV_CONTRACTID \
   "@mozilla.org/txttohtmlconv;1"
 
 %}
 
 [scriptable, uuid(77c0e42a-1dd2-11b2-8ebf-edc6606f2f4b)]
 interface mozITXTToHTMLConv : nsIStreamConverter {
   const unsigned long kEntities = 0;  // just convert < & > to &lt; &amp; and &gt;
@@ -70,17 +70,17 @@ interface mozITXTToHTMLConv : nsIStreamC
                E.g. position of "t" in "> > text".
                Initial value must be 0, unless line is not real line.
   @return      Cite Level, i.e. number of txt quote tags found, i.e. number of
                nested quotes.
  */
   unsigned long   citeLevelTXT(in wstring line,
                                out unsigned long logLineStart);
 
-/** 
+/**
  @param a wide string to scan for the presence of a URL.
  @param aLength --> the length of the buffer to be scanned
  @param aPos --> the position in the buffer to start scanning for a url
 
  aStartPos --> index into the start of a url (-1 if no url found)
  aEndPos --> index of the last character in the url (-1 if no url found)
  */
 
--- a/netwerk/streamconv/nsIDirIndex.idl
+++ b/netwerk/streamconv/nsIDirIndex.idl
@@ -16,22 +16,22 @@ interface nsIDirIndex : nsISupports
      * Entry's type is unknown
      */
     const unsigned long TYPE_UNKNOWN = 0;
 
     /**
      * Entry is a directory
      */
     const unsigned long TYPE_DIRECTORY = 1;
-    
+
     /**
      * Entry is a file
      */
     const unsigned long TYPE_FILE = 2;
-    
+
     /**
      * Entry is a symlink
      */
     const unsigned long TYPE_SYMLINK = 3;
 
     /**
      * The type of the entry - one of the constants above
      */
@@ -56,17 +56,17 @@ interface nsIDirIndex : nsISupports
      * displayed by a viewer
      */
     attribute AString description;
 
     /**
      * File size, with -1 meaning "unknown"
      */
     attribute long long size;
-    
+
     /**
      * Last-modified time in seconds-since-epoch.
      * -1 means unknown - this is valid, because there were no
      * ftp servers in 1969
      */
     attribute PRTime lastModified;
 };
 
--- a/netwerk/streamconv/nsIStreamConverter.idl
+++ b/netwerk/streamconv/nsIStreamConverter.idl
@@ -7,17 +7,17 @@
 
 interface nsIInputStream;
 
 /**
  * nsIStreamConverter provides an interface to implement when you have code
  * that converts data from one type to another.
  *
  * Suppose you had code that converted plain text into HTML. You could implement
- * this interface to allow everyone else to use your conversion logic using a 
+ * this interface to allow everyone else to use your conversion logic using a
  * standard api.
  * <p>
  * <b>STREAM CONVERTER USERS</b>
  *
  * There are currently two ways to use a stream converter:
  * <ol>
  * <li> <b>SYNCHRONOUS</b> Stream to Stream
  *    You can supply the service with a stream of type X
@@ -71,18 +71,18 @@ interface nsIStreamConverter : nsIStream
      */
     nsIInputStream convert(in nsIInputStream aFromStream,
                            in string aFromType,
                            in string aToType,
                            in nsISupports aCtxt);
 
     /**
      * <b>ASYNCRONOUS VERSION</b>
-     * Converts data arriving via the converter's nsIStreamListener::OnDataAvailable() 
-     * method from one type to another, pushing the converted data out to the caller 
+     * Converts data arriving via the converter's nsIStreamListener::OnDataAvailable()
+     * method from one type to another, pushing the converted data out to the caller
      * via aListener::OnDataAvailable().
      *
      * Use this method when you want to proxy (and convert) nsIStreamListener callbacks
      * asynchronously.
      *
      * @param aFromType     The MIME type of the original/raw data.
      * @param aToType       The MIME type of the converted data.
      * @param aListener     The listener who receives the converted data.
--- a/netwerk/streamconv/nsIStreamConverterService.idl
+++ b/netwerk/streamconv/nsIStreamConverterService.idl
@@ -54,27 +54,27 @@ interface nsIStreamConverterService : ns
     nsIInputStream convert(in nsIInputStream aFromStream,
                            in string aFromType,
                            in string aToType,
                            in nsISupports aContext);
 
     /**
      * <b>ASYNCHRONOUS VERSION</b>
      * Retrieves a nsIStreamListener that receives the original/raw data via its
-     * nsIStreamListener::OnDataAvailable() callback, then converts and pushes 
+     * nsIStreamListener::OnDataAvailable() callback, then converts and pushes
      * the data to aListener.
      *
      * Use this method when you want to proxy (and convert) nsIStreamListener
      * callbacks asynchronously.
      *
      * @param aFromType     The MIME type of the original/raw data.
      * @param aToType       The MIME type of the converted data.
      * @param aListener     The listener that receives the converted data.
      * @param aCtxt         Either an opaque context, or a converter specific
      *                      context (implementation specific).
      * @return              A nsIStreamListener that receives data via its
      *                      OnDataAvailable() method.
      */
-    nsIStreamListener asyncConvertData(in string aFromType, 
-                                       in string aToType, 
+    nsIStreamListener asyncConvertData(in string aFromType,
+                                       in string aToType,
                                        in nsIStreamListener aListener,
                                        in nsISupports aContext);
 };
--- a/netwerk/test/httpserver/nsIHttpServer.idl
+++ b/netwerk/test/httpserver/nsIHttpServer.idl
@@ -314,17 +314,17 @@ interface nsIHttpServerIdentity : nsISup
    * Returns the scheme for the name with the given host and port, if one is
    * present; otherwise returns the empty string.
    *
    * @throws NS_ERROR_ILLEGAL_VALUE
    *   if host does not match the host production imported into RFC 2616 from
    *   RFC 2396, or if port is not a valid port number
    */
   string getScheme(in string host, in long port);
-  
+
   /**
    * Designates the given name as the primary name in this and adds it to this
    * if it is not already present.
    *
    * @throws NS_ERROR_ILLEGAL_VALUE
    *   if scheme or host do not match the scheme or host productions imported
    *   into RFC 2616 from RFC 2396, or if port is not a valid port number
    */
--- a/parser/html/nsIParserUtils.idl
+++ b/parser/html/nsIParserUtils.idl
@@ -5,17 +5,17 @@
 #include "nsISupports.idl"
 
 interface nsIURI;
 
 webidl DocumentFragment;
 webidl Element;
 
 /**
- * Non-Web HTML parser functionality to Firefox extensions and XULRunner apps. 
+ * Non-Web HTML parser functionality to Firefox extensions and XULRunner apps.
  * Don't use this from within Gecko--use nsContentUtils, nsTreeSanitizer, etc.
  * directly instead.
  */
 [scriptable, uuid(a1101145-0025-411e-8873-fdf57bf28128)]
 interface nsIParserUtils : nsISupports
 {
 
   /**
@@ -28,32 +28,32 @@ interface nsIParserUtils : nsISupports
    * in case of -moz-binding). Note! If -moz-binding is absent, properties
    * that might be XSS risks in other Web engines are preserved!
    */
   const unsigned long SanitizerAllowStyle = (1 << 1);
 
   /**
    * Flag for sanitizer: Only allow cid: URLs for embedded content.
    *
-   * At present, sanitizing CSS backgrounds, etc., is not supported, so setting 
+   * At present, sanitizing CSS backgrounds, etc., is not supported, so setting
    * this together with SanitizerAllowStyle doesn't make sense.
    *
    * At present, sanitizing CSS syntax in SVG presentational attributes is not
    * supported, so this option flattens out SVG.
    */
   const unsigned long SanitizerCidEmbedsOnly = (1 << 2);
 
   /**
-   * Flag for sanitizer: Drop non-CSS presentational HTML elements and 
+   * Flag for sanitizer: Drop non-CSS presentational HTML elements and
    * attributes, such as <font>, <center> and bgcolor="".
    */
   const unsigned long SanitizerDropNonCSSPresentation = (1 << 3);
 
   /**
-   * Flag for sanitizer: Drop forms and form controls (excluding 
+   * Flag for sanitizer: Drop forms and form controls (excluding
    * fieldset/legend).
    */
   const unsigned long SanitizerDropForms = (1 << 4);
 
   /**
    * Flag for sanitizer: Drop <img>, <video>, <audio> and <source> and flatten
    * out SVG.
    */
@@ -61,40 +61,40 @@ interface nsIParserUtils : nsISupports
 
   /**
    * Flag for sanitizer: Log messages to the console for everything that gets
    * sanitized
    */
   const unsigned long SanitizerLogRemovals = (1 << 6);
 
   /**
-   * Parses a string into an HTML document, sanitizes the document and 
+   * Parses a string into an HTML document, sanitizes the document and
    * returns the result serialized to a string.
    *
    * The sanitizer is designed to protect against XSS when sanitized content
    * is inserted into a different-origin context without an iframe-equivalent
    * sandboxing mechanism.
    *
-   * By default, the sanitizer doesn't try to avoid leaking information that 
-   * the content was viewed to third parties. That is, by default, e.g. 
-   * <img src> pointing to an HTTP server potentially controlled by a third 
+   * By default, the sanitizer doesn't try to avoid leaking information that
+   * the content was viewed to third parties. That is, by default, e.g.
+   * <img src> pointing to an HTTP server potentially controlled by a third
    * party is not removed. To avoid ambient information leakage upon loading
-   * the sanitized content, use the SanitizerInternalEmbedsOnly flag. In that 
+   * the sanitized content, use the SanitizerInternalEmbedsOnly flag. In that
    * case, <a href> links (and similar) to other content are preserved, so an
    * explicit user action (following a link) after the content has been loaded
    * can still leak information.
    *
-   * By default, non-dangerous non-CSS presentational HTML elements and 
-   * attributes or forms are not removed. To remove these, use 
+   * By default, non-dangerous non-CSS presentational HTML elements and
+   * attributes or forms are not removed. To remove these, use
    * SanitizerDropNonCSSPresentation and/or SanitizerDropForms.
    *
    * By default, comments and CSS is removed. To preserve comments, use
-   * SanitizerAllowComments. To preserve <style> and style="", use 
+   * SanitizerAllowComments. To preserve <style> and style="", use
    * SanitizerAllowStyle. -moz-binding is removed from <style> and style="" if
-   * present. In this case, properties that Gecko doesn't recognize can get 
+   * present. In this case, properties that Gecko doesn't recognize can get
    * removed as a side effect. Note! If -moz-binding is not present, <style>
    * and style="" and SanitizerAllowStyle is specified, the sanitized content
    * may still be XSS dangerous if loaded into a non-Gecko Web engine!
    *
    * @param src the HTML source to parse (C++ callers are allowed but not
    *            required to use the same string for the return value.)
    * @param flags sanitization option flags defined above
    */
--- a/parser/htmlparser/nsIExpatSink.idl
+++ b/parser/htmlparser/nsIExpatSink.idl
@@ -8,17 +8,17 @@ interface nsIScriptError;
 
 /**
  * This interface should be implemented by any content sink that wants
  * to get output from expat and do something with it; in other words,
  * by any sink that handles some sort of XML dialect.
  */
 
 [scriptable, uuid(01f681af-0f22-4725-a914-0d396114daf0)]
-interface nsIExpatSink : nsISupports 
+interface nsIExpatSink : nsISupports
 {
   /**
    * Called to handle the opening tag of an element.
    * @param aName the fully qualified tagname of the element
    * @param aAtts the array of attribute names and values.  There are
    *        aAttsCount/2 names and aAttsCount/2 values, so the total number of
    *        elements in the array is aAttsCount.  The names and values
    *        alternate.  Thus, if we number attributes starting with 0,
@@ -41,25 +41,25 @@ interface nsIExpatSink : nsISupports
    * @param aName the fully qualified tagname of the element
    */
   void HandleEndElement(in wstring aName);
 
   /**
    * Called to handle a comment
    * @param aCommentText the text of the comment (not including the
    *        "<!--" and "-->")
-   */ 
+   */
   void HandleComment(in wstring aCommentText);
 
   /**
    * Called to handle a CDATA section
    * @param aData the text in the CDATA section.  This is null-terminated.
    * @param aLength the length of the aData string
    */
-  void HandleCDataSection([size_is(aLength)] in wstring aData, 
+  void HandleCDataSection([size_is(aLength)] in wstring aData,
                           in unsigned long aLength);
 
   /**
    * Called to handle the doctype declaration
    */
   void HandleDoctypeDecl(in AString aSubset,
                          in AString aName,
                          in AString aSystemId,
@@ -67,25 +67,25 @@ interface nsIExpatSink : nsISupports
                          in nsISupports aCatalogData);
 
   /**
    * Called to handle character data.  Note that this does NOT get
    * called for the contents of CDATA sections.
    * @param aData the data to handle.  aData is NOT NULL-TERMINATED.
    * @param aLength the length of the aData string
    */
-  void HandleCharacterData([size_is(aLength)] in wstring aData, 
+  void HandleCharacterData([size_is(aLength)] in wstring aData,
                            in unsigned long aLength);
 
   /**
    * Called to handle a processing instruction
    * @param aTarget the PI target (e.g. xml-stylesheet)
    * @param aData all the rest of the data in the PI
    */
-  void HandleProcessingInstruction(in wstring aTarget, 
+  void HandleProcessingInstruction(in wstring aTarget,
                                    in wstring aData);
 
   /**
    * Handle the XML Declaration.
    *
    * @param aVersion    The version string, can be null if not specified.
    * @param aEncoding   The encoding string, can be null if not specified.
    * @param aStandalone -1, 0, or 1 indicating respectively that there was no
@@ -103,9 +103,9 @@ interface nsIExpatSink : nsISupports
    * @param aSourceText Source text of the document we're parsing.
    * @param aError      Script error object with line number & column number
    *
    * @retval True if the expat driver should report the error.
    */
   boolean ReportError(in wstring aErrorText,
                       in wstring aSourceText,
                       in nsIScriptError aError);
-}; 
+};
--- a/security/manager/ssl/nsIASN1Object.idl
+++ b/security/manager/ssl/nsIASN1Object.idl
@@ -22,29 +22,29 @@ interface nsIASN1Object : nsISupports {
   /**
    *  Identifiers for the possible types of object.
    */
   const unsigned long ASN1_END_CONTENTS     = 0;
   const unsigned long ASN1_BOOLEAN          = 1;
   const unsigned long ASN1_INTEGER          = 2;
   const unsigned long ASN1_BIT_STRING       = 3;
   const unsigned long ASN1_OCTET_STRING     = 4;
-  const unsigned long ASN1_NULL             = 5; 
+  const unsigned long ASN1_NULL             = 5;
   const unsigned long ASN1_OBJECT_ID        = 6;
   const unsigned long ASN1_ENUMERATED       = 10;
   const unsigned long ASN1_UTF8_STRING      = 12;
   const unsigned long ASN1_SEQUENCE         = 16;
   const unsigned long ASN1_SET              = 17;
   const unsigned long ASN1_PRINTABLE_STRING = 19;
   const unsigned long ASN1_T61_STRING       = 20;
   const unsigned long ASN1_IA5_STRING       = 22;
   const unsigned long ASN1_UTC_TIME         = 23;
   const unsigned long ASN1_GEN_TIME         = 24;
   const unsigned long ASN1_VISIBLE_STRING   = 26;
-  const unsigned long ASN1_UNIVERSAL_STRING = 28; 
+  const unsigned long ASN1_UNIVERSAL_STRING = 28;
   const unsigned long ASN1_BMP_STRING       = 30;
   const unsigned long ASN1_HIGH_TAG_NUMBER  = 31;
   const unsigned long ASN1_CONTEXT_SPECIFIC = 32;
   const unsigned long ASN1_APPLICATION      = 33;
   const unsigned long ASN1_PRIVATE          = 34;
 
   /**
    *  "type" will be equal to one of the defined object identifiers.
--- a/security/manager/ssl/nsIBadCertListener2.idl
+++ b/security/manager/ssl/nsIBadCertListener2.idl
@@ -21,12 +21,12 @@ interface nsIBadCertListener2 : nsISuppo
    *  @param socketInfo A network communication context that can be used to obtain more information
    *                    about the active connection.
    *  @param secInfo The TransportSecurityinfo object that describes the problem(s).
    *  @param targetSite The Site name that was used to open the current connection.
    *
    *  @return The consumer shall return true if it wants to suppress the error message
    *          related to the bad cert (the connection will still get canceled).
    */
-  boolean notifyCertProblem(in nsIInterfaceRequestor socketInfo, 
+  boolean notifyCertProblem(in nsIInterfaceRequestor socketInfo,
                             in nsITransportSecurityInfo secInfo,
                             in AUTF8String targetSite);
 };
--- a/security/manager/ssl/nsISecurityUITelemetry.idl
+++ b/security/manager/ssl/nsISecurityUITelemetry.idl
@@ -19,17 +19,17 @@ const uint32_t WARNING_ADDON_ASKING_PREV
 const uint32_t WARNING_ADDON_ASKING_PREVENTED_CLICK_THROUGH = 2;
 // Are you sure you want to install this addon? Only install addons you trust
 const uint32_t WARNING_CONFIRM_ADDON_INSTALL = 3;
 // User clicked she is sure after waiting 3secs
 const uint32_t WARNING_CONFIRM_ADDON_INSTALL_CLICK_THROUGH  = 4;
 
 
 /*
- * modal dialogs/warnings 
+ * modal dialogs/warnings
  */
 
 //     removed WARNING_ENTERING_SECURE_SITE = 5;
 //     removed WARNING_ENTERING_WEAK_SITE = 6;
 //     removed WARNING_LEAVING_SECURE_SITE = 7;
 //     removed WARNING_MIXED_CONTENT  = 8;
 
 // For confirmation dialogs, the clickthrough constant needs to be 1
@@ -50,17 +50,17 @@ const uint32_t WARNING_CONFIRM_POST_TO_I
 //     removed WARNING_MALWARE_PAGE_GET_ME_OUT_OF_HERE = 15;
 //     removed WARNING_MALWARE_PAGE_IGNORE_WARNING = 16;
 
 //     removed WARNING_PHISHING_PAGE = 17;
 //     removed WARNING_PHISHING_PAGE_WHY_BLOCKED = 18;
 //     removed WARNING_PHISHING_PAGE_GET_ME_OUT_OF_HERE = 19;
 //     removed WARNING_PHISHING_PAGE_IGNORE_WARNING = 20;
 
-/* 
+/*
  * SSL Error dialogs
  * deprecated: we use the _TOP versions below
  */
 
 //     removed WARNING_BAD_CERT = 21;
 //     removed WARNING_BAD_CERT_STS = 22;
 //     removed WARNING_BAD_CERT_CLICK_ADD_EXCEPTION = 23;
 //     removed WARNING_BAD_CERT_CLICK_VIEW_CERT = 24;
--- a/storage/mozIStorageAggregateFunction.idl
+++ b/storage/mozIStorageAggregateFunction.idl
@@ -18,17 +18,17 @@ interface nsIVariant;
  * a set of data is a group of tuples. There can be one group
  * per request or many of them, if GROUP BY clause is used or not.
  */
 [scriptable, uuid(763217b7-3123-11da-918d-000347412e16)]
 interface mozIStorageAggregateFunction : nsISupports {
   /**
    * onStep is called when next value should be passed to
    * a custom function.
-   * 
+   *
    * @param aFunctionArguments    The arguments passed in to the function
    */
   void onStep(in mozIStorageValueArray aFunctionArguments);
 
   /**
    * Called when all tuples in a group have been processed and the engine
    * needs the aggregate function's value.
    *
--- a/storage/mozIStorageBaseStatement.idl
+++ b/storage/mozIStorageBaseStatement.idl
@@ -9,28 +9,28 @@
 
 interface mozIStorageConnection;
 interface mozIStorageStatementCallback;
 interface mozIStoragePendingStatement;
 interface mozIStorageBindingParams;
 interface mozIStorageBindingParamsArray;
 
 /**
- * The base interface for both pure asynchronous storage statements 
+ * The base interface for both pure asynchronous storage statements
  * (mozIStorageAsyncStatement) and 'classic' storage statements
  * (mozIStorageStatement) that can be used for both synchronous and asynchronous
  * purposes.
  */
 [scriptable, builtinclass, uuid(16ca67aa-1325-43e2-aac7-859afd1590b2)]
 interface mozIStorageBaseStatement : mozIStorageBindingParams {
   /**
    * Finalizes a statement so you can successfully close a database connection.
    * Once a statement has been finalized it can no longer be used for any
    * purpose.
-   * 
+   *
    * Statements are implicitly finalized when their reference counts hits zero.
    * If you are a native (C++) caller this is accomplished by setting all of
    * your nsCOMPtr instances to be NULL.  If you are operating from JavaScript
    * code then you cannot rely on this behavior because of the involvement of
    * garbage collection.
    *
    * When finalizing an asynchronous statement you do not need to worry about
    * whether the statement has actually been executed by the asynchronous
@@ -107,13 +107,13 @@ interface mozIStorageBaseStatement : moz
    *       such as:   ...LIKE '?1' ESCAPE '/'...
    *
    * @param aValue
    *        The string to escape for SQL LIKE.
    * @param aEscapeChar
    *        The escape character.
    * @return an AString of an escaped version of aValue
    *         (%, _ and the escape char are escaped with the escape char)
-   *         For example, we will convert "foo/bar_baz%20cheese" 
+   *         For example, we will convert "foo/bar_baz%20cheese"
    *         into "foo//bar/_baz/%20cheese" (if the escape char is '/').
    */
   AString escapeStringForLIKE(in AString aValue, in wchar aEscapeChar);
 };
--- a/storage/mozIStorageConnection.idl
+++ b/storage/mozIStorageConnection.idl
@@ -122,28 +122,28 @@ interface mozIStorageConnection : mozISt
 
   /**
    * The last SQLite error as a string (in english, straight from the
    * sqlite library).
    */
   readonly attribute AUTF8String lastErrorString;
 
   /**
-   * The schema version of the database.  This should not be used until the 
+   * The schema version of the database.  This should not be used until the
    * database is ready.  The schema will be reported as zero if it is not set.
    */
   attribute long schemaVersion;
 
   //////////////////////////////////////////////////////////////////////////////
   //// Statement creation
 
   /**
    * Create a mozIStorageStatement for the given SQL expression.  The
    * expression may use ? to indicate sequential numbered arguments,
-   * ?1, ?2 etc. to indicate specific numbered arguments or :name and 
+   * ?1, ?2 etc. to indicate specific numbered arguments or :name and
    * $var to indicate named arguments.
    *
    * @param aSQLStatement
    *        The SQL statement to execute.
    * @return a new mozIStorageStatement
    */
   mozIStorageStatement createStatement(in AUTF8String aSQLStatement);
 
--- a/storage/mozIStorageError.idl
+++ b/storage/mozIStorageError.idl
@@ -1,10 +1,10 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
- * vim: sw=2 ts=2 sts=2 expandtab 
+ * vim: sw=2 ts=2 sts=2 expandtab
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 %{C++
 #ifdef ERROR
--- a/storage/mozIStorageFunction.idl
+++ b/storage/mozIStorageFunction.idl
@@ -24,17 +24,17 @@ interface nsIVariant;
  * These functions can be called from triggers, too.
  *
  */
 [scriptable, function, uuid(9ff02465-21cb-49f3-b975-7d5b38ceec73)]
 interface mozIStorageFunction : nsISupports {
   /**
    * onFunctionCall is called when execution of a custom
    * function should occur.
-   * 
+   *
    * @param aNumArguments         The number of arguments
    * @param aFunctionArguments    The arguments passed in to the function
    *
    * @returns any value as Variant type.
    */
 
   nsIVariant onFunctionCall(in mozIStorageValueArray aFunctionArguments);
 };
--- a/storage/mozIStoragePendingStatement.idl
+++ b/storage/mozIStoragePendingStatement.idl
@@ -1,10 +1,10 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
- * vim: sw=2 ts=2 sts=2 expandtab 
+ * vim: sw=2 ts=2 sts=2 expandtab
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 [scriptable, uuid(00da7d20-3768-4398-bedc-e310c324b3f0)]
 interface mozIStoragePendingStatement : nsISupports {
--- a/storage/mozIStorageProgressHandler.idl
+++ b/storage/mozIStorageProgressHandler.idl
@@ -10,17 +10,17 @@ interface mozIStorageConnection;
 /**
  * mozIProgressHandler is to be implemented by storage consumers that
  * wish to receive callbacks during the request execution.
  */
 [scriptable, uuid(a3a6fcd4-bf89-4208-a837-bf2a73afd30c)]
 interface mozIStorageProgressHandler : nsISupports {
   /**
    * onProgress is invoked periodically during long running calls.
-   * 
+   *
    * @param aConnection    connection, for which progress handler is
    *                       invoked.
    *
    * @return true to abort request, false to continue work.
    */
 
   boolean onProgress(in mozIStorageConnection aConnection);
 };
--- a/storage/mozIStorageResultSet.idl
+++ b/storage/mozIStorageResultSet.idl
@@ -1,10 +1,10 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
- * vim: sw=2 ts=2 sts=2 expandtab 
+ * vim: sw=2 ts=2 sts=2 expandtab
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 interface mozIStorageRow;
 
 [scriptable, uuid(18dd7953-076d-4598-8105-3e32ad26ab24)]
--- a/storage/mozIStorageRow.idl
+++ b/storage/mozIStorageRow.idl
@@ -1,10 +1,10 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
- * vim: sw=2 ts=2 sts=2 expandtab 
+ * vim: sw=2 ts=2 sts=2 expandtab
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "mozIStorageValueArray.idl"
 interface nsIVariant;
 
 [scriptable, uuid(62d1b6bd-cbfe-4f9b-aee1-0ead4af4e6dc)]
--- a/storage/mozIStorageStatementCallback.idl
+++ b/storage/mozIStorageStatementCallback.idl
@@ -1,10 +1,10 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
- * vim: sw=2 ts=2 sts=2 expandtab 
+ * vim: sw=2 ts=2 sts=2 expandtab
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 interface mozIStorageResultSet;
 interface mozIStorageError;
--- a/toolkit/components/autocomplete/nsIAutoCompletePopup.idl
+++ b/toolkit/components/autocomplete/nsIAutoCompletePopup.idl
@@ -22,30 +22,30 @@ interface nsIAutoCompletePopup : nsISupp
    */
   readonly attribute AString overrideValue;
 
   /*
    * The index of the result item that is currently selected
    */
   attribute long selectedIndex;
 
-  /* 
+  /*
    * Indicates if the popup is currently open
    */
   readonly attribute boolean popupOpen;
 
-  /* 
+  /*
    * Bind the popup to an input object and display it with the given coordinates
    *
    * @param input - The input object that the popup will be bound to
    * @param element - The element that the popup will be aligned with
    */
   void openAutocompletePopup(in nsIAutoCompleteInput input, in Element element);
 
-  /* 
+  /*
    * Close the popup and detach from the bound input
    */
   void closePopup();
 
   /*
    * Instruct the result view to repaint itself to reflect the most current
    * underlying data
    *
--- a/toolkit/components/autocomplete/nsIAutoCompleteResult.idl
+++ b/toolkit/components/autocomplete/nsIAutoCompleteResult.idl
@@ -11,23 +11,23 @@ interface nsIAutoCompleteResult : nsISup
    * Possible values for the searchResult attribute
    */
   const unsigned short RESULT_IGNORED = 1; /* indicates invalid searchString */
   const unsigned short RESULT_FAILURE = 2; /* indicates failure */
   const unsigned short RESULT_NOMATCH = 3; /* indicates success with no matches
                                               and that the search is complete */
   const unsigned short RESULT_SUCCESS = 4; /* indicates success with matches
                                               and that the search is complete */
-  const unsigned short RESULT_NOMATCH_ONGOING = 5; /* indicates success 
+  const unsigned short RESULT_NOMATCH_ONGOING = 5; /* indicates success
                                                       with no matches
-                                                      and that the search 
+                                                      and that the search
                                                       is still ongoing */
-  const unsigned short RESULT_SUCCESS_ONGOING = 6; /* indicates success 
+  const unsigned short RESULT_SUCCESS_ONGOING = 6; /* indicates success
                                                       with matches
-                                                      and that the search 
+                                                      and that the search
                                                       is still ongoing */
   /**
    * The original search string
    */
   readonly attribute AString searchString;
 
   /**
    * The result of the search
--- a/toolkit/components/autocomplete/nsIAutoCompleteSearch.idl
+++ b/toolkit/components/autocomplete/nsIAutoCompleteSearch.idl
@@ -27,17 +27,17 @@ interface nsIAutoCompleteSearch : nsISup
   /*
    * Stop all searches that are in progress
    */
   void stopSearch();
 };
 
 [scriptable, uuid(8bd1dbbc-dcce-4007-9afa-b551eb687b61)]
 interface nsIAutoCompleteObserver : nsISupports
-{ 
+{
   /*
    * Called when a search is complete and the results are ready
    *
    * @param search - The search object that processed this search
    * @param result - The search result object
    */
   [can_run_script] void onSearchResult(in nsIAutoCompleteSearch search,
                                        in nsIAutoCompleteResult result);
--- a/toolkit/components/browser/nsIEmbeddingSiteWindow.idl
+++ b/toolkit/components/browser/nsIEmbeddingSiteWindow.idl
@@ -19,17 +19,17 @@ interface nsIEmbeddingSiteWindow : nsISu
     /**
      * Flag indicates that position of the top left corner of the outer area
      * is required/specified.
      *
      * @see setDimensions
      * @see getDimensions
      */
     const unsigned long DIM_FLAGS_POSITION   = 1;
-    
+
     /**
      * Flag indicates that the size of the inner area is required/specified.
      *
      * @note The inner and outer flags are mutually exclusive and it is
      *       invalid to combine them.
      *
      * @see setDimensions
      * @see getDimensions
@@ -74,17 +74,17 @@ interface nsIEmbeddingSiteWindow : nsISu
      */
     const unsigned long DIM_FLAGS_IGNORE_CY = 64;
 
 
     /**
      * Sets the dimensions for the window; the position & size. The
      * flags to indicate what the caller wants to set and whether the size
      * refers to the inner or outer area. The inner area refers to just
-     * the embedded area, wheras the outer area can also include any 
+     * the embedded area, wheras the outer area can also include any
      * surrounding chrome, window frame, title bar, and so on.
      *
      * @param flags  Combination of position, inner and outer size flags.
      *               The ignore flags are telling the parent to use the
      *               current values for those dimensions and ignore the
      *               corresponding parameters the child sends.
      * @param x      Left hand corner of the outer area.
      * @param y      Top corner of the outer area.
@@ -144,14 +144,14 @@ interface nsIEmbeddingSiteWindow : nsISu
      *
      * <ul>
      *   <li>On Win32 it is an <CODE>HWND</CODE>.</li>
      *   <li>On MacOS this is a <CODE>WindowPtr</CODE>.</li>
      *   <li>On GTK this is a <CODE>GtkWidget*</CODE>.</li>
      * </ul>
      */
     [noscript] readonly attribute voidPtr siteWindow;
-    
+
     /**
      * Blur the window. This should unfocus the window and send an onblur event.
      */
     void blur();
 };
--- a/toolkit/components/browser/nsIPrintPreviewNavigation.idl
+++ b/toolkit/components/browser/nsIPrintPreviewNavigation.idl
@@ -18,17 +18,17 @@ interface nsIPrintPreviewNavigation  : n
 
 
   /**
    * Preview the next Page
    *
    * Return - PR_TRUE if success
    */
   boolean	nextPage();
-  
+
   /**
    * Preview the previous Page
    *
    * Return - PR_TRUE if success
    */
   boolean	previousPage();
 
   /**
--- a/toolkit/components/browser/nsIPrintingPromptService.idl
+++ b/toolkit/components/browser/nsIPrintingPromptService.idl
@@ -14,59 +14,59 @@
 
 interface nsIDOMWindow;
 
 [scriptable, uuid(72006d06-a2a5-4250-ae92-04b2f0e2ab8d)]
 interface nsIPrintingPromptService : nsISupports
 {
    /**
    *  This service enables embedders to implement their own Print and Progress Dialogs.
-   *  Each platform has a "base" or "basckstop" implementation of the service. The 
+   *  Each platform has a "base" or "basckstop" implementation of the service. The
    *  service is automatically registered at start up.
    *
    *  Historically, platform toolkits with native dialogs have implemented them in the GFX layer
    *  Usually they were displayed when a new DeviceContextSpec specific to that platform
    *  was created.
    *
-   *  Windows: The GFX layer no longers supports default toolkit behavior for displaying the 
+   *  Windows: The GFX layer no longers supports default toolkit behavior for displaying the
    *           native Print Dialog.
    *           If an embedder implemented service returns any error code (other than NS_ERROR_ABORT)
    *           printing will terminate.
    *
    *           Returning NS_OK assumes that the PrintSettings object was correctly filled in and
    *           if it does not have valid fields for printer name, etc. it may also terminate.
    *
-   *           Defaults for platform service:           
+   *           Defaults for platform service:
    *             showPrintDialog           - displays a native dialog
    *             showPrintProgressDialog   - displays a XUL dialog
    *             showPageSetupDialog       - displays a XUL dialog
    *
    *           Summary for Windows Embedders:
    *             Stated once again: There is no "fallback" native platform support in GFX for the
    *             displaying of the native print dialog. The current default implementation for Windows
    *             display a native print dialog but a XUL-based progress dialog.
-   *             If you wish to have a native progress dialog on Windows you will have to create and 
+   *             If you wish to have a native progress dialog on Windows you will have to create and
    *             register your own service.
-   *  
-   *             Note: The Windows version Mozilla implements this service which is 
+   *
+   *             Note: The Windows version Mozilla implements this service which is
    *                   automatically built and registered for you. You can use it as an example.
    *                   It is located at "widget/windows/nsPrintDialogService.cpp". That service
    *                   is capable of displaying a native print dialog and a XUL progress dialog.
    *
    *             To fly your own dialog you may:
    *
    *              1) Implement this service to display at least the Print Dialog and a Print Progress Dialog
    *                 or you may implement just one of the dialogs and pass back NS_ERROR_NOT_IMPLEMENTED
    *                 for any of the others.
    *
    *              2) For the Print Dialog:
    *                 You may stub out this service by having all the methods return NS_ERROR_NOT_IMPLEMENTED.
    *                 You can then fly you own dialog and then properly fill in the PrintSettings object
-   *                 before calling nsIWebBrowserPrint's Print method. If you stub out this service  
-   *                 you MUST set "printSilent" to true, if you do not, Printing will terminate and an 
+   *                 before calling nsIWebBrowserPrint's Print method. If you stub out this service
+   *                 you MUST set "printSilent" to true, if you do not, Printing will terminate and an
    *                 error dialog will be displayed.
    *
    *  Mac: The GFX layer still supports default toolkit behavior for displaying the Print Dialog.
    *       If an embedder implemented service returns NS_ERROR_NOT_IMPLEMENTED for "showPrintDialog"
    *       The toolkit will display the native print dialog.
    *
    *       Mac OSX: showPrintDialog           - displays a native dialog
    *                showPrintProgressDialog   - not implemented (provided by OS)
@@ -75,21 +75,21 @@ interface nsIPrintingPromptService : nsI
    *  GTK: There are no native dialog for GTK.
    *
    *       Defaults for platform service:
    *         showPrintDialog           - displays a native dialog
    *         showPrintProgressDialog   - displays a XUL dialog
    *         showPageSetupDialog       - displays a native dialog
    *
    */
- 
+
 
 
   /**
-   *  Show the Print Dialog 
+   *  Show the Print Dialog
    *
    *  @param parent - a DOM windows the dialog will be parented to (required)
    *  @param webBrowserPrint - represents the document to be printed (required)
    *  @param printSettings - PrintSettings for print "job" (required)
    *
    */
   void showPrintDialog(in mozIDOMWindowProxy parent,
                        in nsIWebBrowserPrint webBrowserPrint,
--- a/toolkit/components/browser/nsIWebBrowser.idl
+++ b/toolkit/components/browser/nsIWebBrowser.idl
@@ -31,17 +31,17 @@ class OriginAttributes;
 [scriptable, builtinclass, uuid(4052b6da-4faa-4646-b3a1-7e16a01c2dc2)]
 interface nsIWebBrowser : nsISupports
 {
     /**
      * The chrome object associated with the browser instance. The embedder
      * must create one chrome object for <I>each</I> browser object
      * that is instantiated. The embedder must associate the two by setting
      * this property to point to the chrome object before creating the browser
-     * window via the browser's <CODE>nsIBaseWindow</CODE> interface. 
+     * window via the browser's <CODE>nsIBaseWindow</CODE> interface.
      *
      * The chrome object must also implement <CODE>nsIEmbeddingSiteWindow</CODE>.
      *
      * The chrome may optionally implement <CODE>nsIInterfaceRequestor</CODE>,
      * <CODE>nsIWebBrowserChromeFocus</CODE>,
      * <CODE>nsIContextMenuListener</CODE> and
      * <CODE>nsITooltipListener</CODE> to receive additional notifications
      * from the browser object.
--- a/toolkit/components/browser/nsIWebBrowserChrome2.idl
+++ b/toolkit/components/browser/nsIWebBrowserChrome2.idl
@@ -16,17 +16,17 @@ interface nsIWebBrowserChrome2 : nsIWebB
    * Called when the status text in the chrome needs to be updated.  This
    * method may be called instead of nsIWebBrowserChrome::SetStatus.  An
    * implementor of this method, should still implement SetStatus.
    *
    * @param statusType
    *        Indicates what is setting the text.
    * @param status
    *        Status string.  Null is an acceptable value meaning no status.
-   * @param contextNode 
+   * @param contextNode
    *        An object that provides context pertaining to the status type.
    *        If statusType is STATUS_LINK, then statusContext may be a DOM
    *        node corresponding to the source of the link.  This value can
    *        be null if there is no context.
    */
   void setStatusWithContext(in unsigned long statusType,
                             in AString statusText,
                             in nsISupports statusContext);
--- a/toolkit/components/browser/nsIWebBrowserChromeFocus.idl
+++ b/toolkit/components/browser/nsIWebBrowserChromeFocus.idl
@@ -13,17 +13,17 @@
  */
 
 [scriptable, uuid(947B2EE6-51ED-4C2B-9F45-426C27CA84C6)]
 interface nsIWebBrowserChromeFocus : nsISupports
 {
     /**
      * Set the focus at the next focusable element in the chrome. If
      * aForDocumentNavigation is true, this was a document navigation, so
-     * focus the parent window. 
+     * focus the parent window.
      */
 
     void focusNextElement(in bool aForDocumentNavigation);
 
     /**
      * Set the focus at the previous focusable element in the chrome.
      */
 
--- a/toolkit/components/browser/nsIWebBrowserPrint.idl
+++ b/toolkit/components/browser/nsIWebBrowserPrint.idl
@@ -22,17 +22,17 @@ interface nsIWebBrowserPrint : nsISuppor
    */
   const short PRINTPREVIEW_GOTO_PAGENUM = 0;
   const short PRINTPREVIEW_PREV_PAGE    = 1;
   const short PRINTPREVIEW_NEXT_PAGE    = 2;
   const short PRINTPREVIEW_HOME         = 3;
   const short PRINTPREVIEW_END          = 4;
 
   /**
-   * Returns a "global" PrintSettings object 
+   * Returns a "global" PrintSettings object
    * Creates a new the first time, if one doesn't exist.
    *
    * Then returns the same object each time after that.
    *
    * Initializes the globalPrintSettings from the default printer
    */
   readonly attribute nsIPrintSettings globalPrintSettings;
 
@@ -109,17 +109,17 @@ interface nsIWebBrowserPrint : nsISuppor
    *
    * @param aNavType - navigation enum
    * @param aPageNum - page num to navigate to when aNavType = ePrintPreviewGoToPageNum
    * @return void
    */
   void printPreviewNavigate(in short aNavType, in long aPageNum);
 
   /**
-   * Cancels the current print 
+   * Cancels the current print
    * @return void
    */
   void cancel();
 
   /**
    * Returns an array of the names of all documents names (Title or URL)
    * and sub-documents. This will return a single item if the attr "isFramesetDocument" is false
    * and may return any number of items is "isFramesetDocument" is true
--- a/toolkit/components/find/nsIFindService.idl
+++ b/toolkit/components/find/nsIFindService.idl
@@ -1,26 +1,26 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
- 
+
 #include "nsISupports.idl"
 
 [scriptable, uuid(5060b801-340e-11d5-be5b-b3e063ec6a3c)]
 interface nsIFindService : nsISupports
 {
 
     /*
      * The sole purpose of the Find service is to store globally the
      * last used Find settings
      *
      */
 
     attribute AString searchString;
     attribute AString replaceString;
-    
+
     attribute boolean findBackwards;
     attribute boolean wrapFind;
     attribute boolean entireWord;
     attribute boolean matchCase;
 
 };
--- a/toolkit/components/find/nsIWebBrowserFind.idl
+++ b/toolkit/components/find/nsIWebBrowserFind.idl
@@ -1,13 +1,13 @@
 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
- 
+
 #include "nsISupports.idl"
 
 #include "domstubs.idl"
 
 interface mozIDOMWindowProxy;
 
 /* THIS IS A PUBLIC EMBEDDING API */
 
@@ -17,17 +17,17 @@ interface mozIDOMWindowProxy;
  *
  * Searches for text in a web browser.
  *
  * Get one by doing a GetInterface on an nsIWebBrowser.
  *
  * By default, the implementation will search the focussed frame, or
  * if there is no focussed frame, the web browser content area. It
  * does not by default search subframes or iframes. To change this
- * behaviour, and to explicitly set the frame to search, 
+ * behaviour, and to explicitly set the frame to search,
  * QueryInterface to nsIWebBrowserFindInFrames.
  */
 
 [scriptable, uuid(e4920136-b3e0-49e0-b1cd-6c783d2591a8)]
 interface nsIWebBrowserFind : nsISupports
 {
     /**
      * findNext
@@ -78,17 +78,17 @@ interface nsIWebBrowserFind : nsISupport
      * Whether to match case (case sensitive) when searching. Default is false.
      */
     attribute boolean matchCase;
 
     /**
      * searchFrames
      *
      * Whether to search through all frames in the content area. Default is true.
-     * 
+     *
      * Note that you can control whether the search propagates into child or
      * parent frames explicitly using nsIWebBrowserFindInFrames, but if one,
      * but not both, of searchSubframes and searchParentFrames are set, this
      * returns false.
      */
     attribute boolean searchFrames;
 };
 
@@ -96,17 +96,17 @@ interface nsIWebBrowserFind : nsISupport
 
 /**
  * nsIWebBrowserFindInFrames
  *
  * Controls how find behaves when multiple frames or iframes are present.
  *
  * Get by doing a QueryInterface from nsIWebBrowserFind.
  */
- 
+
 [scriptable, uuid(e0f5d182-34bc-11d5-be5b-b760676c6ebc)]
 interface nsIWebBrowserFindInFrames : nsISupports
 {
     /**
      * currentSearchFrame
      *
      * Frame at which to start the search. Once the search is done, this will
      * be set to be the last frame searched, whether or not a result was found.
@@ -116,26 +116,26 @@ interface nsIWebBrowserFindInFrames : ns
 
     /**
      * rootSearchFrame
      *
      * Frame within which to confine the search (normally the content area frame).
      * Set this to only search a subtree of the frame hierarchy.
      */
     attribute mozIDOMWindowProxy  rootSearchFrame;
-        
+
     /**
      * searchSubframes
      *
      * Whether to recurse down into subframes while searching. Default is true.
      *
      * Setting nsIWebBrowserfind.searchFrames to true sets this to true.
      */
     attribute boolean searchSubframes;
-    
+
     /**
      * searchParentFrames
      *
      * Whether to allow the search to propagate out of the currentSearchFrame into its
      * parent frame(s). Search is always confined within the rootSearchFrame. Default
      * is true.
      *
      * Setting nsIWebBrowserfind.searchFrames to true sets this to true.
--- a/toolkit/components/parentalcontrols/nsIParentalControlsService.idl
+++ b/toolkit/components/parentalcontrols/nsIParentalControlsService.idl
@@ -44,17 +44,17 @@ interface nsIParentalControlsService : n
    * @returns true if the current user account has parental controls
    * restrictions enabled.
    */
   readonly attribute boolean parentalControlsEnabled;
 
   /**
    * @returns true if the current user account parental controls
    * restrictions include the blocking of all file downloads.
-   */ 
+   */
   readonly attribute boolean blockFileDownloadsEnabled;
 
   /**
    * Check if the user can do the prescibed action for this uri.
    *
    * @param aAction             Action being performed
    * @param aUri                The uri requesting this action
    * @param aWindow             The window generating this event.
@@ -73,23 +73,23 @@ interface nsIParentalControlsService : n
    */
   boolean requestURIOverride(in nsIURI aTarget, [optional] in nsIInterfaceRequestor aWindowContext);
   boolean requestURIOverrides(in nsIArray aTargets, [optional] in nsIInterfaceRequestor aWindowContext);
 
   /**
    * @returns true if the current user account has parental controls
    * logging enabled. If true, applications should log relevent events
    * using 'log'.
-   */ 
+   */
   readonly attribute boolean loggingEnabled;
 
   /**
    * Log entry types. Additional types can be defined and implemented
    * as needed. Other possible event types might include email events,
-   * media related events, and IM events. 
+   * media related events, and IM events.
    */
   const short ePCLog_URIVisit = 1;    /* Web content */
   const short ePCLog_FileDownload = 2;  /* File downloads */
 
   /**
    * Log an application specific parental controls
    * event.
    *
--- a/toolkit/components/startup/public/nsIAppStartup.idl
+++ b/toolkit/components/startup/public/nsIAppStartup.idl
@@ -156,17 +156,17 @@ interface nsIAppStartup : nsISupports
      */
     readonly attribute boolean wasRestarted;
 
     /**
      * The number of seconds since the OS was last rebooted
      */
     readonly attribute int64_t secondsSinceLastOSRestart;
 
-    /** 
+    /**
      * Returns an object with main, process, firstPaint, sessionRestored properties.
      * Properties may not be available depending on platform or application
      */
     [implicit_jscontext] jsval getStartupInfo();
 
     /**
      * True if startup was interrupted by an interactive prompt.
      */
--- a/toolkit/components/urlformatter/nsIURLFormatter.idl
+++ b/toolkit/components/urlformatter/nsIURLFormatter.idl
@@ -14,29 +14,29 @@
  *   http[s]://%SERVICE%.mozilla.[com|org]/%LOCALE%/
  */
 
 #include "nsISupports.idl"
 
 [scriptable, uuid(4ab31d30-372d-11db-a98b-0800200c9a66)]
 interface nsIURLFormatter: nsISupports
 {
-  /** 
+  /**
    * formatURL - Formats a string URL
    *
    * The set of known variables is predefined.
    * If a variable is unknown, it is left unchanged and a non-fatal error is reported.
    *
    * @param aFormat string Unformatted URL.
    *
    * @return The formatted URL.
    */
   AString formatURL(in AString aFormat);
 
-  /** 
+  /**
    * formatURLPref - Formats a string URL stored in a preference
    *
    * If the preference value cannot be retrieved, a fatal error is reported
    * and the "about:blank" URL is returned.
    *
    * @param aPref string Preference name.
    *
    * @return The formatted URL returned by formatURL(), or "about:blank".
--- a/toolkit/components/windowwatcher/nsIDialogParamBlock.idl
+++ b/toolkit/components/windowwatcher/nsIDialogParamBlock.idl
@@ -1,13 +1,13 @@
 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
- 
+
 #include "nsISupports.idl"
 interface nsIMutableArray;
 
 /**
  * An interface to pass strings, integers and nsISupports to a dialog
  */
 
 [scriptable, uuid(f76c0901-437a-11d3-b7a0-e35db351b4bc)]
@@ -24,19 +24,19 @@ interface nsIDialogParamBlock:  nsISuppo
    */
   void SetNumberStrings( in int32_t inNumStrings );
 
   /** Get or set an string to pass.
     * Index starts at 0
     */
   wstring GetString( in int32_t inIndex );
   void SetString( in int32_t inIndex, in wstring inString);
-  
+
   /**
-   * A place where you can store an nsIMutableArray to pass nsISupports 
+   * A place where you can store an nsIMutableArray to pass nsISupports
    */
   attribute nsIMutableArray objects;
 };
 
 %{C++
 #define NS_DIALOGPARAMBLOCK_CONTRACTID "@mozilla.org/embedcomp/dialogparam;1"
 %}
 
--- a/toolkit/mozapps/extensions/amIWebInstallPrompt.idl
+++ b/toolkit/mozapps/extensions/amIWebInstallPrompt.idl
@@ -5,17 +5,17 @@
 #include "nsISupports.idl"
 
 interface nsIURI;
 interface nsIVariant;
 
 webidl Element;
 
 /**
- * amIWebInstallPrompt is used, if available, by the default implementation of 
+ * amIWebInstallPrompt is used, if available, by the default implementation of
  * amIWebInstallInfo to display a confirmation UI to the user before running
  * installs.
  */
 [scriptable, uuid(386906f1-4d18-45bf-bc81-5dcd68e42c3b)]
 interface amIWebInstallPrompt : nsISupports
 {
   /**
    * Get a confirmation that the user wants to start the installs.
--- a/toolkit/mozapps/update/nsIUpdateService.idl
+++ b/toolkit/mozapps/update/nsIUpdateService.idl
@@ -140,17 +140,17 @@ interface nsIUpdate : nsISupports
    * The channel used to retrieve this update from the Update Service.
    */
   readonly attribute AString channel;
 
   /**
    * Whether the update is no longer supported on this system.
    */
   readonly attribute boolean unsupported;
-  
+
   /**
    * Allows overriding the default amount of time in seconds before prompting the
    * user to apply an update. If not specified, the value of
    * app.update.promptWaitTime will be used.
    */
   attribute long long promptWaitTime;
 
   /**
--- a/toolkit/profile/nsIProfileMigrator.idl
+++ b/toolkit/profile/nsIProfileMigrator.idl
@@ -33,17 +33,17 @@ interface nsIProfileStartup : nsISupport
 /**
  * Migrate application settings from an outside source.
  *
  * @provider Application (Profile-migration code)
  * @client   Toolkit (Startup code)
  * @obtainable service, contractid("@mozilla.org/toolkit/profile-migrator;1")
  */
 [scriptable, uuid(3df284a5-2258-4d46-a664-761ecdc04c22)]
-interface nsIProfileMigrator : nsISupports 
+interface nsIProfileMigrator : nsISupports
 {
   /**
    * Migrate data from an outside source, if possible.  Does nothing
    * otherwise.
    *
    * When this method is called, a default profile has been created;
    * XPCOM has been initialized such that compreg.dat is in the
    * profile; the directory service does *not* return a key for
--- a/toolkit/profile/nsIToolkitProfile.idl
+++ b/toolkit/profile/nsIToolkitProfile.idl
@@ -14,17 +14,17 @@ interface nsIProfileUnlocker;
  */
 [scriptable, uuid(7c58c703-d245-4864-8d75-9648ca4a6139)]
 interface nsIProfileLock : nsISupports
 {
     /**
      * The main profile directory.
      */
     readonly attribute nsIFile directory;
-    
+
     /**
      * A directory corresponding to the main profile directory that exists for
      * the purpose of storing data on the local filesystem, including cache
      * files or other data files that may not represent critical user data.
      * (e.g., this directory may not be included as part of a backup scheme.)
      *
      * In some cases, this directory may just be the main profile directory.
      */
--- a/toolkit/xre/nsINativeAppSupport.idl
+++ b/toolkit/xre/nsINativeAppSupport.idl
@@ -1,32 +1,32 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
- 
+
 #include "nsISupports.idl"
 
 /* nsINativeAppSupport
  *
  * This "pseudo" (in the XPCOM sense) interface provides for
  * platform-specific general application support
  *
  * Due to the nature of the beast, this interface is not a full-blown
  * XPCOM component.  The primary reason is that objects that implement
  * this interface generally must be operational *before* XPCOM (or any
- * of the rest of Mozilla) are initialized.  As a result, this 
+ * of the rest of Mozilla) are initialized.  As a result, this
  * interface is instantiated by somewhat unconventional means.
  *
  * To create the implementor of this interface, you call the function
  * NS_CreateNativeAppSupport.  This is done in the startup code
  * in nsAppRunner.cpp
  *
  * The interface provides these functions:
- *  start - You call this to inform the native app support that the  
+ *  start - You call this to inform the native app support that the
  *          application is starting.  In addition, it serves as a
  *          query as to whether the application should continue to
  *          run.
  *
  *          If the returned boolean result is PR_FALSE, then the
  *          application should exit without further processing.  In
  *          such cases, the returned nsresult indicates whether the
  *          reason to exit is due to an error or not.
--- a/uriloader/base/nsIURIContentListener.idl
+++ b/uriloader/base/nsIURIContentListener.idl
@@ -9,17 +9,17 @@ interface nsIRequest;
 interface nsIStreamListener;
 interface nsIURI;
 
 /**
  * nsIURIContentListener is an interface used by components which
  * want to know (and have a chance to handle) a particular content type.
  * Typical usage scenarios will include running applications which register
  * a nsIURIContentListener for each of its content windows with the uri
- * dispatcher service. 
+ * dispatcher service.
  */
 [scriptable, uuid(10a28f38-32e8-4c63-8aa1-12eaaebc369a)]
 interface nsIURIContentListener : nsISupports
 {
  /**
   * Gives the original content listener first crack at stopping a load before
   * it happens.
   *
@@ -45,25 +45,25 @@ interface nsIURIContentListener : nsISup
   *                             (i.e., return failure nsresult).
   *
   * @return                     <code>true</code> if the load should
   *                             be aborted and consumer wants to
   *                             handle the load completely by itself.  This
   *                             causes the URI Loader do nothing else...
   *                             <code>false</code> if the URI Loader should
   *                             continue handling the load and call the
-  *                             returned streamlistener's methods. 
+  *                             returned streamlistener's methods.
   */
   boolean doContent(in ACString aContentType,
                     in boolean aIsContentPreferred,
                     in nsIRequest aRequest,
                     out nsIStreamListener aContentHandler);
 
  /**
-  * When given a uri to dispatch, if the URI is specified as 'preferred 
+  * When given a uri to dispatch, if the URI is specified as 'preferred
   * content' then the uri loader tries to find a preferred content handler
   * for the content type. The thought is that many content listeners may
   * be able to handle the same content type if they have to. i.e. the mail
   * content window can handle text/html just like a browser window content
   * listener. However, if the user clicks on a link with text/html content,
   * then the browser window should handle that content and not the mail
   * window where the user may have clicked the link.  This is the difference
   * between isPreferred and canHandleContent.
@@ -103,18 +103,18 @@ interface nsIURIContentListener : nsISup
   *                             <code>false</code> otherwise.
   *
   * Note: I really envision canHandleContent as a method implemented
   * by the docshell as the implementation is generic to all doc
   * shells. The isPreferred decision is a decision made by a top level
   * application content listener that sits at the top of the docshell
   * hierarchy.
   */
-  boolean canHandleContent(in string aContentType, 
-                           in boolean aIsContentPreferred, 
+  boolean canHandleContent(in string aContentType,
+                           in boolean aIsContentPreferred,
                            out string aDesiredContentType);
 
  /**
   * The load context associated with a particular content listener.
   * The URI Loader stores and accesses this value as needed.
   */
   attribute nsISupports loadCookie;
 
--- a/uriloader/base/nsIURILoader.idl
+++ b/uriloader/base/nsIURILoader.idl
@@ -12,33 +12,33 @@ interface nsIProgressEventSink;
 interface nsIChannel;
 interface nsIRequest;
 interface nsIStreamListener;
 interface nsIInputStream;
 interface nsIInterfaceRequestor;
 
 /**
  * The uri dispatcher is responsible for taking uri's, determining
- * the content and routing the opened url to the correct content 
- * handler. 
+ * the content and routing the opened url to the correct content
+ * handler.
  *
- * When you encounter a url you want to open, you typically call 
- * openURI, passing it the content listener for the window the uri is 
- * originating from. The uri dispatcher opens the url to discover the 
- * content type. It then gives the content listener first crack at 
+ * When you encounter a url you want to open, you typically call
+ * openURI, passing it the content listener for the window the uri is
+ * originating from. The uri dispatcher opens the url to discover the
+ * content type. It then gives the content listener first crack at
  * handling the content. If it doesn't want it, the dispatcher tries
  * to hand it off one of the registered content listeners. This allows
  * running applications the chance to jump in and handle the content.
  *
  * If that also fails, then the uri dispatcher goes to the registry
  * looking for the preferred content handler for the content type
  * of the uri. The content handler may create an app instance
  * or it may hand the contents off to a platform specific plugin
- * or helper app. Or it may hand the url off to an OS registered 
- * application. 
+ * or helper app. Or it may hand the url off to an OS registered
+ * application.
  */
 [scriptable, uuid(8762c4e7-be35-4958-9b81-a05685bb516d)]
 interface nsIURILoader : nsISupports
 {
   /**
    * @name Flags for opening URIs.
    */
   /* @{ */
@@ -59,17 +59,17 @@ interface nsIURILoader : nsISupports
    * than AsyncOpen.
    */
   const unsigned long REDIRECTED_CHANNEL   = 1 << 2;
   /* @} */
 
   /**
    * As applications such as messenger and the browser are instantiated,
    * they register content listener's with the uri dispatcher corresponding
-   * to content windows within that application. 
+   * to content windows within that application.
    *
    * Note to self: we may want to optimize things a bit more by requiring
    * the content types the registered content listener cares about.
    *
    * @param aContentListener
    *        The listener to register. This listener must implement
    *        nsISupportsWeakReference.
    *
@@ -89,17 +89,17 @@ interface nsIURILoader : nsISupports
    *        default handling.
    * @param aWindowContext
    *        If you are running the url from a doc shell or a web shell, this is
    *        your window context. If you have a content listener you want to
    *        give first crack to, the uri loader needs to be able to get it
    *        from the window context. We will also be using the window context
    *        to get at the progress event sink interface.
    *        <b>Must not be null!</b>
-   */ 
+   */
   void openURI(in nsIChannel aChannel,
                in unsigned long aFlags,
                in nsIInterfaceRequestor aWindowContext);
 
   /**
    * Loads data from a channel. This differs from openURI in that the channel
    * may already be opened, and that it returns a stream listener into which the
    * caller should pump data. The caller is responsible for opening the channel
@@ -128,17 +128,17 @@ interface nsIURILoader : nsISupports
    *        default handling.
    * @param aWindowContext
    *        If you are running the url from a doc shell or a web shell, this is
    *        your window context. If you have a content listener you want to
    *        give first crack to, the uri loader needs to be able to get it
    *        from the window context. We will also be using the window context
    *        to get at the progress event sink interface.
    *        <b>Must not be null!</b>
-   */ 
+   */
   nsIStreamListener openChannel(in nsIChannel aChannel,
                                 in unsigned long aFlags,
                                 in nsIInterfaceRequestor aWindowContext);
 
   /**
    * Stops an in progress load
    */
   void stop(in nsISupports aLoadCookie);
--- a/uriloader/base/nsIWebProgressListener.idl
+++ b/uriloader/base/nsIWebProgressListener.idl
@@ -77,17 +77,17 @@ interface nsIWebProgressListener : nsISu
    *   requests for inline content (e.g., images and stylesheets) are
    *   considered normal requests.
    *
    * STATE_IS_DOCUMENT
    *   This flag indicates that the state transition is for a document request.
    *   This flag is set in addition to STATE_IS_REQUEST.  A document request
    *   supports the nsIChannel interface and its loadFlags attribute includes
    *   the nsIChannel::LOAD_DOCUMENT_URI flag.
-   * 
+   *
    *   A document request does not complete until all requests associated with
    *   the loading of its corresponding document have completed.  This includes
    *   other document requests (e.g., corresponding to HTML <iframe> elements).
    *   The document corresponding to a document request is available via the
    *   DOMWindow attribute of onStateChange's aWebProgress parameter.
    *
    * STATE_IS_NETWORK
    *   This flag indicates that the state transition corresponds to the start
@@ -224,17 +224,17 @@ interface nsIWebProgressListener : nsISu
    *   The certificate in use will be distrusted in the near future.
    */
   const unsigned long STATE_CERT_DISTRUST_IMMINENT    = 0x00010000;
 
   /**
     * State bits for EV == Extended Validation == High Assurance
     *
     * These flags describe the level of identity verification
-    * in a call to the onSecurityChange method. 
+    * in a call to the onSecurityChange method.
     *
     * STATE_IDENTITY_EV_TOPLEVEL
     *   The topmost document uses an EV cert.
     *   NOTE: Available since Gecko 1.9
     */
 
   const unsigned long STATE_IDENTITY_EV_TOPLEVEL    = 0x00100000;
 
@@ -371,17 +371,17 @@ interface nsIWebProgressListener : nsISu
                         in long aMaxSelfProgress,
                         in long aCurTotalProgress,
                         in long aMaxTotalProgress);
 
   /**
    * Flags for onLocationChange
    *
    * LOCATION_CHANGE_SAME_DOCUMENT
-   *   This flag is on when |aWebProgress| did not load a new document. 
+   *   This flag is on when |aWebProgress| did not load a new document.
    *   For example, the location change is due to an anchor scroll or a
    *   pushState/popState/replaceState.
    *
    * LOCATION_CHANGE_ERROR_PAGE
    *   This flag is on when |aWebProgress| redirected from the requested
    *   contents to an internal page to show error status, such as
    *   <about:neterror>, <about:certerror> and so on.
    *
--- a/uriloader/exthandler/nsIExternalHelperAppService.idl
+++ b/uriloader/exthandler/nsIExternalHelperAppService.idl
@@ -37,17 +37,17 @@ interface nsIExternalHelperAppService : 
    *  points to the parent browser window. This parameter may be null,
    *  in which case dialogs will be parented to aContentContext.
    * @return A nsIStreamListener which the caller should pump the data into.
    */
   nsIStreamListener doContent (in ACString aMimeContentType,
                                in nsIRequest aRequest,
                                in nsIInterfaceRequestor aContentContext,
                                in boolean aForceSave,
-                               [optional] in nsIInterfaceRequestor aWindowContext); 
+                               [optional] in nsIInterfaceRequestor aWindowContext);
 
   /**
    * Returns true if data from a URL with this extension combination
    * is to be decoded from aEncodingType prior to saving or passing
    * off to helper apps, false otherwise.
    */
   boolean applyDecodingForExtension(in AUTF8String aExtension,
                                     in ACString aEncodingType);
@@ -61,17 +61,17 @@ interface nsIExternalHelperAppService : 
 [scriptable, uuid(6613e2e7-feab-4e3a-bb1f-b03200d544ec)]
 interface nsPIExternalAppLauncher : nsISupports
 {
   /**
    * mscott --> eventually I should move this into a new service so other
    * consumers can add temporary files they want deleted on exit.
    * @param aTemporaryFile A temporary file we should delete on exit.
    */
-  void deleteTemporaryFileOnExit(in nsIFile aTemporaryFile); 
+  void deleteTemporaryFileOnExit(in nsIFile aTemporaryFile);
   /**
    * Delete a temporary file created inside private browsing mode when
    * the private browsing mode has ended.
    */
   void deleteTemporaryPrivateFileWhenPossible(in nsIFile aTemporaryFile);
 };
 
 /**
--- a/uriloader/exthandler/nsIExternalProtocolService.idl
+++ b/uriloader/exthandler/nsIExternalProtocolService.idl
@@ -8,21 +8,21 @@
 
 interface nsIURI;
 interface nsIFile;
 interface nsIInterfaceRequestor;
 interface nsIHandlerInfo;
 
 /**
  * The external protocol service is used for finding and launching
- * web handlers (a la registerProtocolHandler in the HTML5 draft) or 
+ * web handlers (a la registerProtocolHandler in the HTML5 draft) or
  * platform-specific applications for handling particular protocols.
  *
  * You can ask the external protocol service if it has an external
- * handler for a given protocol scheme. And you can ask it to load 
+ * handler for a given protocol scheme. And you can ask it to load
  * the url using the default handler.
  */
 [scriptable, uuid(70f93b7a-3ec6-4bcb-b093-92d9984c9f83)]
 interface nsIExternalProtocolService : nsISupports
 {
   /**
    * Check whether a handler for a specific protocol exists.  Specifically,
    * this looks to see whether there are any known possible application handlers
@@ -48,69 +48,69 @@ interface nsIExternalProtocolService : n
    * XXX shouldn't aProtocolScheme be an ACString like nsIURI::scheme?
    */
   boolean isExposedProtocol(in string aProtocolScheme);
 
   /**
    * Retrieve the handler for the given protocol.  If neither the application
    * nor the OS knows about a handler for the protocol, the object this method
    * returns will represent a default handler for unknown content.
-   * 
+   *
    * @param aProtocolScheme the scheme from a URL: http, ftp, mailto, etc.
-   * 
+   *
    * Note: aProtocolScheme should not include a trailing colon, which is part
    * of the URI syntax, not part of the scheme itself (i.e. pass "mailto" not
    * "mailto:").
-   * 
+   *
    * @return the handler, if any; otherwise a default handler
    */
   nsIHandlerInfo getProtocolHandlerInfo(in ACString aProtocolScheme);
 
   /**
    * Given a scheme, looks up the protocol info from the OS.  This should be
    * overridden by each OS's implementation.
    *
    * @param aScheme The protocol scheme we are looking for.
    * @param aFound  Was an OS default handler for this scheme found?
    * @return An nsIHanderInfo for the protocol.
    */
   nsIHandlerInfo getProtocolHandlerInfoFromOS(in ACString aProtocolScheme,
                                               out boolean aFound);
 
-  /** 
+  /**
    * Set some sane defaults for a protocol handler object.
-   * 
-   * @param aHandlerInfo      nsIHandlerInfo object, as returned by 
+   *
+   * @param aHandlerInfo      nsIHandlerInfo object, as returned by
    *                          getProtocolHandlerInfoFromOS
    * @param aOSHandlerExists  was the object above created for an extant
    *                          OS default handler?  This is generally the
    *                          value of the aFound out param from
    *                          getProtocolHandlerInfoFromOS.
    */
   void setProtocolHandlerDefaults(in nsIHandlerInfo aHandlerInfo,
                                   in boolean aOSHandlerExists);
 
   /**
    * Used to load a URI via an external application. Might prompt the user for
    * permission to load the external application.
    *
    * @param aURI
    *        The URI to load
    *
-   * @param aWindowContext 
+   * @param aWindowContext
    *        The window to parent the dialog against, and, if a web handler
    *        is chosen, it is loaded in this window as well.  This parameter
    *        may be ultimately passed nsIURILoader.openURI in the case of a
    *        web handler, and aWindowContext is null or not present, web
    *        handlers will fail.  We need to do better than that; bug 394483
    *        filed in order to track.
-   * 
+   *
    * @note  Embedders that do not expose the http protocol should not currently
    *        use web-based protocol handlers, as handoff won't work correctly
-   *        (bug 394479).  
+   *        (bug 394479).
    */
   void loadURI(in nsIURI aURI,
                [optional] in nsIInterfaceRequestor aWindowContext);
 
   /**
    * Gets a human-readable description for the application responsible for
    * handling a specific protocol.
    *
--- a/uriloader/prefetch/nsIOfflineCacheUpdate.idl
+++ b/uriloader/prefetch/nsIOfflineCacheUpdate.idl
@@ -36,17 +36,17 @@ interface nsIOfflineCacheUpdateObserver 
    *        See enumeration above
    */
   void updateStateChanged(in nsIOfflineCacheUpdate aUpdate, in uint32_t state);
 
   /**
    * Informs the observer about an application being available to associate.
    *
    * @param applicationCache
-   *        The application cache instance that has been created or found by the 
+   *        The application cache instance that has been created or found by the
    *        update to associate with
    */
   void applicationCacheAvailable(in nsIApplicationCache applicationCache);
 };
 
 /**
  * An nsIOfflineCacheUpdate is used to update an application's offline
  * resources.
@@ -105,26 +105,26 @@ interface nsIOfflineCacheUpdate : nsISup
    */
   void init(in nsIURI aManifestURI,
             in nsIURI aDocumentURI,
             in nsIPrincipal aLoadingPrincipal,
             in Document aDocument,
             [optional] in nsIFile aCustomProfileDir);
 
   /**
-   * Initialize the update for partial processing. 
+   * Initialize the update for partial processing.
    *
    * @param aManifestURI
    *        The manifest URI of the related cache.
    * @param aClientID
    *        Client  ID of the cache to store resource to. This ClientID
    *        must be ID of cache in the cache group identified by
    *        the manifest URI passed in the first parameter.
    * @param aDocumentURI
-   *        The page that is requesting the update. May be null 
+   *        The page that is requesting the update. May be null
    *        when this information is unknown.
    */
   void initPartial(in nsIURI aManifestURI, in ACString aClientID,
                    in nsIURI aDocumentURI, in nsIPrincipal aPrincipal);
 
   /**
    * Initialize the update to only check whether there is an update
    * to the manifest available (if it has actually changed on the server).
--- a/widget/cocoa/nsPIWidgetCocoa.idl
+++ b/widget/cocoa/nsPIWidgetCocoa.idl
@@ -18,20 +18,20 @@ interface nsIWidget;
 [uuid(f75ff69e-3a51-419e-bd29-042f804bc2ed)]
 interface nsPIWidgetCocoa : nsISupports
 {
   void SendSetZLevelEvent();
 
   // Find the displayed child sheet (if aShown) or a child sheet that
   // wants to be displayed (if !aShown)
   nsIWidget GetChildSheet(in boolean aShown);
-  
+
   // Get the parent widget (if any) StandardCreate() was called with.
   nsIWidget GetRealParent();
-  
+
   // If the object implementing this interface is a sheet, this will return the
   // native NSWindow it is attached to
   readonly attribute NSWindowPtr sheetWindowParent;
 
   // True if window is a sheet
   readonly attribute boolean isSheet;
-  
+
 }; // nsPIWidgetCocoa
--- a/widget/nsIBaseWindow.idl
+++ b/widget/nsIBaseWindow.idl
@@ -11,59 +11,59 @@
 [ptr] native nsIWidget(nsIWidget);
 %{ C++
 class nsIWidget;
 %}
 
 typedef voidPtr nativeWindow;
 
 /**
- * The nsIBaseWindow describes a generic window and basic operations that 
+ * The nsIBaseWindow describes a generic window and basic operations that
  * can be performed on it.  This is not to be a complete windowing interface
- * but rather a common set that nearly all windowed objects support.    
+ * but rather a common set that nearly all windowed objects support.
  */
 
 [scriptable, uuid(ca635529-a977-4552-9b8a-66187e54d882)]
 interface nsIBaseWindow : nsISupports
 {
 	/*
 	Allows a client to initialize an object implementing this interface with
 	the usually required window setup information.
 	It is possible to pass null for both parentNativeWindow and parentWidget,
 	but only docshells support this.
 
 	@param parentNativeWindow - This allows a system to pass in the parenting
 		window as a native reference rather than relying on the calling
-		application to have created the parent window as an nsIWidget.  This 
+		application to have created the parent window as an nsIWidget.  This
 		value will be ignored (should be nullptr) if an nsIWidget is passed in to
 		the parentWidget parameter.
 
 	@param parentWidget - This allows a system to pass in the parenting widget.
 		This allows some objects to optimize themselves and rely on the view
 		system for event flow rather than creating numerous native windows.  If
 		one of these is not available, nullptr should be passed.
 
 	@param x - This is the x co-ordinate relative to the parent to place the
 		window.
 
-	@param y - This is the y co-ordinate relative to the parent to place the 
+	@param y - This is the y co-ordinate relative to the parent to place the
 		window.
 
 	@param cx - This is the width	for the window to be.
 
 	@param cy - This is the height for the window to be.
 
 	@return	NS_OK - Window Init succeeded without a problem.
 				NS_ERROR_UNEXPECTED - Call was unexpected at this time.  Most likely
 					due to you calling it after create() has been called.
 				NS_ERROR_INVALID_ARG - controls that require either a parentNativeWindow
-					or a parentWidget may return invalid arg when they do not 
+					or a parentWidget may return invalid arg when they do not
 					receive what they are needing.
 	*/
-	[noscript]void initWindow(in nativeWindow parentNativeWindow, 
+	[noscript]void initWindow(in nativeWindow parentNativeWindow,
 		in nsIWidget parentWidget,	in long x, in long y, in long cx, in long cy);
 
 	/*
 	Tells the window that intialization and setup is complete.  When this is
 	called the window can actually create itself based on the setup
 	information handed to it.
 
 	@return	NS_OK - Creation was successfull.
@@ -118,42 +118,42 @@ interface nsIBaseWindow : nsISupports
 	 */
 	const unsigned long eRepaint = 1;
 	const unsigned long eDelayResize = 2;
 
 	/*
 	Convenience function combining the SetPosition and SetSize into one call.
 	Also is more efficient than calling both.
 	*/
-	void setPositionAndSize(in long x, in long y, in long cx, in long cy, 
+	void setPositionAndSize(in long x, in long y, in long cx, in long cy,
 		in unsigned long flags);
-		
+
 	/*
 	Convenience function combining the GetPosition and GetSize into one call.
 	Also is more efficient than calling both.
 	*/
 	void getPositionAndSize(out long x, out long y, out long cx, out long cy);
-	 
-	/** 
+
+	/**
 	 * Tell the window to repaint itself
 	 * @param aForce - if true, repaint immediately
 	 *                 if false, the window may defer repainting as it sees fit.
 	 */
 	void repaint(in boolean force);
 
-	/*			  
+	/*
 	This is the parenting widget for the control.  This may be null if the
 	native window was handed in for the parent during initialization.
 	If this	is returned, it should refer to the same object as
 	parentNativeWindow.
 
 	Setting this after Create() has been called may not be supported by some
 	implementations.
 
-	On controls that don't support widgets, setting this will return a 
+	On controls that don't support widgets, setting this will return a
 	NS_ERROR_NOT_IMPLEMENTED error.
 	*/
 	[noscript] attribute nsIWidget parentWidget;
 
 	/*
 	This is the native window parent of the control.
 
 	Setting this after Create() has been called may not be supported by some
@@ -172,17 +172,17 @@ interface nsIBaseWindow : nsISupports
 	mainWidget undefined
 
 	@throws NS_ERROR_NOT_IMPLEMENTED for non-XULWindows
 	*/
 	readonly attribute AString nativeHandle;
 
 	/*
 	Attribute controls the visibility of the object behind this interface.
-	Setting this attribute to false will hide the control.  Setting it to 
+	Setting this attribute to false will hide the control.  Setting it to
 	true will show it.
 	*/
 	attribute boolean visibility;
 
     /*
     a disabled window should accept no user interaction; it's a dead window,
     like the parent of a modal window.
     */
--- a/widget/nsIClipboard.idl
+++ b/widget/nsIClipboard.idl
@@ -14,70 +14,70 @@ interface nsIArray;
 [scriptable, uuid(ceaa0047-647f-4b8e-ad1c-aff9fa62aa51)]
 interface nsIClipboard : nsISupports
 {
     const long kSelectionClipboard = 0;
     const long kGlobalClipboard = 1;
     const long kFindClipboard = 2;
     // Used to cache current selection on (nsClipboard) for macOS service menu.
     const long kSelectionCache = 3;
-    
+
    /**
     * Given a transferable, set the data on the native clipboard
     *
     * @param  aTransferable The transferable
     * @param  anOwner The owner of the transferable
     * @param  aWhichClipboard Specifies the clipboard to which this operation applies.
     * @result NS_Ok if no errors
     */
-  
-    void setData ( in nsITransferable aTransferable, in nsIClipboardOwner anOwner, 
+
+    void setData ( in nsITransferable aTransferable, in nsIClipboardOwner anOwner,
                     in long aWhichClipboard ) ;
 
    /**
     * Given a transferable, get the clipboard data.
     *
     * @param  aTransferable The transferable
     * @param  aWhichClipboard Specifies the clipboard to which this operation applies.
     * @result NS_Ok if no errors
     */
-  
+
     void getData ( in nsITransferable aTransferable, in long aWhichClipboard ) ;
 
    /**
     * This empties the clipboard and notifies the clipboard owner.
     * This empties the "logical" clipboard. It does not clear the native clipboard.
     *
     * @param  aWhichClipboard Specifies the clipboard to which this operation applies.
     * @result NS_OK if successful.
     */
-  
+
     void emptyClipboard ( in long aWhichClipboard ) ;
 
    /**
-    * This provides a way to give correct UI feedback about, for instance, a paste 
+    * This provides a way to give correct UI feedback about, for instance, a paste
     * should be allowed. It does _NOT_ actually retreive the data and should be a very
     * inexpensive call. All it does is check if there is data on the clipboard matching
     * any of the flavors in the given list.
     *
     * @param  aFlavorList     An array of ASCII strings.
     * @param  aLength         The length of the aFlavorList.
     * @param  aWhichClipboard Specifies the clipboard to which this operation applies.
-    * @outResult - if data is present matching one of 
+    * @outResult - if data is present matching one of
     * @result NS_OK if successful.
     */
     boolean hasDataMatchingFlavors ( [array, size_is(aLength)] in string aFlavorList,
                                      in unsigned long aLength,
                                      in long aWhichClipboard ) ;
 
    /**
-    * Allows clients to determine if the implementation supports the concept of a 
+    * Allows clients to determine if the implementation supports the concept of a
     * separate clipboard for selection.
-    * 
-    * @outResult - true if 
+    *
+    * @outResult - true if
     * @result NS_OK if successful.
     */
     boolean supportsSelectionClipboard ( ) ;
 
     /**
     * Allows clients to determine if the implementation supports the concept of a
     * separate clipboard for find search strings.
     *
--- a/widget/nsIClipboardOwner.idl
+++ b/widget/nsIClipboardOwner.idl
@@ -14,16 +14,16 @@ interface nsIClipboardOwner : nsISupport
 {
    /**
     * Notifies the owner of the clipboard transferable that the
     * transferable is being removed from the clipboard
     *
     * @param  aTransferable The transferable
     * @result NS_Ok if no errors
     */
-  
+
     void LosingOwnership ( in nsITransferable aTransferable ) ;
 };
 
 
 %{ C++
 
 %}
--- a/widget/nsIDragSession.idl
+++ b/widget/nsIDragSession.idl
@@ -26,27 +26,27 @@ interface nsIDragSession : nsISupports
     * usually the target "frame" sets this so the native system can render the correct feedback
     */
   attribute boolean canDrop;
 
   /**
    * Indicates if the drop event should be dispatched only to chrome.
    */
   attribute boolean onlyChromeDrop;
-  
+
   /**
-    * Sets the action (copy, move, link, et.c) for the current drag 
-    */ 
+    * Sets the action (copy, move, link, et.c) for the current drag
+    */
   attribute unsigned long dragAction;
-  
+
   /**
     * Get the number of items that were dropped
     */
   readonly attribute unsigned long numDropItems;
-  
+
   /**
     * The document where the drag was started, which will be null if the
     * drag originated outside the application. Useful for determining if a drop
     * originated in the same document.
     */
   readonly attribute Document sourceDocument;
 
   /**
--- a/widget/nsIFilePicker.idl
+++ b/widget/nsIFilePicker.idl
@@ -104,24 +104,24 @@ interface nsIFilePicker : nsISupports
   *
   * @throws NS_ERROR_FAILURE on attempts to get
   */
   attribute AString defaultString;
 
  /**
   * The extension that should be associated with files of the type we
   * want to work with.  On some platforms, this extension will be
-  * automatically appended to filenames the user enters, if needed.  
+  * automatically appended to filenames the user enters, if needed.
   */
   attribute AString defaultExtension;
-  
+
  /**
   * The filter which is currently selected in the File Picker dialog
   *
-  * @return Returns the index (0 based) of the selected filter in the filter list. 
+  * @return Returns the index (0 based) of the selected filter in the filter list.
   */
   attribute long filterIndex;
 
  /**
   * Set the directory that the file open/save dialog initially displays
   * Note that, if displaySpecialDirectory has been already set, this value will
   * be ignored.
   *
--- a/widget/nsIFormatConverter.idl
+++ b/widget/nsIFormatConverter.idl
@@ -2,27 +2,27 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 [scriptable, uuid(948A0023-E3A7-11d2-96CF-0060B0FB9956)]
 interface nsIFormatConverter : nsISupports
-{  
+{
   /**
     * Get the list of the "input" data flavors (mime types as nsISupportsCString),
-    * in otherwords, the flavors that this converter can convert "from" (the 
+    * in otherwords, the flavors that this converter can convert "from" (the
     * incoming data to the converter).
     */
   Array<ACString> getInputDataFlavors ( ) ;
 
   /**
     * Get the list of the "output" data flavors (mime types as nsISupportsCString),
-    * in otherwords, the flavors that this converter can convert "to" (the 
+    * in otherwords, the flavors that this converter can convert "to" (the
     * outgoing data to the converter).
     *
     * @param  aDataFlavorList fills list with supported flavors
     */
   Array<ACString> getOutputDataFlavors ( ) ;
 
   /**
     * Determines whether a conversion from one flavor to another is supported
@@ -35,16 +35,16 @@ interface nsIFormatConverter : nsISuppor
   /**
     * Converts from one flavor to another.
     *
     * @param  aFromFormatConverter flavor to convert from
     * @param  aFromFormatConverter flavor to convert to (destination own the memory)
     * @returns returns NS_OK if it was converted
     */
   void convert ( in string aFromDataFlavor, in nsISupports aFromData,
-                   in string aToDataFlavor, out nsISupports aToData ) ; 
+                   in string aToDataFlavor, out nsISupports aToData ) ;
 
 };
 
 
 %{ C++
 
 %}
--- a/widget/nsIGfxInfoDebug.idl
+++ b/widget/nsIGfxInfoDebug.idl
@@ -7,17 +7,17 @@
 
 /* NOTE: this interface is only implemented in debug builds */
 
 [scriptable, uuid(ca7b0bc7-c67c-4b79-8270-ed7ba002af08)]
 interface nsIGfxInfoDebug : nsISupports
 {
   void spoofVendorID(in AString aVendorID);
   void spoofDeviceID(in AString aDeviceID);
-  
+
   void spoofDriverVersion(in AString aDriverVersion);
 
   void spoofOSVersion(in unsigned long aVersion);
 
   /* Manually invoke any test processes required to query for driver
      information. This is used by XPC shell tests which do not run these queries
      by default. */
   void fireTestProcess();
--- a/widget/nsIIdleService.idl
+++ b/widget/nsIIdleService.idl
@@ -54,33 +54,33 @@ interface nsIIdleService : nsISupports
      */
     void addIdleObserver(in nsIObserver observer, in unsigned long time);
 
     /**
      * Remove an observer registered with addIdleObserver.
      * @param observer the observer that needs to be removed.
      * @param time the amount of time they were listening for.
      * @note
-     * Removing an observer will remove it once, for the idle time you specify. 
+     * Removing an observer will remove it once, for the idle time you specify.
      * If you have added an observer multiple times, you will need to remove it
      * just as many times.
      */
     void removeIdleObserver(in nsIObserver observer, in unsigned long time);
 
     /**
      * If true, the idle service is temporarily disabled, and all idle events
      * will be ignored.
      *
      * This should only be used in automation.
      */
     attribute boolean disabled;
 };
 
-%{C++  
+%{C++
     /**
      * Observer topic notification for idle window: OBSERVER_TOPIC_IDLE.
      * Observer topic notification for active window: OBSERVER_TOPIC_ACTIVE.
      */
-    
+
     #define OBSERVER_TOPIC_IDLE "idle"
     #define OBSERVER_TOPIC_ACTIVE "active"
     #define OBSERVER_TOPIC_IDLE_DAILY "idle-daily"
 %}
--- a/widget/nsIIdleServiceInternal.idl
+++ b/widget/nsIIdleServiceInternal.idl
@@ -1,17 +1,17 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsIIdleService.idl"
 
 [scriptable, uuid(7b89a2e7-ed12-42e0-b86d-4984239abd7b)]
 interface nsIIdleServiceInternal : nsIIdleService
-{  
+{
  /**
    * "Resets the idle time to the value specified."
    *
    * @param idleDelta the time (in milliseconds) since the last user inter
    *                  action
    **/
   void resetIdleTimeOut(in unsigned long idleDeltaInMS);
 };
--- a/widget/nsIJumpListBuilder.idl
+++ b/widget/nsIJumpListBuilder.idl
@@ -24,49 +24,49 @@ interface nsIJumpListBuilder : nsISuppor
    * initListBuild, add sub lists using addListToBuild, then commit the jump list
    * using commitListBuild. Lists are built in real-time during the sequence of
    * build calls, make sure to check for errors on each individual step.
    *
    * The default number of allowed items in a jump list is ten. Users can change
    * the number through system preferences. User may also pin items to jump lists,
    * which take up additional slots. Applications do not have control over the
    * number of items allowed in jump lists; excess items added are dropped by the
-   * system. Item insertion priority is defined as first to last added. 
+   * system. Item insertion priority is defined as first to last added.
    *
    * Users may remove items from jump lists after they are commited. The system
    * tracks removed items between commits. A list of these items is returned by
    * a call to initListBuild. nsIJumpListBuilder does not filter entries added that
    * have been removed since the last commit. To prevent repeatedly adding entries
-   * users have removed, applications are encoraged to track removed items 
+   * users have removed, applications are encoraged to track removed items
    * internally.
    *
    * Each list is made up of an array of nsIJumpListItem representing items
    * such as shortcuts, links, and separators. See nsIJumpListItem for information
    * on adding additional jump list types.
    */
 
   /**
    * List Types
    */
 
   /**
    * Task List
-   * 
+   *
    * Tasks are common actions performed by users within the application. A task
    * can be represented by an application shortcut and associated command line
    * parameters or a URI. Task lists should generally be static lists that do not
    * change often, if at all - similar to an application menu.
    *
    * Tasks are given the highest priority of all lists when space is limited.
    */
   const short JUMPLIST_CATEGORY_TASKS = 0;
 
   /**
    * Recent or Frequent list
-   * 
+   *
    * Recent and frequent lists are based on Window's recent document lists. The
    * lists are generated automatically by Windows. Applications that use recent
    * or frequent lists should keep document use tracking up to date by calling
    * the SHAddToRecentDocs shell api.
    */
   const short JUMPLIST_CATEGORY_RECENT       = 1;
   const short JUMPLIST_CATEGORY_FREQUENT     = 2;
 
--- a/widget/nsIJumpListItem.idl
+++ b/widget/nsIJumpListItem.idl
@@ -11,17 +11,17 @@ interface nsIMutableArray;
 
 /**
  * Implements Win7 Taskbar jump list item interfaces.
  *
  * Note to consumers: it's reasonable to expect we'll need support for other types
  * of jump list items (an audio file, an email message, etc.). To add types,
  * create the specific interface here, add an implementation class to WinJumpListItem,
  * and add support to addListBuild & removed items processing.
- * 
+ *
  */
 
 [scriptable, uuid(ACB8FB3C-E1B0-4044-8A50-E52C3E7C1057)]
 interface nsIJumpListItem : nsISupports
 {
   const short JUMPLIST_ITEM_EMPTY      = 0; // Empty list item
   const short JUMPLIST_ITEM_SEPARATOR  = 1; // Separator
   const short JUMPLIST_ITEM_LINK       = 2; // Web link item
@@ -66,17 +66,17 @@ interface nsIJumpListSeparator : nsIJump
 interface nsIJumpListLink : nsIJumpListItem
 {
   /**
    * Set or get the uri for this link item.
    */
   attribute nsIURI uri;
 
   /**
-   * Set or get the title for a link item.  
+   * Set or get the title for a link item.
    */
   attribute AString uriTitle;
 
   /**
    * Get a 'privacy safe' unique string hash of the uri's
    * spec. Useful in tracking removed items using visible
    * data stores such as prefs. Generates an MD5 hash of
    * the URI spec using nsICryptoHash.
@@ -99,17 +99,17 @@ interface nsIJumpListLink : nsIJumpListI
 [scriptable, uuid(CBE3A37C-BCE1-4fec-80A5-5FFBC7F33EEA)]
 interface nsIJumpListShortcut : nsIJumpListItem
 {
   /**
    * Set or get the handler app for this shortcut item.
    *
    * The handler app may also be used along with iconIndex to generate an icon
    * for the jump list item.
-   * 
+   *
    * @throw NS_ERROR_FILE_NOT_FOUND if the handler app can
    * not be found on  the system.
    *
    * @see faviconPageUri
    */
   attribute nsILocalHandlerApp app;
 
   /**
@@ -125,13 +125,13 @@ interface nsIJumpListShortcut : nsIJumpL
   /**
    * Set or get the URI of a page whose favicon may be used as the icon.
    *
    * When a jump list build occurs, the favicon to be used for the item is
    * obtained using the following steps:
    * - First, attempt to use the asynchronously retrieved and scaled favicon
    * associated with the faviconPageUri.
    * - If faviconPageUri is null, or if retrieving the favicon fails, fall
-   * back to using the handler executable and iconIndex.  
+   * back to using the handler executable and iconIndex.
    */
   attribute nsIURI faviconPageUri;
 };
 
--- a/widget/nsIMacDockSupport.idl
+++ b/widget/nsIMacDockSupport.idl
@@ -23,17 +23,17 @@ interface nsIMacDockSupport : nsISupport
 
   /**
    * Activate the application. This should be used by an application to
    * activate itself when a dock menu is selected as selection of a dock menu
    * item does not automatically activate the application.
    *
    * @param aIgnoreOtherApplications If false, the application is activated
    *        only if no other application is currently active. If true, the
-   *        application activates regardless. 
+   *        application activates regardless.
    */
   void activateApplication(in boolean aIgnoreOtherApplications);
 
   /**
    * Text used to badge the dock tile.
    */
   attribute AString badgeText;
 };
--- a/widget/nsIPrintSettingsService.idl
+++ b/widget/nsIPrintSettingsService.idl
@@ -25,17 +25,17 @@ namespace embedding {
  */
 [ref] native PrintDataRef(const mozilla::embedding::PrintData);
 [ptr] native PrintDataPtr(mozilla::embedding::PrintData);
 
 [scriptable, uuid(841387C8-72E6-484b-9296-BF6EEA80D58A)]
 interface nsIPrintSettingsService : nsISupports
 {
   /**
-   * Returns a "global" PrintSettings object 
+   * Returns a "global" PrintSettings object
    * Creates a new the first time, if one doesn't exist.
    *
    * Then returns the same object each time after that.
    *
    * Initializes the globalPrintSettings from the default printer
    */
   readonly attribute nsIPrintSettings globalPrintSettings;
 
@@ -90,20 +90,20 @@ interface nsIPrintSettingsService : nsIS
    *   docURL, howToEnableFrameUI, isCancelled, printFrameTypeUsage
    *   printFrameType, printSilent, shrinkToFit, numCopies,
    *   printerName
    *
    */
   void initPrintSettingsFromPrefs(in nsIPrintSettings aPrintSettings, in boolean aUsePrinterNamePrefix, in unsigned long aFlags);
 
   /**
-   * Writes PrintSettings values to Prefs, 
+   * Writes PrintSettings values to Prefs,
    * the values to be written are indicated by the "flags" arg.
    *
-   * If there is no PrinterName in the PrinterSettings 
+   * If there is no PrinterName in the PrinterSettings
    * the values are saved as the "generic" values not associated with any printer.
    * If a PrinterName is there, then it saves the items qualified for that Printer
    *
    * aPS - PrintSettings to have its settings saved
    * aUsePrinterNamePrefix - indicates whether to use the printer name as a prefix
    * aFlags - indicates which prefs to save, see nsIPrintSettings.idl for the const values.
    *
    * Items not written:
--- a/widget/nsISound.idl
+++ b/widget/nsISound.idl
@@ -13,17 +13,17 @@ interface nsISound : nsISupports
 {
   void play(in nsIURL aURL);
   void beep();
 
   /**
     * Not strictly necessary, but avoids delay before first sound.
     * The various methods on nsISound call Init() if they need to.
 	*/
-  void init(); 
+  void init();
 
   /**
    * In some situations, playEventSound will be called.  Then, each
    * implementations will play a system sound for the event if it's necessary.
    *
    * NOTE: Don't change these values because they are used in
    * nsPIPromptService.idl. So, if they are changed, that makes big impact for
    * the embedders.
--- a/widget/nsITaskbarWindowPreview.idl
+++ b/widget/nsITaskbarWindowPreview.idl
@@ -31,17 +31,17 @@ interface nsITaskbarPreviewButton;
  * nsITaskbarWindowPreview for the corresponding window is automatically
  * hidden. This is not reflected in the visible property. Note that other parts
  * of the system (such as alt-tab) may still request thumbnails and/or previews
  * through the nsITaskbarWindowPreview's controller.
  *
  * nsITaskbarWindowPreview will never invoke the controller's onClose or
  * onActivate methods since handling them may conflict with other internal
  * Gecko state and there is existing infrastructure in place to allow clients
- * to handle those events 
+ * to handle those events
  *
  * Window previews may have a toolbar with up to 7 buttons. See
  * nsITaskbarPreviewButton for more information about button properties.
  */
 [scriptable, uuid(EC67CC57-342D-4064-B4C6-74A375E07B10)]
 interface nsITaskbarWindowPreview : nsITaskbarPreview
 {
   /**
--- a/widget/nsITransferable.idl
+++ b/widget/nsITransferable.idl
@@ -59,17 +59,17 @@ interface nsIPrincipal;
 #define kCustomTypesMime "application/x-moz-custom-clipdata"
 
 %}
 
 
 /**
   * nsIFlavorDataProvider allows a flavor to 'promise' data later,
   * supplying the data lazily.
-  * 
+  *
   * To use it, call setTransferData, passing the flavor string,
   * a nsIFlavorDataProvider QI'd to nsISupports, and a data size of 0.
   *
   * When someone calls getTransferData later, if the data size is
   * stored as 0, the nsISupports will be QI'd to nsIFlavorDataProvider,
   * and its getFlavorData called.
   *
   */
@@ -137,17 +137,17 @@ interface nsITransferable : nsISupports
     * been added to it with |AddFlavor()|
     *
     * @param  aFlavor (out parameter) the flavor of data that was retrieved
     * @param  aData the data. Some variant of class in nsISupportsPrimitives.idl
     */
   void getAnyTransferData(out ACString aFlavor, out nsISupports aData);
 
     ///////////////////////////////
-    // Setter part of interface 
+    // Setter part of interface
     ///////////////////////////////
 
   /**
     * Computes a list of flavors that the transferable can
     * accept into it, either through intrinsic knowledge or input data converters.
     *
     */
   Array<ACString> flavorsTransferableCanImport();
@@ -159,17 +159,17 @@ interface nsITransferable : nsISupports
     * @param  aFlavor the flavor of data that is being set
     * @param  aData the data, either some variant of class in nsISupportsPrimitives.idl,
     *         an nsIFile, or an nsIFlavorDataProvider (see above)
     * @param  aDataLen the length of the data, or 0 if passing a nsIFlavorDataProvider
     */
   void setTransferData(in string aFlavor, in nsISupports aData);
 
   /**
-    * Add the data flavor, indicating that this transferable 
+    * Add the data flavor, indicating that this transferable
     * can receive this type of flavor
     *
     * @param  aDataFlavor a new data flavor to handle
     */
   void addDataFlavor ( in string aDataFlavor ) ;
 
   /**
     * Removes the data flavor matching the given one (string compare) and the data
@@ -177,18 +177,18 @@ interface nsITransferable : nsISupports
     *
     * @param  aDataFlavor a data flavor to remove
     */
   void removeDataFlavor ( in string aDataFlavor ) ;
 
   attribute nsIFormatConverter converter;
 
   /**
-   * Use of the SetIsPrivateData() method generated by isPrivateData attribute should 
-   * be avoided as much as possible because the value set may not reflect the status 
+   * Use of the SetIsPrivateData() method generated by isPrivateData attribute should
+   * be avoided as much as possible because the value set may not reflect the status
    * of the context in which the transferable was created.
    */
   [notxpcom, nostdcall] attribute boolean isPrivateData;
 
   /**
    * The principal of the source dom node this transferable was
    * created from and the contentPolicyType for the transferable.
    * Note, currently only used on Windows for network principal and
--- a/xpcom/base/nsIDebug2.idl
+++ b/xpcom/base/nsIDebug2.idl
@@ -43,17 +43,17 @@ interface nsIDebug2 : nsISupports
      *
      * @param aStr assertion message
      * @param aExpr expression that failed
      * @param aFile file containing assertion
      * @param aLine line number of assertion
      */
     void assertion(in string aStr,
                    in string aExpr,
-                   in string aFile, 
+                   in string aFile,
                    in long aLine);
 
     /**
      * Show a warning.
      *
      * @param aStr warning message
      * @param aFile file containing assertion
      * @param aLine line number of assertion
@@ -63,26 +63,26 @@ interface nsIDebug2 : nsISupports
                  in long aLine);
 
     /**
      * Request to break into a debugger.
      *
      * @param aFile file containing break request
      * @param aLine line number of break request
      */
-    void break(in string aFile, 
+    void break(in string aFile,
                in long aLine);
 
     /**
      * Request the process to trigger a fatal abort.
      *
      * @param aFile file containing abort request
      * @param aLine line number of abort request
      */
-    void abort(in string aFile, 
+    void abort(in string aFile,
                in long aLine);
 
     /**
      * Request the process to trigger a fatal panic!() from Rust code.
      *
      * @param aMessage the string to pass to panic!().
      */
     void rustPanic(in string aMessage);
--- a/xpcom/base/nsIErrorService.idl
+++ b/xpcom/base/nsIErrorService.idl
@@ -1,25 +1,25 @@
 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 /**
- * nsIErrorService: This is an interim service that allows nsresult codes to be mapped to 
+ * nsIErrorService: This is an interim service that allows nsresult codes to be mapped to
  * string bundles that can be used to look up error messages. String bundle keys can also
- * be mapped. 
+ * be mapped.
  *
  * This service will eventually get replaced by extending xpidl to allow errors to be defined.
  * (http://bugzilla.mozilla.org/show_bug.cgi?id=13423).
  */
 [uuid(afe1f190-a3c2-11e3-a5e2-0800200c9a66)]
-interface nsIErrorService : nsISupports 
+interface nsIErrorService : nsISupports
 {
     /**
      * Registers a string bundle URL for an error module. Error modules are obtained from
      * nsresult code with NS_ERROR_GET_MODULE.
      */
     void registerErrorStringBundle(in short errorModule, in string stringBundleURL);
 
     /**
--- a/xpcom/base/nsIInterfaceRequestor.idl
+++ b/xpcom/base/nsIInterfaceRequestor.idl
@@ -2,35 +2,35 @@
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 /**
- * The nsIInterfaceRequestor interface defines a generic interface for 
+ * The nsIInterfaceRequestor interface defines a generic interface for
  * requesting interfaces that a given object might provide access to.
- * This is very similar to QueryInterface found in nsISupports.  
+ * This is very similar to QueryInterface found in nsISupports.
  * The main difference is that interfaces returned from GetInterface()
- * are not required to provide a way back to the object implementing this 
- * interface.  The semantics of QI() dictate that given an interface A that 
- * you QI() on to get to interface B, you must be able to QI on B to get back 
- * to A.  This interface however allows you to obtain an interface C from A 
- * that may or most likely will not have the ability to get back to A. 
+ * are not required to provide a way back to the object implementing this
+ * interface.  The semantics of QI() dictate that given an interface A that
+ * you QI() on to get to interface B, you must be able to QI on B to get back
+ * to A.  This interface however allows you to obtain an interface C from A
+ * that may or most likely will not have the ability to get back to A.
  */
 
 [scriptable, uuid(033A1470-8B2A-11d3-AF88-00A024FFC08C)]
 interface nsIInterfaceRequestor : nsISupports
 {
    /**
     * Retrieves the specified interface pointer.
     *
     * @param uuid The IID of the interface being requested.
     * @param result [out] The interface pointer to be filled in if
     *               the interface is accessible.
     * @throws NS_NOINTERFACE - interface not accessible.
     * @throws NS_ERROR* - method failure.
     */
-	void getInterface(in nsIIDRef uuid, 
+	void getInterface(in nsIIDRef uuid,
                       [iid_is(uuid),retval] out nsQIResult result);
 };
 
--- a/xpcom/base/nsIMemory.idl
+++ b/xpcom/base/nsIMemory.idl
@@ -12,34 +12,34 @@
  *
  * The frozen exported symbols moz_xmalloc, moz_xrealloc, and free
  * provide a more efficient way to access XPCOM memory allocation. Using
  * those symbols is preferred to using the methods on this interface.
  *
  * A client that wishes to be notified of low memory situations (for
  * example, because the client maintains a large memory cache that
  * could be released when memory is tight) should register with the
- * observer service (see nsIObserverService) using the topic 
- * "memory-pressure".  There are specific types of notications 
- * that can occur.  These types will be passed as the |aData| 
- * parameter of the of the "memory-pressure" notification: 
- * 
+ * observer service (see nsIObserverService) using the topic
+ * "memory-pressure".  There are specific types of notications
+ * that can occur.  These types will be passed as the |aData|
+ * parameter of the of the "memory-pressure" notification:
+ *
  * "low-memory"
- * This will be passed as the extra data when the pressure 
+ * This will be passed as the extra data when the pressure
  * observer is being asked to flush for low-memory conditions.
  *
  * "low-memory-ongoing"
  * This will be passed when we continue to be in a low-memory
  * condition and we want to flush caches and do other cheap
  * forms of memory minimization, but heavy handed approaches like
  * a GC are unlikely to succeed.
  *
  * "heap-minimize"
- * This will be passed as the extra data when the pressure 
- * observer is being asked to flush because of a heap minimize 
+ * This will be passed as the extra data when the pressure
+ * observer is being asked to flush because of a heap minimize
  * call.
  */
 
 [scriptable, uuid(1e004834-6d8f-425a-bc9c-a2812ed43bb7)]
 interface nsIMemory : nsISupports
 {
     /**
      * Attempts to shrink the heap.
--- a/xpcom/base/nsISupports.idl
+++ b/xpcom/base/nsISupports.idl
@@ -1,42 +1,42 @@
 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-  
+
 /**
  * The mother of all xpcom interfaces.
  */
 
 /* In order to get both the right typelib and the right header we force
 *  the 'real' output from xpidl to be commented out in the generated header
-*  and includes a copy of the original nsISupports.h. This is all just to deal 
+*  and includes a copy of the original nsISupports.h. This is all just to deal
 *  with the Mac specific ": public __comobject" thing.
 */
 
 #include "nsrootidl.idl"
 
 %{C++
-/* 
+/*
  * Start commenting out the C++ versions of the below in the output header
  */
 #if 0
 %}
 
 [scriptable, uuid(00000000-0000-0000-c000-000000000046)]
 interface nsISupports {
-  void QueryInterface(in nsIIDRef uuid, 
+  void QueryInterface(in nsIIDRef uuid,
                       [iid_is(uuid),retval] out nsQIResult result);
   [noscript, notxpcom] nsrefcnt AddRef();
   [noscript, notxpcom] nsrefcnt Release();
 };
 
 %{C++
-/* 
+/*
  * End commenting out the C++ versions of the above in the output header
  */
 #endif
 %}
 
 
 %{C++
 #include "nsISupportsBase.h"
--- a/xpcom/base/nsIVersionComparator.idl
+++ b/xpcom/base/nsIVersionComparator.idl
@@ -17,17 +17,17 @@
  *
  * Numbers are base-10, and are zero if left out.
  * Strings are compared bytewise.
  *
  * For additional backwards compatibility, if "string-b" is "+" then
  * "number-a" is incremented by 1 and "string-b" becomes "pre".
  *
  * 1.0pre1
- * < 1.0pre2  
+ * < 1.0pre2
  *   < 1.0 == 1.0.0 == 1.0.0.0
  *     < 1.1pre == 1.1pre0 == 1.0+
  *       < 1.1pre1a
  *         < 1.1pre1
  *           < 1.1pre10a
  *             < 1.1pre10
  *
  * Although not required by this interface, it is recommended that
--- a/xpcom/base/nsrootidl.idl
+++ b/xpcom/base/nsrootidl.idl
@@ -57,21 +57,21 @@ typedef unsigned long       size_t;
 [ref, nsid]   native nsIDRef(nsID);
 [ref, nsid]   native nsIIDRef(nsIID);
 [ref, nsid]   native nsCIDRef(nsCID);
 
 [ptr, nsid]   native nsIDPtr(nsID);
 [ptr, nsid]   native nsIIDPtr(nsIID);
 [ptr, nsid]   native nsCIDPtr(nsCID);
 
-// NOTE: Be careful in using the following 3 types. The *Ref and *Ptr variants 
-// are more commonly used (and better supported). Those variants require 
-// nsMemory alloc'd copies when used as 'out' params while these types do not. 
-// However, currently these types can not be used for 'in' params. And, methods 
-// that use them as 'out' params *must* be declared [notxpcom] (with an explicit 
+// NOTE: Be careful in using the following 3 types. The *Ref and *Ptr variants
+// are more commonly used (and better supported). Those variants require
+// nsMemory alloc'd copies when used as 'out' params while these types do not.
+// However, currently these types can not be used for 'in' params. And, methods
+// that use them as 'out' params *must* be declared [notxpcom] (with an explicit
 // return type of nsresult). This makes such methods implicitly not scriptable.
 // Use of these types in methods without a [notxpcom] declaration will cause
 // the xpidl compiler to raise an error.
 // See: http://bugzilla.mozilla.org/show_bug.cgi?id=93792
 
 [nsid]        native nsIID(nsIID);
 [nsid]        native nsID(nsID);
 [nsid]        native nsCID(nsCID);
@@ -91,13 +91,13 @@ typedef unsigned long       size_t;
 [ptr, astring] native AStringPtr(ignored);
 
 [ref, jsval]  native jsval(jsval);
               native jsid(jsid);
 
 [ptr, promise] native Promise(ignored);
 
 %{C++
-/* 
+/*
  * End commenting out the C++ versions of the above in the output header
  */
 #endif
 %}
--- a/xpcom/components/nsIClassInfo.idl
+++ b/xpcom/components/nsIClassInfo.idl
@@ -52,18 +52,18 @@ interface nsIClassInfo : nsISupports
      */
     const uint32_t SINGLETON            = 1 << 0;
     const uint32_t THREADSAFE           = 1 << 1;
     const uint32_t MAIN_THREAD_ONLY     = 1 << 2;
     const uint32_t DOM_OBJECT           = 1 << 3;
     const uint32_t PLUGIN_OBJECT        = 1 << 4;
     const uint32_t SINGLETON_CLASSINFO  = 1 << 5;
 
-    // The high order bit is RESERVED for consumers of these flags. 
-    // No implementor of this interface should ever return flags 
+    // The high order bit is RESERVED for consumers of these flags.
+    // No implementor of this interface should ever return flags
     // with this bit set.
     const uint32_t RESERVED             = 1 << 31;
 
 
     readonly attribute uint32_t flags;
 
     /**
      * Also a class ID through which an instance of this class can be created
--- a/xpcom/components/nsIComponentManager.idl
+++ b/xpcom/components/nsIComponentManager.idl
@@ -46,34 +46,34 @@ interface nsIComponentManager : nsISuppo
      * createInstance
      *
      * Create an instance of the CID aClass and return the interface aIID.
      *
      * @param aClass : ClassID of object instance requested
      * @param aDelegate : Used for aggregation
      * @param aIID : IID of interface requested
      */
-    void createInstance(in nsCIDRef aClass, 
+    void createInstance(in nsCIDRef aClass,
                         in nsISupports aDelegate,
-                        in nsIIDRef aIID, 
+                        in nsIIDRef aIID,
                         [iid_is(aIID),retval] out nsQIResult result);
 
     /**
      * createInstanceByContractID
      *
      * Create an instance of the CID that implements aContractID and return the
-     * interface aIID. 
+     * interface aIID.
      *
      * @param aContractID : aContractID of object instance requested
      * @param aDelegate : Used for aggregation
      * @param aIID : IID of interface requested
      */
     void createInstanceByContractID(in string aContractID,
                                     in nsISupports aDelegate,
-                                    in nsIIDRef aIID, 
+                                    in nsIIDRef aIID,
                                     [iid_is(aIID),retval] out nsQIResult result);
 
     /**
      * addBootstrappedManifestLocation
      *
      * Adds a bootstrapped manifest location on runtime.
      *
      * @param aLocation : A directory where chrome.manifest resides,
--- a/xpcom/components/nsIComponentRegistrar.idl
+++ b/xpcom/components/nsIComponentRegistrar.idl
@@ -43,98 +43,98 @@ interface nsIComponentRegistrar : nsISup
      * @param aClass      : CID of object
      * @param aClassName  : Class Name of CID (unused)
      * @param aContractID : ContractID associated with CID aClass. May be null
      *                      if no contract ID is needed.
      * @param aFactory    : Factory that will be registered for CID aClass.
      *                      If aFactory is null, the contract will be associated
      *                      with a previously registered CID.
      */
-    void registerFactory(in nsCIDRef aClass, 
+    void registerFactory(in nsCIDRef aClass,
                          in string aClassName,
-                         in string aContractID, 
+                         in string aContractID,
                          in nsIFactory aFactory);
 
     /**
      * unregisterFactory
      *
      * Unregister a factory associated with CID aClass.
      *
      * @param aClass   : CID being unregistered
      * @param aFactory : Factory previously registered to create instances of
      *                   CID aClass.
      *
      * @throws NS_ERROR* Method failure.
-     */    
-    void unregisterFactory(in nsCIDRef aClass, 
+     */
+    void unregisterFactory(in nsCIDRef aClass,
                            in nsIFactory aFactory);
 
     /**
      * registerFactoryLocation
      * @status OBSOLETE: This method is no longer implemented, but preserved
      *                   in this interface for binary compatibility with
      *                   Mozilla 1.9.2.
      */
-    void registerFactoryLocation(in nsCIDRef aClass, 
+    void registerFactoryLocation(in nsCIDRef aClass,
                                  in string aClassName,
-                                 in string aContractID, 
+                                 in string aContractID,
                                  in nsIFile aFile,
-                                 in string aLoaderStr, 
+                                 in string aLoaderStr,
                                  in string aType);
 
     /**
      * unregisterFactoryLocation
      * @status OBSOLETE: This method is no longer implemented, but preserved
      *                   in this interface for binary compatibility with
      *                   Mozilla 1.9.2.
-     */    
-    void unregisterFactoryLocation(in nsCIDRef aClass, 
+     */
+    void unregisterFactoryLocation(in nsCIDRef aClass,
                                    in nsIFile aFile);
 
     /**
      * isCIDRegistered
      *
      * Returns true if a factory is registered for the CID.
      *
      * @param aClass : CID queried for registeration
-     * @return       : true if a factory is registered for CID 
+     * @return       : true if a factory is registered for CID
      *                 false otherwise.
      */
     boolean isCIDRegistered(in nsCIDRef aClass);
-    
+
     /**
      * isContractIDRegistered
      *
      * Returns true if a factory is registered for the contract id.
      *
      * @param aClass : contract id queried for registeration
-     * @return       : true if a factory is registered for contract id 
+     * @return       : true if a factory is registered for contract id
      *                 false otherwise.
      */
     boolean isContractIDRegistered(in string aContractID);
 
     /**
      * enumerateCIDs
      *
      * Enumerate the list of all registered CIDs.
      *
      * @return : enumerator for CIDs.  Elements of the enumeration can be QI'ed
-     *           for the nsISupportsID interface.  From the nsISupportsID, you 
+     *           for the nsISupportsID interface.  From the nsISupportsID, you
      *           can obtain the actual CID.
      */
     nsISimpleEnumerator enumerateCIDs();
 
     /**
      * enumerateContractIDs
      *
      * Enumerate the list of all registered ContractIDs.
      *
-     * @return : enumerator for ContractIDs. Elements of the enumeration can be 
+     * @return : enumerator for ContractIDs. Elements of the enumeration can be
      *           QI'ed for the nsISupportsCString interface.  From  the
-     *           nsISupportsCString interface, you can obtain the actual 
+     *           nsISupportsCString interface, you can obtain the actual
      *           Contract ID string.
      */
     nsISimpleEnumerator enumerateContractIDs();
 
     /**
      * CIDToContractID
      * @status OBSOLETE: This method is no longer implemented, but preserved
      *                   in this interface for binary compatibility with
--- a/xpcom/components/nsIFactory.idl
+++ b/xpcom/components/nsIFactory.idl
@@ -2,17 +2,17 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 /**
  * A class factory allows the creation of nsISupports derived
- * components without specifying a concrete base class.  
+ * components without specifying a concrete base class.
  */
 
 [scriptable, object, uuid(00000001-0000-0000-c000-000000000046)]
 interface nsIFactory :  nsISupports {
    /**
     * Creates an instance of a component.
     *
     * @param aOuter Pointer to a component that wishes to be aggregated
@@ -28,15 +28,15 @@ interface nsIFactory :  nsISupports {
     */
     void createInstance(in nsISupports aOuter, in nsIIDRef iid,
                       [retval, iid_is(iid)] out nsQIResult result);
 
    /**
     * LockFactory provides the client a way to keep the component
     * in memory until it is finished with it. The client can call
     * LockFactory(PR_TRUE) to lock the factory and LockFactory(PR_FALSE)
-    * to release the factory.	 
+    * to release the factory.
     *
     * @param lock - Must be PR_TRUE or PR_FALSE
     * @throws NS_ERROR* - Method failure.
     */
     void lockFactory(in boolean lock);
 };
--- a/xpcom/components/nsIModule.idl
+++ b/xpcom/components/nsIModule.idl
@@ -10,73 +10,73 @@ interface nsIComponentManager;
 
 /**
  * The nsIModule interface.
  */
 
 [scriptable, uuid(7392D032-5371-11d3-994E-00805FD26FEE)]
 interface nsIModule : nsISupports
 {
-    /** 
+    /**
      * Object Instance Creation
      *
-     * Obtains a Class Object from a nsIModule for a given CID and IID pair.  
-     * This class object can either be query to a nsIFactory or a may be 
+     * Obtains a Class Object from a nsIModule for a given CID and IID pair.
+     * This class object can either be query to a nsIFactory or a may be
      * query to a nsIClassInfo.
      *
      * @param aCompMgr  : The global component manager
      * @param aClass    : ClassID of object instance requested
      * @param aIID      : IID of interface requested
-     * 
+     *
      */
-    void getClassObject(in nsIComponentManager aCompMgr, 
+    void getClassObject(in nsIComponentManager aCompMgr,
                         in nsCIDRef aClass,
                         in nsIIDRef aIID,
                         [retval, iid_is(aIID)] out nsQIResult aResult);
 
 
     /**
      * One time registration callback
      *
      * When the nsIModule is discovered, this method will be
      * called so that any setup registration can be preformed.
      *
      * @param aCompMgr  : The global component manager
      * @param aLocation : The location of the nsIModule on disk
      * @param aLoaderStr: Opaque loader specific string
-     * @param aType     : Loader Type being used to load this module 
+     * @param aType     : Loader Type being used to load this module
      */
-    void registerSelf(in nsIComponentManager aCompMgr, 
+    void registerSelf(in nsIComponentManager aCompMgr,
                       in nsIFile aLocation,
-                      in string aLoaderStr, 
+                      in string aLoaderStr,
                       in string aType);
     /**
      * One time unregistration callback
      *
      * When the nsIModule is being unregistered, this method will be
      * called so that any unregistration can be preformed
      *
      * @param aCompMgr   : The global component manager
      * @param aLocation  : The location of the nsIModule on disk
      * @param aLoaderStr : Opaque loader specific string
-     * 
+     *
      */
-   void unregisterSelf(in nsIComponentManager aCompMgr, 
+   void unregisterSelf(in nsIComponentManager aCompMgr,
                         in nsIFile aLocation,
                         in string  aLoaderStr);
 
-   /** 
+   /**
     * Module load management
-    * 
+    *
     * @param aCompMgr  : The global component manager
     *
     * @return indicates to the caller if the module can be unloaded.
     * 		Returning PR_TRUE isn't a guarantee that the module will be
     *		unloaded. It constitues only willingness of the module to be
-    *		unloaded.  It is very important to ensure that no outstanding 
-    *       references to the module's code/data exist before returning 
-    *       PR_TRUE. 
+    *		unloaded.  It is very important to ensure that no outstanding
+    *       references to the module's code/data exist before returning
+    *       PR_TRUE.
     *		Returning PR_FALSE guaratees that the module won't be unloaded.
     */
     boolean canUnload(in nsIComponentManager aCompMgr);
 };
 
 
--- a/xpcom/components/nsIServiceManager.idl
+++ b/xpcom/components/nsIServiceManager.idl
@@ -2,58 +2,58 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 
 #include "nsISupports.idl"
 
 /**
  * The nsIServiceManager manager interface provides a means to obtain
- * global services in an application. The service manager depends on the 
+ * global services in an application. The service manager depends on the
  * repository to find and instantiate factories to obtain services.
  *
  * Users of the service manager must first obtain a pointer to the global
- * service manager by calling NS_GetServiceManager. After that, 
+ * service manager by calling NS_GetServiceManager. After that,
  * they can request specific services by calling GetService. When they are
  * finished they can NS_RELEASE() the service as usual.
  *
  * A user of a service may keep references to particular services indefinitely
  * and only must call Release when it shuts down.
  */
 
 [scriptable, uuid(8bb35ed9-e332-462d-9155-4a002ab5c958)]
 interface nsIServiceManager : nsISupports
 {
     /**
      * getServiceByContractID
      *
      * Returns the instance that implements aClass or aContractID and the
      * interface aIID.  This may result in the instance being created.
      *
-     * @param aClass or aContractID : aClass or aContractID of object 
+     * @param aClass or aContractID : aClass or aContractID of object
      *                                instance requested
      * @param aIID : IID of interface requested
-     * @param result : resulting service 
+     * @param result : resulting service
      */
-    void getService(in nsCIDRef aClass, 
-		    in nsIIDRef aIID, 
+    void getService(in nsCIDRef aClass,
+		    in nsIIDRef aIID,
 		    [iid_is(aIID),retval] out nsQIResult result);
 
     void getServiceByContractID(in string aContractID,
-				in nsIIDRef aIID, 
+				in nsIIDRef aIID,
 				[iid_is(aIID),retval] out nsQIResult result);
 
     /**
      * isServiceInstantiated
      *
      * isServiceInstantiated will return a true if the service has already
      * been created, or false otherwise. Throws if the service does not
      * implement the given IID.
      *
-     * @param aClass or aContractID : aClass or aContractID of object 
+     * @param aClass or aContractID : aClass or aContractID of object
      *                                instance requested
      * @param aIID : IID of interface requested
      * @throws NS_NOINTERFACE if the IID given isn't supported by the object
      */
     boolean isServiceInstantiated(in nsCIDRef aClass, in nsIIDRef aIID);
     boolean isServiceInstantiatedByContractID(in string aContractID, in nsIIDRef aIID);
 };
 
--- a/xpcom/ds/nsIMutableArray.idl
+++ b/xpcom/ds/nsIMutableArray.idl
@@ -20,40 +20,40 @@
  * Any of these methods may throw NS_ERROR_OUT_OF_MEMORY when the
  * array must grow to complete the call, but the allocation fails.
  */
 [scriptable, builtinclass, uuid(af059da0-c85b-40ec-af07-ae4bfdc192cc)]
 interface nsIMutableArray : nsIArrayExtensions
 {
     /**
      * appendElement()
-     * 
+     *
      * Append an element at the end of the array.
      *
      * @param element The element to append.
      */
     void appendElement(in nsISupports element);
 
     /**
      * removeElementAt()
-     * 
+     *
      * Remove an element at a specific position, moving all elements
      * stored at a higher position down one.
      * To remove a specific element, use indexOf() to find the index
      * first, then call removeElementAt().
      *
      * @param index the position of the item
      *
      */
     void removeElementAt(in unsigned long index);
 
     /**
      * insertElementAt()
      *
-     * Insert an element at the given position, moving the element 
+     * Insert an element at the given position, moving the element
      * currently located in that position, and all elements in higher
      * position, up by one.
      *
      * @param element The element to insert
      * @param index   The position in the array:
      *                If the position is lower than the current length
      *                of the array, the elements at that position and
      *                onwards are bumped one position up.
@@ -76,17 +76,17 @@ interface nsIMutableArray : nsIArrayExte
      *                If the position is equal to the current length
      *                of the array, the new element is appended.
      *                If the position is higher than the current length
      *                of the array, empty elements are appended followed
      *                by the new element at the specified position.
      *                An index lower than 0 is invalid and will be ignored.
      */
     void replaceElementAt(in nsISupports element, in unsigned long index);
-    
-    
+
+
     /**
      * clear()
      *
      * clear the entire array, releasing all stored objects
      */
     void clear();
 };
--- a/xpcom/ds/nsIObserver.idl
+++ b/xpcom/ds/nsIObserver.idl
@@ -12,23 +12,23 @@
 
 [scriptable, function, uuid(DB242E01-E4D9-11d2-9DDE-000064657374)]
 interface nsIObserver : nsISupports {
 
    /**
     * Observe will be called when there is a notification for the
     * topic |aTopic|.  This assumes that the object implementing
     * this interface has been registered with an observer service
-    * such as the nsIObserverService. 
+    * such as the nsIObserverService.
     *
-    * If you expect multiple topics/subjects, the impl is 
+    * If you expect multiple topics/subjects, the impl is
     * responsible for filtering.
     *
-    * You should not modify, add, remove, or enumerate 
-    * notifications in the implemention of observe. 
+    * You should not modify, add, remove, or enumerate
+    * notifications in the implemention of observe.
     *
     * @param aSubject : Notification specific interface pointer.
     * @param aTopic   : The notification topic or subject.
     * @param aData    : Notification specific wide string.
     *                    subject event.
     */
     void observe( in nsISupports aSubject,
 				  in string      aTopic,
--- a/xpcom/ds/nsIObserverService.idl
+++ b/xpcom/ds/nsIObserverService.idl
@@ -5,37 +5,37 @@
 
 #include "nsISupports.idl"
 
 interface nsIObserver;
 interface nsISimpleEnumerator;
 
 /**
  * nsIObserverService
- * 
- * Service allows a client listener (nsIObserver) to register and unregister for 
- * notifications of specific string referenced topic. Service also provides a 
- * way to notify registered listeners and a way to enumerate registered client 
+ *
+ * Service allows a client listener (nsIObserver) to register and unregister for
+ * notifications of specific string referenced topic. Service also provides a
+ * way to notify registered listeners and a way to enumerate registered client
  * listeners.
  */
 
 [scriptable, builtinclass, uuid(D07F5192-E3D1-11d2-8ACD-00105A1B8860)]
-interface nsIObserverService : nsISupports 
+interface nsIObserverService : nsISupports
 {
 
     /**
      * AddObserver
      *
      * Registers a given listener for a notifications regarding the specified
      * topic.
      *
      * @param anObserve : The interface pointer which will receive notifications.
      * @param aTopic    : The notification topic or subject.
-     * @param ownsWeak  : If set to false, the nsIObserverService will hold a 
-     *                    strong reference to |anObserver|.  If set to true and 
+     * @param ownsWeak  : If set to false, the nsIObserverService will hold a
+     *                    strong reference to |anObserver|.  If set to true and
      *                    |anObserver| supports the nsIWeakReference interface,
      *                    a weak reference will be held.  Otherwise an error will be
      *                    returned.
      */
     void addObserver( in nsIObserver anObserver, in string aTopic,
                       [optional] in boolean ownsWeak);
 
     /**
@@ -54,18 +54,18 @@ interface nsIObserverService : nsISuppor
      * notifyObservers
      *
      * Notifies all registered listeners of the given topic.
      *
      * @param aSubject : Notification specific interface pointer.
      * @param aTopic   : The notification topic or subject.
      * @param someData : Notification specific wide string.
      */
-    void notifyObservers( in nsISupports aSubject, 
-                          in string aTopic, 
+    void notifyObservers( in nsISupports aSubject,
+                          in string aTopic,
                           [optional] in wstring someData );
 
     /**
      * enumerateObservers
      *
      * Returns an enumeration of all registered listeners.
      *
      * @param aTopic   : The notification topic or subject.
--- a/xpcom/ds/nsIProperties.idl
+++ b/xpcom/ds/nsIProperties.idl
@@ -8,27 +8,27 @@
 /*
  * Simple mapping service interface.
  */
 
 [scriptable, uuid(78650582-4e93-4b60-8e85-26ebd3eb14ca)]
 interface nsIProperties : nsISupports
 {
     /**
-     * Gets a property with a given name. 
+     * Gets a property with a given name.
      *
      * @throws NS_ERROR_FAILURE if a property with that name doesn't exist.
-     * @throws NS_ERROR_NO_INTERFACE if the found property fails to QI to the 
+     * @throws NS_ERROR_NO_INTERFACE if the found property fails to QI to the
      * given iid.
      */
-    void get(in string prop, in nsIIDRef iid, 
+    void get(in string prop, in nsIIDRef iid,
              [iid_is(iid),retval] out nsQIResult result);
 
     /**
-     * Sets a property with a given name to a given value. 
+     * Sets a property with a given name to a given value.
      */
     void set(in string prop, in nsISupports value);
 
     /**
      * Returns true if the property with the given name exists.
      */
     boolean has(in string prop);
 
--- a/xpcom/ds/nsIPropertyBag2.idl
+++ b/xpcom/ds/nsIPropertyBag2.idl
@@ -29,14 +29,14 @@ interface nsIPropertyBag2 : nsIPropertyB
                                         in nsIIDRef iid,
                                         [iid_is(iid), retval] out nsQIResult result);
 
   /**
    * This method returns null if the value does not exist,
    * or exists but is null.
    */
   nsIVariant  get                      (in AString prop);
- 
+
   /**
    * Check for the existence of a key.
    */
   boolean     hasKey                   (in AString prop);
 };
--- a/xpcom/ds/nsIWindowsRegKey.idl
+++ b/xpcom/ds/nsIWindowsRegKey.idl
@@ -73,17 +73,17 @@ interface nsIWindowsRegKey : nsISupports
   const unsigned long TYPE_BINARY = 3;  // REG_BINARY
   const unsigned long TYPE_INT    = 4;  // REG_DWORD
   const unsigned long TYPE_INT64  = 11; // REG_QWORD
 
   /**
    * This attribute exposes the native HKEY and is available to provide C++
    * consumers with the flexibility of making other Windows registry API calls
    * that are not exposed via this interface.
-   * 
+   *
    * It is possible to initialize this object by setting an HKEY on it.  In
    * that case, it is the responsibility of the consumer setting the HKEY to
    * ensure that it is a valid HKEY.
    *
    * WARNING: Setting the key does not close the old key.
    */
   [noscript] attribute HKEY key;
 
@@ -182,17 +182,17 @@ interface nsIWindowsRegKey : nsISupports
    *
    * @param name
    *        The name of the requested value.
    */
   boolean hasValue(in AString name);
 
   /**
    * This method removes a child key and all of its values.  This method will
-   * fail if the key has any children of its own. 
+   * fail if the key has any children of its own.
    *
    * @param relPath
    *        The relative path from this key to the key to be removed.
    */
   void removeChild(in AString relPath);
 
   /**
    * This method removes the value with the given name.
@@ -281,17 +281,17 @@ interface nsIWindowsRegKey : nsISupports
    * @param data
    *        The data for the value to modify.
    */
   void writeInt64Value(in AString name, in unsigned long long data);
 
   /**
    * This method writes the binary contents of the named value.  The value will
    * be created if it does not already exist.
-   * 
+   *
    * JavaScript callers should take care with the value passed to this method
    * since it will be truncated from a JS string (unicode) to a ISO-Latin-1
    * string.  (The binary data will be treated as an ISO-Latin-1 character
    * string, which it is not).  So, JavaScript callers should only pass
    * character values in the range \u0000 to \u00FF, or else data loss will
    * occur.
    *
    * @param name
--- a/xpcom/io/nsIAsyncInputStream.idl
+++ b/xpcom/io/nsIAsyncInputStream.idl
@@ -4,64 +4,64 @@
 
 #include "nsIInputStream.idl"
 
 interface nsIInputStreamCallback;
 interface nsIEventTarget;
 
 /**
  * If an input stream is non-blocking, it may return NS_BASE_STREAM_WOULD_BLOCK
- * when read.  The caller must then wait for the stream to have some data to 
- * read.  If the stream implements nsIAsyncInputStream, then the caller can use 
+ * when read.  The caller must then wait for the stream to have some data to
+ * read.  If the stream implements nsIAsyncInputStream, then the caller can use
  * this interface to request an asynchronous notification when the stream
  * becomes readable or closed (via the AsyncWait method).
  *
  * While this interface is almost exclusively used with non-blocking streams, it
  * is not necessary that nsIInputStream::isNonBlocking return true.  Nor is it
  * necessary that a non-blocking nsIInputStream implementation also implement
  * nsIAsyncInputStream.
  */
 [scriptable, uuid(a5f255ab-4801-4161-8816-277ac92f6ad1)]
 interface nsIAsyncInputStream : nsIInputStream
 {
     /**
-     * This method closes the stream and sets its internal status.  If the 
+     * This method closes the stream and sets its internal status.  If the
      * stream is already closed, then this method is ignored.  Once the stream
      * is closed, the stream's status cannot be changed.  Any successful status
      * code passed to this method is treated as NS_BASE_STREAM_CLOSED, which
-     * has an effect equivalent to nsIInputStream::close. 
+     * has an effect equivalent to nsIInputStream::close.
      *
-     * NOTE: this method exists in part to support pipes, which have both an 
+     * NOTE: this method exists in part to support pipes, which have both an
      * input end and an output end.  If the input end of a pipe is closed, then
-     * writes to the output end of the pipe will fail.  The error code returned 
+     * writes to the output end of the pipe will fail.  The error code returned
      * when an attempt is made to write to a "broken" pipe corresponds to the
      * status code passed in when the input end of the pipe was closed, which
      * greatly simplifies working with pipes in some cases.
      *
      * @param aStatus
      *        The error that will be reported if this stream is accessed after
      *        it has been closed.
      */
     void closeWithStatus(in nsresult aStatus);
 
     /**
      * Asynchronously wait for the stream to be readable or closed.  The
      * notification is one-shot, meaning that each asyncWait call will result
      * in exactly one notification callback.  After the OnInputStreamReady event
-     * is dispatched, the stream releases its reference to the 
+     * is dispatched, the stream releases its reference to the
      * nsIInputStreamCallback object.  It is safe to call asyncWait again from the
      * notification handler.
      *
      * This method may be called at any time (even if read has not been called).
      * In other words, this method may be called when the stream already has
      * data to read.  It may also be called when the stream is closed.  If the
      * stream is already readable or closed when AsyncWait is called, then the
      * OnInputStreamReady event will be dispatched immediately.  Otherwise, the
      * event will be dispatched when the stream becomes readable or closed.
-     * 
+     *
      * @param aCallback
      *        This object is notified when the stream becomes ready.  This
      *        parameter may be null to clear an existing callback.
      * @param aFlags
      *        This parameter specifies optional flags passed in to configure
      *        the behavior of this method.  Pass zero to specify no flags.
      * @param aRequestedCount
      *        Wait until at least this many bytes can be read.  This is only
--- a/xpcom/io/nsIAsyncOutputStream.idl
+++ b/xpcom/io/nsIAsyncOutputStream.idl
@@ -18,50 +18,50 @@ interface nsIEventTarget;
  * is not necessary that nsIOutputStream::isNonBlocking return true.  Nor is it
  * necessary that a non-blocking nsIOutputStream implementation also implement
  * nsIAsyncOutputStream.
  */
 [scriptable, uuid(beb632d3-d77a-4e90-9134-f9ece69e8200)]
 interface nsIAsyncOutputStream : nsIOutputStream
 {
     /**
-     * This method closes the stream and sets its internal status.  If the 
+     * This method closes the stream and sets its internal status.  If the
      * stream is already closed, then this method is ignored.  Once the stream
      * is closed, the stream's status cannot be changed.  Any successful status
      * code passed to this method is treated as NS_BASE_STREAM_CLOSED, which
-     * is equivalent to nsIInputStream::close. 
+     * is equivalent to nsIInputStream::close.
      *
-     * NOTE: this method exists in part to support pipes, which have both an 
+     * NOTE: this method exists in part to support pipes, which have both an
      * input end and an output end.  If the output end of a pipe is closed, then
-     * reads from the input end of the pipe will fail.  The error code returned 
+     * reads from the input end of the pipe will fail.  The error code returned
      * when an attempt is made to read from a "closed" pipe corresponds to the
      * status code passed in when the output end of the pipe is closed, which
      * greatly simplifies working with pipes in some cases.
      *
      * @param aStatus
      *        The error that will be reported if this stream is accessed after
      *        it has been closed.
      */
     void closeWithStatus(in nsresult reason);
 
     /**
      * Asynchronously wait for the stream to be writable or closed.  The
      * notification is one-shot, meaning that each asyncWait call will result
      * in exactly one notification callback.  After the OnOutputStreamReady event
-     * is dispatched, the stream releases its reference to the 
+     * is dispatched, the stream releases its reference to the
      * nsIOutputStreamCallback object.  It is safe to call asyncWait again from the
      * notification handler.
      *
      * This method may be called at any time (even if write has not been called).
      * In other words, this method may be called when the stream already has
      * room for more data.  It may also be called when the stream is closed.  If
      * the stream is already writable or closed when AsyncWait is called, then the
      * OnOutputStreamReady event will be dispatched immediately.  Otherwise, the
      * event will be dispatched when the stream becomes writable or closed.
-     * 
+     *
      * @param aCallback
      *        This object is notified when the stream becomes ready.  This
      *        parameter may be null to clear an existing callback.
      * @param aFlags
      *        This parameter specifies optional flags passed in to configure
      *        the behavior of this method.  Pass zero to specify no flags.
      * @param aRequestedCount
      *        Wait until at least this many bytes can be written.  This is only
--- a/xpcom/io/nsIBinaryInputStream.idl
+++ b/xpcom/io/nsIBinaryInputStream.idl
@@ -14,17 +14,17 @@
  * little-endian platforms.
  *
  * @See nsIBinaryOutputStream
  */
 
 [scriptable, uuid(899b826b-2eb3-469c-8b31-4c29f5d341a6)]
 interface nsIBinaryInputStream : nsIInputStream {
     void setInputStream(in nsIInputStream aInputStream);
-    
+
     /**
      * Read 8-bits from the stream.
      *
      * @return that byte to be treated as a boolean.
      */
     boolean readBoolean();
 
     uint8_t read8();
--- a/xpcom/io/nsIBinaryOutputStream.idl
+++ b/xpcom/io/nsIBinaryOutputStream.idl
@@ -15,17 +15,17 @@
  * as this is traditional network order.
  *
  * @See nsIBinaryInputStream
  */
 
 [scriptable, uuid(204ee610-8765-11d3-90cf-0040056a906e)]
 interface nsIBinaryOutputStream : nsIOutputStream {
     void setOutputStream(in nsIOutputStream aOutputStream);
-    
+
     /**
      * Write a boolean as an 8-bit char to the stream.
      */
     void writeBoolean(in boolean aBoolean);
 
     void write8(in uint8_t aByte);
     void write16(in uint16_t a16);
     void write32(in uint32_t a32);
--- a/xpcom/io/nsIDirectoryEnumerator.idl
+++ b/xpcom/io/nsIDirectoryEnumerator.idl
@@ -1,35 +1,35 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 #include "nsISimpleEnumerator.idl"
 
 interface nsIFile;
 
 /**
  * This interface provides a means for enumerating the contents of a directory.
- * It is similar to nsISimpleEnumerator except the retrieved entries are QI'ed 
- * to nsIFile, and there is a mechanism for closing the directory when the 
+ * It is similar to nsISimpleEnumerator except the retrieved entries are QI'ed
+ * to nsIFile, and there is a mechanism for closing the directory when the
  * enumeration is complete.
  */
 [scriptable, uuid(31f7f4ae-6916-4f2d-a81e-926a4e3022ee)]
 interface nsIDirectoryEnumerator : nsISimpleEnumerator
 {
   /**
-   * Retrieves the next file in the sequence. The "nextFile" element is the 
-   * first element upon the first call. This attribute is null if there is no 
+   * Retrieves the next file in the sequence. The "nextFile" element is the
+   * first element upon the first call. This attribute is null if there is no
    * next element.
    */
   readonly attribute nsIFile nextFile;
 
   /**
    * Closes the directory being enumerated, releasing the system resource.
    * @throws NS_OK if the call succeeded and the directory was closed.
-   *         NS_ERROR_FAILURE if the directory close failed. 
-   *         It is safe to call this function many times. 
+   *         NS_ERROR_FAILURE if the directory close failed.
+   *         It is safe to call this function many times.
    */
   void close();
 };
 
--- a/xpcom/io/nsIDirectoryService.idl
+++ b/xpcom/io/nsIDirectoryService.idl
@@ -27,17 +27,17 @@ interface nsIDirectoryServiceProvider: n
   * @param persistent   TRUE - The returned file will be cached by Directory
   *                     Service. Subsequent requests for this prop will
   *                     bypass the provider and use the cache.
   *                     FALSE - The provider will be asked for this prop
   *                     each time it is requested.
   *
   * @return             The file represented by the property.
   *
-  */ 
+  */
   nsIFile getFile(in string prop, out boolean persistent);
 };
 
 /**
  * nsIDirectoryServiceProvider2
  *
  * An extension of nsIDirectoryServiceProvider which allows
  * multiple files to be returned for the given key.
@@ -81,23 +81,23 @@ interface nsIDirectoryService: nsISuppor
   * registerProvider
   *
   * Register a provider with the service.
   *
   * @param prov            The service will keep a strong reference
   *                        to this object. It will be released when
   *                        the service is released.
   *
-  */  
+  */
   void registerProvider(in nsIDirectoryServiceProvider prov);
-  
+
  /**
   * unregisterProvider
   *
   * Unregister a provider with the service.
   *
-  * @param prov            
+  * @param prov
   *
-  */  
+  */
   void unregisterProvider(in nsIDirectoryServiceProvider prov);
 };
 
 
--- a/xpcom/io/nsIFile.idl
+++ b/xpcom/io/nsIFile.idl
@@ -98,60 +98,60 @@ interface nsIFile : nsISupports
      *   @param permissions
      *       The unix style octal permissions.  This may
      *       be ignored on systems that do not need to do
      *       permissions.
      */
     [must_use] void create(in unsigned long type, in unsigned long permissions);
 
     /**
-     *  Accessor to the leaf name of the file itself.      
-     *  For the |nativeLeafName| method, the nativeLeafName must 
+     *  Accessor to the leaf name of the file itself.
+     *  For the |nativeLeafName| method, the nativeLeafName must
      *  be in the native filesystem charset.
      */
     attribute AString leafName;
     [noscript] attribute ACString nativeLeafName;
 
     /**
      *  copyTo[Native]
      *
      *  This will copy this file to the specified newParentDir.
      *  If a newName is specified, the file will be renamed.
      *  If 'this' is not created we will return an error
      *  (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST).
      *
-     *  copyTo may fail if the file already exists in the destination 
+     *  copyTo may fail if the file already exists in the destination
      *  directory.
      *
      *  copyTo will NOT resolve aliases/shortcuts during the copy.
      *
      *   @param newParentDir
      *       This param is the destination directory. If the
      *       newParentDir is null, copyTo() will use the parent
      *       directory of this file. If the newParentDir is not
      *       empty and is not a directory, an error will be
-     *       returned (NS_ERROR_FILE_DESTINATION_NOT_DIR). For the 
-     *       |CopyToNative| method, the newName must be in the 
+     *       returned (NS_ERROR_FILE_DESTINATION_NOT_DIR). For the
+     *       |CopyToNative| method, the newName must be in the
      *       native filesystem charset.
      *
      *   @param newName
      *       This param allows you to specify a new name for
      *       the file to be copied. This param may be empty, in
      *       which case the current leaf name will be used.
      */
     void copyTo(in nsIFile newParentDir, in AString newName);
     [noscript] void CopyToNative(in nsIFile newParentDir, in ACString newName);
 
     /**
      *  copyToFollowingLinks[Native]
      *
      *  This function is identical to copyTo with the exception that,
      *  as the name implies, it follows symbolic links.  The XP_UNIX
-     *  implementation always follow symbolic links when copying.  For 
-     *  the |CopyToFollowingLinks| method, the newName must be in the 
+     *  implementation always follow symbolic links when copying.  For
+     *  the |CopyToFollowingLinks| method, the newName must be in the
      *  native filesystem charset.
      */
     void copyToFollowingLinks(in nsIFile newParentDir, in AString newName);
     [noscript] void copyToFollowingLinksNative(in nsIFile newParentDir, in ACString newName);
 
     /**
      *  moveTo[Native]
      *
@@ -170,18 +170,18 @@ interface nsIFile : nsISupports
      *  moveTo will return an error (NS_ERROR_FILE_ACCESS_DENIED) if 'this' is
      *  a directory and the destination directory is not writable.
      *
      *   @param newParentDir
      *       This param is the destination directory. If the
      *       newParentDir is empty, moveTo() will rename the file
      *       within its current directory. If the newParentDir is
      *       not empty and does not name a directory, an error will
-     *       be returned (NS_ERROR_FILE_DESTINATION_NOT_DIR).  For 
-     *       the |moveToNative| method, the newName must be in the 
+     *       be returned (NS_ERROR_FILE_DESTINATION_NOT_DIR).  For
+     *       the |moveToNative| method, the newName must be in the
      *       native filesystem charset.
      *
      *   @param newName
      *       This param allows you to specify a new name for
      *       the file to be moved. This param may be empty, in
      *       which case the current leaf name will be used.
      */
     void moveTo(in nsIFile newParentDir, in AString newName);
@@ -246,17 +246,17 @@ interface nsIFile : nsISupports
      *
      *  target
      *      Find out what the symlink points at.  Will give error
      *      (NS_ERROR_FILE_INVALID_PATH) if not a symlink.
      *
      *  path
      *      Find out what the nsIFile points at.
      *
-     *  Note that the ACString attributes are returned in the 
+     *  Note that the ACString attributes are returned in the
      *  native filesystem charset.
      *
      */
     readonly attribute AString target;
     [noscript] readonly attribute ACString nativeTarget;
     readonly attribute AString path;
     [notxpcom,nostdcall,must_use] PathString nativePath();
 %{C++
@@ -279,17 +279,17 @@ interface nsIFile : nsISupports
     boolean isSymlink();
     /**
      * Not a regular file, not a directory, not a symlink.
      */
     boolean isSpecial();
 
     /**
      *  createUnique
-     *  
+     *
      *  This function will create a new file or directory in the
      *  file system. Any nodes that have not been created or
      *  resolved, will be.  If this file already exists, we try
      *  variations on the leaf name "suggestedName" until we find
      *  one that did not already exist.
      *
      *  If the search for nonexistent files takes too long
      *  (thousands of the variants already exist), we give up and
@@ -333,17 +333,17 @@ interface nsIFile : nsISupports
      *  This routine looks in subdirectories too.
      */
     boolean contains(in nsIFile inFile);
 
     /**
      *  Parent will be null when this is at the top of the volume.
      */
     readonly attribute nsIFile parent;
-    
+
     /**
      *  Returns an enumeration of the elements in a directory. Each
      *  element in the enumeration is an nsIFile.
      *
      *   @throws NS_ERROR_FILE_NOT_DIRECTORY if the current nsIFile does
      *           not specify a directory.
      */
     [binaryname(DirectoryEntriesImpl)]
@@ -357,52 +357,52 @@ interface nsIFile : nsISupports
     %}
 
     /**
      *  initWith[Native]Path
      *
      *  This function will initialize the nsIFile object.  Any
      *  internal state information will be reset.
      *
-     *   @param filePath       
-     *       A string which specifies a full file path to a 
+     *   @param filePath
+     *       A string which specifies a full file path to a
      *       location.  Relative paths will be treated as an
-     *       error (NS_ERROR_FILE_UNRECOGNIZED_PATH).  For 
+     *       error (NS_ERROR_FILE_UNRECOGNIZED_PATH).  For
      *       initWithNativePath, the filePath must be in the native
      *       filesystem charset.
      */
     void initWithPath(in AString filePath);
     [noscript] void initWithNativePath(in ACString filePath);
-    
+
     /**
      *  initWithFile
      *
      *  Initialize this object with another file
      *
      *   @param aFile
      *       the file this becomes equivalent to
      */
     void initWithFile(in nsIFile aFile);
-    
+
     /**
      *  followLinks
      *
      *  This attribute will determine if the nsLocalFile will auto
      *  resolve symbolic links.  By default, this value will be false
      *  on all non unix systems.  On unix, this attribute is effectively
-     *  a noop.  
+     *  a noop.
      */
-    attribute boolean followLinks;  
+    attribute boolean followLinks;
 
     /**
      * Flag for openNSPRFileDesc(), to hint to the OS that the file will be
      * read sequentially with agressive readahead.
      */
     const unsigned long OS_READAHEAD = 0x40000000;
-    
+
     /**
      * Flag for openNSPRFileDesc(). Deprecated and unreliable!
      * Instead use NS_OpenAnonymousTemporaryFile() to create a temporary
      * file which will be deleted upon close!
      */
     const unsigned long DELETE_ON_CLOSE = 0x80000000;
 
     /**
@@ -439,22 +439,22 @@ interface nsIFile : nsISupports
     /**
      *  appendRelative[Native]Path
      *
      *  Append a relative path to the current path of the nsIFile object.
      *
      *   @param relativeFilePath
      *       relativeFilePath is a native relative path. For security reasons,
      *       this cannot contain .. or cannot start with a directory separator.
-     *       For the |appendRelativeNativePath| method, the relativeFilePath 
+     *       For the |appendRelativeNativePath| method, the relativeFilePath
      *       must be in the native filesystem charset.
      */
     void appendRelativePath(in AString relativeFilePath);
     [noscript] void appendRelativeNativePath(in ACString relativeFilePath);
-    
+
     /**
      *  Accessor to a null terminated string which will specify
      *  the file in a persistent manner for disk storage.
      *
      *  The character set of this attribute is undefined.  DO NOT TRY TO
      *  INTERPRET IT AS HUMAN READABLE TEXT!
      */
     [must_use] attribute ACString persistentDescriptor;
--- a/xpcom/io/nsIInputStream.idl
+++ b/xpcom/io/nsIInputStream.idl
@@ -54,46 +54,46 @@ native nsWriteSegmentFun(nsWriteSegmentF
  * NOTE: blocking input streams are often read on a background thread to avoid
  * locking up the main application thread.  For this reason, it is generally
  * the case that a blocking input stream should be implemented using thread-
  * safe AddRef and Release.
  */
 [scriptable, uuid(53cdbc97-c2d7-4e30-b2c3-45b2ee79db18)]
 interface nsIInputStream : nsISupports
 {
-    /** 
+    /**
      * Close the stream.  This method causes subsequent calls to Read and
      * ReadSegments to return 0 bytes read to indicate end-of-file.  Any
      * subsequent calls to Available should throw NS_BASE_STREAM_CLOSED.
      */
     void close();
 
     /**
      * Determine number of bytes available in the stream.  A non-blocking
      * stream that does not yet have any data to read should return 0 bytes
      * from this method (i.e., it must not throw the NS_BASE_STREAM_WOULD_BLOCK
      * exception).
-     * 
+     *
      * In addition to the number of bytes available in the stream, this method
      * also informs the caller of the current status of the stream.  A stream
      * that is closed will throw an exception when this method is called.  That
      * enables the caller to know the condition of the stream before attempting
      * to read from it.  If a stream is at end-of-file, but not closed, then
      * this method returns 0 bytes available.  (Note: some nsIInputStream
      * implementations automatically close when eof is reached; some do not).
      *
      * @return number of bytes currently available in the stream.
      *
      * @throws NS_BASE_STREAM_CLOSED if the stream is closed normally.
      * @throws <other-error> if the stream is closed due to some error
      *   condition
      */
     unsigned long long available();
 
-    /** 
+    /**
      * Read data from the stream.
      *
      * @param aBuf the buffer into which the data is to be read
      * @param aCount the maximum number of bytes to be read
      *
      * @return number of bytes read (may be less than aCount).
      * @return 0 if reached end-of-file
      *
@@ -108,17 +108,17 @@ interface nsIInputStream : nsISupports
     /**
      * Low-level read method that provides access to the stream's underlying
      * buffer.  The writer function may be called multiple times for segmented
      * buffers.  ReadSegments is expected to keep calling the writer until
      * either there is nothing left to read or the writer returns an error.
      * ReadSegments should not call the writer with zero bytes to consume.
      *
      * @param aWriter the "consumer" of the data to be read
-     * @param aClosure opaque parameter passed to writer 
+     * @param aClosure opaque parameter passed to writer
      * @param aCount the maximum number of bytes to be read
      *
      * @return number of bytes read (may be less than aCount)
      * @return 0 if reached end-of-file (or if aWriter refused to consume data)
      *
      * @throws NS_BASE_STREAM_WOULD_BLOCK if reading from the input stream would
      *   block the calling thread (non-blocking mode only)
      * @throws NS_ERROR_NOT_IMPLEMENTED if the stream has no underlying buffer
--- a/xpcom/io/nsIInputStreamTee.idl
+++ b/xpcom/io/nsIInputStreamTee.idl
@@ -13,30 +13,30 @@ interface nsIEventTarget;
  * reads the specified amount of data from its |source| and copies that
  * data to its |sink|.  |sink| must be a blocking output stream.
  */
 [scriptable, uuid(90a9d790-3bca-421e-a73b-98f68e13c917)]
 interface nsIInputStreamTee : nsIInputStream
 {
     attribute nsIInputStream source;
     attribute nsIOutputStream sink;
-    
+
     /**
      * If |eventTarget| is set, copying to sink is done asynchronously using
      * the event-target (e.g. a thread). If |eventTarget| is not set, copying
      * to sink happens synchronously while reading from the source.
      */
     attribute nsIEventTarget eventTarget;
 };
 
 %{C++
 // factory methods
 extern nsresult
 NS_NewInputStreamTee(nsIInputStream **tee, // read from this input stream
                      nsIInputStream *source,
                      nsIOutputStream *sink);
-                     
+
 extern nsresult
 NS_NewInputStreamTeeAsync(nsIInputStream **tee, // read from this input stream
                      nsIInputStream *source,
                      nsIOutputStream *sink,
                      nsIEventTarget *eventTarget);
 %}
--- a/xpcom/io/nsILineInputStream.idl
+++ b/xpcom/io/nsILineInputStream.idl
@@ -5,17 +5,17 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 [scriptable, uuid(c97b466c-1e6e-4773-a4ab-2b2b3190a7a6)]
 interface nsILineInputStream : nsISupports
 {
   /**
-   * Read a single line from the stream, where a line is a 
+   * Read a single line from the stream, where a line is a
    * possibly zero length sequence of 8bit chars terminated by a
    * CR, LF, CRLF, LFCR, or eof.
    * The line terminator is not returned.
    * @retval false
    *         End of file. This line is the last line of the file
    *         (aLine is valid).
    * @retval true
    *         The file contains further lines.
--- a/xpcom/io/nsILocalFileMac.idl
+++ b/xpcom/io/nsILocalFileMac.idl
@@ -53,55 +53,55 @@ interface nsILocalFileMac : nsIFile
     * NOTE: Observes the state of the followLinks attribute.
     * If the file object is an alias and followLinks is TRUE, returns
     * the target of the alias. If followLinks is FALSE, returns
     * the unresolved alias file.
     *
     * NOTE: Supported only for XP_MACOSX
     *
     * @return
-    *  
-    */ 
+    *
+    */
   [noscript] CFURLRef getCFURL();
- 
+
     /**
     * getFSRef
     *
     * Returns the FSRef of the file object.
     *
     * NOTE: Observes the state of the followLinks attribute.
     * If the file object is an alias and followLinks is TRUE, returns
     * the target of the alias. If followLinks is FALSE, returns
     * the unresolved alias file.
     *
     * NOTE: Supported only for XP_MACOSX
     *
     * @return
-    *  
-    */ 
+    *
+    */
   [noscript] FSRef getFSRef();
-   
+
    /**
     * getFSSpec
     *
     * Returns the FSSpec of the file object.
     *
     * NOTE: Observes the state of the followLinks attribute.
     * If the file object is an alias and followLinks is TRUE, returns
     * the target of the alias. If followLinks is FALSE, returns
     * the unresolved alias file.
     *
     * @return
-    *  
-    */ 
+    *
+    */
   [noscript] FSSpec getFSSpec();
 
    /**
     * fileSizeWithResFork
-    * 
+    *
     * Returns the combined size of both the data fork and the resource
     * fork (if present) rather than just the size of the data fork
     * as returned by GetFileSize()
     *
     */
    readonly attribute int64_t fileSizeWithResFork;
 
    /**
@@ -143,17 +143,17 @@ interface nsILocalFileMac : nsIFile
     * returns true if a directory is determined to be a package under Mac OS 9/X
     *
     */
    boolean isPackage();
 
    /**
     * bundleDisplayName
     *
-    * returns the display name of the application bundle (usually the human 
+    * returns the display name of the application bundle (usually the human
     * readable name of the application)
     */
    readonly attribute AString bundleDisplayName;
 
    /**
     * bundleIdentifier
     *
     * returns the identifier of the bundle
--- a/xpcom/io/nsILocalFileWin.idl
+++ b/xpcom/io/nsILocalFileWin.idl
@@ -68,17 +68,17 @@ interface nsILocalFileWin : nsIFile
      * WFA_READWRITE: Used to clear the readonly attribute.
      */
     const unsigned long WFA_READWRITE = 4;
 
     /**
      * fileAttributesWin
      *
      * Set or get windows specific file attributes.
-     * 
+     *
      * Throws NS_ERROR_FILE_INVALID_PATH for an invalid file.
      * Throws NS_ERROR_FAILURE if the set or get fails.
      */
     attribute unsigned long fileAttributesWin;
 
     /**
      * Identical to nsIFile::openNSPRFileDesc except it also uses the
      * FILE_SHARE_DELETE flag.
--- a/xpcom/io/nsIOutputStream.idl
+++ b/xpcom/io/nsIOutputStream.idl
@@ -5,17 +5,17 @@
 
 #include "nsISupports.idl"
 
 interface nsIOutputStream;
 interface nsIInputStream;
 
 %{C++
 /**
- * The signature for the reader function passed to WriteSegments. This 
+ * The signature for the reader function passed to WriteSegments. This
  * is the "provider" of data that gets written into the stream's buffer.
  *
  * @param aOutStream stream being written to
  * @param aClosure opaque parameter passed to WriteSegments
  * @param aToSegment pointer to memory owned by the output stream
  * @param aFromOffset amount already written (since WriteSegments was called)
  * @param aCount length of toSegment
  * @param aReadCount number of bytes written
@@ -48,28 +48,28 @@ native nsReadSegmentFun(nsReadSegmentFun
  * NOTE: blocking output streams are often written to on a background thread to
  * avoid locking up the main application thread.  For this reason, it is
  * generally the case that a blocking output stream should be implemented using
  * thread- safe AddRef and Release.
  */
 [scriptable, uuid(0d0acd2a-61b4-11d4-9877-00c04fa0cf4a)]
 interface nsIOutputStream : nsISupports
 {
-    /** 
+    /**
      * Close the stream. Forces the output stream to flush any buffered data.
      *
-     * @throws NS_BASE_STREAM_WOULD_BLOCK if unable to flush without blocking 
+     * @throws NS_BASE_STREAM_WOULD_BLOCK if unable to flush without blocking
      *   the calling thread (non-blocking mode only)
      */
     void close();
 
     /**
      * Flush the stream.
      *
-     * @throws NS_BASE_STREAM_WOULD_BLOCK if unable to flush without blocking 
+     * @throws NS_BASE_STREAM_WOULD_BLOCK if unable to flush without blocking
      *   the calling thread (non-blocking mode only)
      */
     void flush();
 
     /**
      * Write data into the stream.
      *
      * @param aBuf the buffer containing the data to be written
--- a/xpcom/io/nsIPipe.idl
+++ b/xpcom/io/nsIPipe.idl
@@ -23,17 +23,17 @@ interface nsIAsyncOutputStream;
  * with NS_BASE_STREAM_WOULD_BLOCK as the error condition.  However, if that
  * pipe's input end is blocking, then the read call will not return until the
  * pipe has data or until the pipe is closed.  This example presumes that the
  * pipe is being filled asynchronously on some background thread.
  *
  * The pipe supports nsIAsyncInputStream and nsIAsyncOutputStream, which give
  * the user of a non-blocking pipe the ability to wait for the pipe to become
  * ready again.  For example, in the case of an empty non-blocking pipe, the
- * user can call AsyncWait on the input end of the pipe to be notified when 
+ * user can call AsyncWait on the input end of the pipe to be notified when
  * the pipe has data to read (or when the pipe becomes closed).
  *
  * NS_NewPipe2 and NS_NewPipe provide convenient pipe constructors.  In most
  * cases nsIPipe is not actually used.  It is usually enough to just get
  * references to the pipe's input and output end.  In which case, the pipe is
  * automatically closed when the respective pipe ends are released.
  */
 [scriptable, uuid(25d0de93-685e-4ea4-95d3-d884e31df63c)]
@@ -72,31 +72,31 @@ interface nsIPipe : nsISupports
      */
     [must_use] readonly attribute nsIAsyncOutputStream outputStream;
 };
 
 /**
  * XXX this interface doesn't really belong in here.  It is here because
  * currently nsPipeInputStream is the only implementation of this interface.
  */
-[scriptable, uuid(8C39EF62-F7C9-11d4-98F5-001083010E9B)] 
+[scriptable, uuid(8C39EF62-F7C9-11d4-98F5-001083010E9B)]
 interface nsISearchableInputStream : nsISupports
 {
     /**
      * Searches for a string in the input stream. Since the stream has a notion
-     * of EOF, it is possible that the string may at some time be in the 
+     * of EOF, it is possible that the string may at some time be in the
      * buffer, but is is not currently found up to some offset. Consequently,
      * both the found and not found cases return an offset:
      *    if found, return offset where it was found
      *    if not found, return offset of the first byte not searched
      * In the case the stream is at EOF and the string is not found, the first
      * byte not searched will correspond to the length of the buffer.
      */
-    void search(in string forString, 
-                in boolean ignoreCase, 
+    void search(in string forString,
+                in boolean ignoreCase,
                 out boolean found,
                 out unsigned long offsetSearchedTo);
 };
 
 %{C++
 
 class nsIInputStream;
 class nsIOutputStream;
--- a/xpcom/io/nsISafeOutputStream.idl
+++ b/xpcom/io/nsISafeOutputStream.idl
@@ -4,17 +4,17 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 /**
  * This interface provides a mechanism to control an output stream
  * that takes care not to overwrite an existing target until it is known
  * that all writes to the destination succeeded.
- * 
+ *
  * An object that supports this interface is intended to also support
  * nsIOutputStream.
  *
  * For example, a file output stream that supports this interface writes to
  * a temporary file, and moves it over the original file when |finish| is
  * called only if the stream can be successfully closed and all writes
  * succeeded.  If |finish| is called but something went wrong during
  * writing, it will delete the temporary file and not touch the original.
--- a/xpcom/io/nsIScriptableInputStream.idl
+++ b/xpcom/io/nsIScriptableInputStream.idl
@@ -8,52 +8,52 @@
 interface nsIInputStream;
 
 /**
  * nsIScriptableInputStream provides scriptable access to an nsIInputStream
  * instance.
  */
 [scriptable, uuid(3fce9015-472a-4080-ac3e-cd875dbe361e)]
 interface nsIScriptableInputStream : nsISupports
-{ 
-    /** 
-     * Closes the stream. 
+{
+    /**
+     * Closes the stream.
      */
     void close();
 
     /**
-     * Wrap the given nsIInputStream with this nsIScriptableInputStream. 
+     * Wrap the given nsIInputStream with this nsIScriptableInputStream.
      *
-     * @param aInputStream parameter providing the stream to wrap 
-     */ 
-    void init(in nsIInputStream aInputStream); 
+     * @param aInputStream parameter providing the stream to wrap
+     */
+    void init(in nsIInputStream aInputStream);
 
     /**
-     * Return the number of bytes currently available in the stream 
+     * Return the number of bytes currently available in the stream
      *
-     * @return the number of bytes 
+     * @return the number of bytes
      *
      * @throws NS_BASE_STREAM_CLOSED if called after the stream has been closed
-     */ 
-    unsigned long long available(); 
+     */
+    unsigned long long available();
 
     /**
      * Read data from the stream.
      *
      * WARNING: If the data contains a null byte, then this method will return
      * a truncated string.
      *
-     * @param aCount the maximum number of bytes to read 
+     * @param aCount the maximum number of bytes to read
      *
      * @return the data, which will be an empty string if the stream is at EOF.
      *
      * @throws NS_BASE_STREAM_CLOSED if called after the stream has been closed
      * @throws NS_ERROR_NOT_INITIALIZED if init was not called
-     */ 
-    string read(in unsigned long aCount); 
+     */
+    string read(in unsigned long aCount);
 
     /**
      * Read data from the stream, including NULL bytes.
      *
      * @param aCount the maximum number of bytes to read.
      *
      * @return the data from the stream, which will be an empty string if EOF
      *         has been reached.
--- a/xpcom/io/nsISeekableStream.idl
+++ b/xpcom/io/nsISeekableStream.idl
@@ -4,55 +4,55 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 
 #include "nsITellableStream.idl"
 
 /*
  * nsISeekableStream
  *
- * Note that a stream might not implement all methods (e.g., a readonly stream 
+ * Note that a stream might not implement all methods (e.g., a readonly stream
  * won't implement setEOF)
  */
 
 #include "nsISupports.idl"
 
 [scriptable, uuid(8429d350-1040-4661-8b71-f2a6ba455980)]
 interface nsISeekableStream : nsITellableStream
 {
-    /* 
-     * Sets the stream pointer to the value of the 'offset' parameter 
+    /*
+     * Sets the stream pointer to the value of the 'offset' parameter
      */
     const int32_t NS_SEEK_SET = 0;
 
-    /*  
-     * Sets the stream pointer to its current location plus the value 
-     * of the offset parameter. 
+    /*
+     * Sets the stream pointer to its current location plus the value
+     * of the offset parameter.
      */
     const int32_t NS_SEEK_CUR = 1;
 
-    /* 
-     * Sets the stream pointer to the size of the stream plus the value 
-     * of the offset parameter. 
+    /*
+     * Sets the stream pointer to the size of the stream plus the value
+     * of the offset parameter.
      */
     const int32_t NS_SEEK_END = 2;
 
     /**
      *  seek
      *
      *  This method moves the stream offset of the steam implementing this
      *  interface.
      *
      *   @param whence specifies how to interpret the 'offset' parameter in
      *                 setting the stream offset associated with the implementing
      *                 stream.
-     *     
+     *
      *   @param offset specifies a value, in bytes, that is used in conjunction
-     *                 with the 'whence' parameter to set the stream offset of the 
-     *                 implementing stream.  A negative value causes seeking in 
+     *                 with the 'whence' parameter to set the stream offset of the
+     *                 implementing stream.  A negative value causes seeking in
      *                 the reverse direction.
      *
      *   @throws NS_BASE_STREAM_CLOSED if called on a closed stream.
      */
     void seek(in long whence, in long long offset);
 
     /**
      *  setEOF
--- a/xpcom/io/nsIStorageStream.idl
+++ b/xpcom/io/nsIStorageStream.idl
@@ -41,17 +41,17 @@ interface nsIStorageStream : nsISupports