From 549203922505d1d70cac12f0775f3a1174c68a8f Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Wed, 1 Oct 2008 23:49:45 -0700 Subject: [PATCH] Bug 458167 - (comments-only changes) Grammar Nazi Vol1: s/it's/its/ for the posessive version of the word, and a few other misc comment-typos, in these directories: accessible browser config profile rdf toolkit tools xpcom xpfe --- accessible/accessible-docs.html | 4 ++-- accessible/public/nsIAccessibilityService.idl | 2 +- accessible/src/base/nsAccessible.cpp | 14 +++++++------- accessible/src/base/nsCaretAccessible.h | 2 +- accessible/src/xul/nsXULFormControlAccessible.cpp | 6 +++--- accessible/src/xul/nsXULTabAccessible.cpp | 2 +- browser/base/content/browser.js | 2 +- browser/base/content/pageinfo/pageInfo.js | 2 +- browser/components/nsBrowserContentHandler.js | 2 +- browser/components/places/content/treeView.js | 4 ++-- .../places/tests/browser/browser_425884.js | 2 +- .../sessionstore/src/nsSessionStartup.js | 2 +- .../components/sessionstore/src/nsSessionStore.js | 4 ++-- config/configobj.py | 2 +- config/nsinstall.py | 2 +- profile/pref-migrator/src/nsPrefMigration.cpp | 2 +- rdf/base/idl/nsIRDFRemoteDataSource.idl | 2 +- rdf/base/idl/nsIRDFResource.idl | 2 +- rdf/base/src/nsRDFService.cpp | 2 +- .../components/downloads/public/nsIDownload.idl | 2 +- .../downloads/test/browser/browser_bug414214.js | 2 +- .../src/nsParentalControlsServiceWin.cpp | 4 ++-- .../components/passwordmgr/src/storage-Legacy.js | 2 +- .../places/public/nsIAnnotationService.idl | 2 +- toolkit/components/places/src/nsNavBookmarks.cpp | 2 +- toolkit/components/places/src/nsNavHistory.cpp | 2 +- .../components/places/src/nsNavHistoryExpire.cpp | 2 +- toolkit/components/places/src/utils.js | 2 +- .../components/places/tests/chrome/test_371798.xul | 2 +- .../places/tests/queries/head_queries.js | 2 +- .../places/tests/unit/test_expiration.js | 2 +- toolkit/components/printing/content/printUtils.js | 2 +- toolkit/content/customizeToolbar.js | 6 +++--- .../extensions/public/nsIExtensionManager.idl | 2 +- .../mozapps/extensions/src/nsBlocklistService.js | 2 +- .../extensions/src/nsExtensionManager.js.in | 2 +- toolkit/mozapps/installer/packager.mk | 2 +- toolkit/mozapps/shared/src/badCertHandler.js | 2 +- toolkit/mozapps/update/src/updater/updater.cpp | 2 +- tools/codesighs/msmap2tsv.c | 2 +- tools/footprint/linux-gdf.mk | 2 +- tools/footprint/win32-gdf.mk | 2 +- tools/reorder/grope.cpp | 2 +- tools/tests/unix/smoke.pl | 2 +- tools/trace-malloc/spacetrace.c | 6 +++--- xpcom/base/nsInterfaceRequestorAgg.h | 2 +- xpcom/components/nsCategoryManager.h | 2 +- xpcom/obsolete/nsFileSpec.h | 2 +- .../xptinfo/src/xptiInterfaceInfoManager.cpp | 2 +- xpcom/sample/nsSample.h | 2 +- xpcom/string/public/nsTSubstring.h | 2 +- xpcom/typelib/xpidl/xpidl_util.c | 6 +++--- xpfe/appshell/public/nsIXULBrowserWindow.idl | 2 +- xpfe/bootstrap/appleevents/nsAEGenericClass.cpp | 2 +- .../download-manager/public/nsIDownload.idl | 2 +- 55 files changed, 73 insertions(+), 73 deletions(-) diff --git a/accessible/accessible-docs.html b/accessible/accessible-docs.html index 1f0fb95dce8e..91c78b0603c1 100644 --- a/accessible/accessible-docs.html +++ b/accessible/accessible-docs.html @@ -469,7 +469,7 @@ OBJID_WINDOW

MSAA has a well deseved reputation for quirkiness. It is not "plug and play", and will take a lot of testing/refinement before your solution works with any product. Here are -some of it's quirks and some solutions/workarounds:
+some of its quirks and some solutions/workarounds:

MSAA can be crash prone
@@ -495,7 +495,7 @@ accessibility object should be called whenever the document or UI object it refers to goes away. The easiest way to do that is to keep a pointer to an accessible in each internal UI object. If that pointer is non-null, then there is an accessible object for it. Whenever the UI -object is destroyed, shutdown it's accessible object as well. In +object is destroyed, shutdown its accessible object as well. In Gecko/Mozilla we are not allowed to keep this extra pointer for each accessible object, so when accessibility is turned on we use a hash table to cache these objects. Such a cache must be kept in perfect sync diff --git a/accessible/public/nsIAccessibilityService.idl b/accessible/public/nsIAccessibilityService.idl index 23768465f022..45370574497a 100644 --- a/accessible/public/nsIAccessibilityService.idl +++ b/accessible/public/nsIAccessibilityService.idl @@ -86,7 +86,7 @@ interface nsIAccessibilityService : nsIAccessibleRetrieval /** * Invalidate the accessibility cache associated with aPresShell, for accessibles - * that were generated for aContainerContent and it's subtree. + * that were generated for aContainerContent and its subtree. * The container content node for the change is passed in, rather than the * changed presentation for the content node itself. * @param aPresShell The presShell where changes occured diff --git a/accessible/src/base/nsAccessible.cpp b/accessible/src/base/nsAccessible.cpp index 4e2c732c5672..f9f44244adb7 100644 --- a/accessible/src/base/nsAccessible.cpp +++ b/accessible/src/base/nsAccessible.cpp @@ -538,7 +538,7 @@ NS_IMETHODIMP nsAccessible::Shutdown() mNextSibling = nsnull; // Invalidate the child count and pointers to other accessibles, also make - // sure none of it's children point to this parent + // sure none of its children point to this parent InvalidateChildren(); if (mParent) { nsCOMPtr privateParent(do_QueryInterface(mParent)); @@ -1975,7 +1975,7 @@ nsresult nsAccessible::GetXULName(nsAString& aLabel, PRBool aCanAggregateSubtree // Check if label's value attribute is used if (xulLabel && NS_SUCCEEDED(xulLabel->GetValue(label)) && label.IsEmpty()) { // If no value attribute, a non-empty label must contain - // children that define it's text -- possibly using HTML + // children that define its text -- possibly using HTML AppendFlatStringFromSubtree(labelContent, &label); } } @@ -2653,7 +2653,7 @@ nsAccessible::GetValue(nsAString& aValue) if (!aValue.IsEmpty()) return NS_OK; - // Check if it's an simple xlink. + // Check if it's a simple xlink. if (nsAccUtils::IsXLink(content)) { nsCOMPtr presShell(do_QueryReferent(mWeakShell)); if (presShell) @@ -2788,7 +2788,7 @@ nsAccessible::GetNumActions(PRUint8 *aNumActions) if (!content) return NS_OK; - // Check if it's an simple xlink. + // Check if it's a simple xlink. if (nsAccUtils::IsXLink(content)) { *aNumActions = 1; return NS_OK; @@ -2816,7 +2816,7 @@ nsAccessible::GetActionName(PRUint8 aIndex, nsAString& aName) if (IsDefunct()) return NS_ERROR_FAILURE; - // Check if it's simple xlink. + // Check if it's a simple xlink. nsCOMPtr content(do_QueryInterface(mDOMNode)); if (nsAccUtils::IsXLink(content)) { aName.AssignLiteral("jump"); @@ -2859,7 +2859,7 @@ nsAccessible::DoAction(PRUint8 aIndex) PRBool doAction = PR_FALSE; - // Check if it's simple xlink. + // Check if it's a simple xlink. nsCOMPtr content(do_QueryInterface(mDOMNode)); if (nsAccUtils::IsXLink(content)) doAction = PR_TRUE; @@ -3454,7 +3454,7 @@ nsAccessible::GetURI(PRInt32 aIndex, nsIURI **aURI) if (aIndex != 0) return NS_ERROR_INVALID_ARG; - // Check if it's simple xlink. + // Check if it's a simple xlink. nsCOMPtr content(do_QueryInterface(mDOMNode)); if (nsAccUtils::IsXLink(content)) { nsAutoString href; diff --git a/accessible/src/base/nsCaretAccessible.h b/accessible/src/base/nsCaretAccessible.h index 9fcc96343b5e..40726a154546 100644 --- a/accessible/src/base/nsCaretAccessible.h +++ b/accessible/src/base/nsCaretAccessible.h @@ -136,7 +136,7 @@ private: nsCOMPtr mCurrentControl; // Selection controller for the currently focused control // Info for the the last selection event. - // If it was on a control, then it's control's selection. Otherwise, it's for + // If it was on a control, then its control's selection. Otherwise, it's for // a document where the selection changed. nsCOMPtr mLastUsedSelection; // Weak ref to nsISelection nsCOMPtr mLastTextAccessible; diff --git a/accessible/src/xul/nsXULFormControlAccessible.cpp b/accessible/src/xul/nsXULFormControlAccessible.cpp index 10c37c098fa2..01578140c31d 100644 --- a/accessible/src/xul/nsXULFormControlAccessible.cpp +++ b/accessible/src/xul/nsXULFormControlAccessible.cpp @@ -92,7 +92,7 @@ NS_IMETHODIMP nsXULButtonAccessible::GetActionName(PRUint8 aIndex, nsAString& aN } /** - * Tell the button to do it's action + * Tell the button to do its action */ NS_IMETHODIMP nsXULButtonAccessible::DoAction(PRUint8 index) { @@ -271,7 +271,7 @@ NS_IMETHODIMP nsXULDropmarkerAccessible::GetActionName(PRUint8 aIndex, nsAString } /** - * Tell the Dropmarker to do it's action + * Tell the Dropmarker to do its action */ NS_IMETHODIMP nsXULDropmarkerAccessible::DoAction(PRUint8 index) { @@ -893,7 +893,7 @@ NS_IMETHODIMP nsXULTextFieldAccessible::GetActionName(PRUint8 aIndex, nsAString& } /** - * Tell the button to do it's action + * Tell the button to do its action */ NS_IMETHODIMP nsXULTextFieldAccessible::DoAction(PRUint8 index) { diff --git a/accessible/src/xul/nsXULTabAccessible.cpp b/accessible/src/xul/nsXULTabAccessible.cpp index 45bf39b2ff54..73b3a241d085 100644 --- a/accessible/src/xul/nsXULTabAccessible.cpp +++ b/accessible/src/xul/nsXULTabAccessible.cpp @@ -71,7 +71,7 @@ NS_IMETHODIMP nsXULTabAccessible::GetActionName(PRUint8 aIndex, nsAString& aName return NS_ERROR_INVALID_ARG; } -/** Tell the tab to do it's action */ +/** Tell the tab to do its action */ NS_IMETHODIMP nsXULTabAccessible::DoAction(PRUint8 index) { if (index == eAction_Switch) { diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 4771419c245b..1e8f45ad3615 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -4264,7 +4264,7 @@ function displaySecurityInfo() * @param commandID a string identifying the sidebar to toggle; see the * note below. (Optional if a sidebar is already open.) * @param forceOpen boolean indicating whether the sidebar should be - * opened regardless of it's current state (optional). + * opened regardless of its current state (optional). * @note * We expect to find a xul:broadcaster element with the specified ID. * The following attributes on that element may be used and/or modified: diff --git a/browser/base/content/pageinfo/pageInfo.js b/browser/base/content/pageinfo/pageInfo.js index 86297d65cfd9..f8ef5f448d98 100644 --- a/browser/base/content/pageinfo/pageInfo.js +++ b/browser/base/content/pageinfo/pageInfo.js @@ -258,7 +258,7 @@ var onProcessFrame = [ ]; var onProcessElement = [ ]; // These functions are called once when all the elements in all of the target -// document (and all of it's subframes, if any) have been processed +// document (and all of its subframes, if any) have been processed var onFinished = [ ]; // These functions are called once when the Page Info window is closed. diff --git a/browser/components/nsBrowserContentHandler.js b/browser/components/nsBrowserContentHandler.js index 27c60cc3ebd2..bef080b70917 100644 --- a/browser/components/nsBrowserContentHandler.js +++ b/browser/components/nsBrowserContentHandler.js @@ -143,7 +143,7 @@ function needHomepageOverride(prefb) { } // Copies a pref override file into the user's profile pref-override folder, -// and then tells the pref service to reload it's default prefs. +// and then tells the pref service to reload its default prefs. function copyPrefOverride() { try { var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"] diff --git a/browser/components/places/content/treeView.js b/browser/components/places/content/treeView.js index 26ac4b482f2e..0fb14efe8f84 100644 --- a/browser/components/places/content/treeView.js +++ b/browser/components/places/content/treeView.js @@ -567,7 +567,7 @@ PlacesTreeView.prototype = { // Need to redraw the rows around this one because session boundaries // may have changed. For example, if we add a page to a session, the - // previous page will need to be redrawn because it's session border + // previous page will need to be redrawn because its session border // will disappear. if (this._showSessions) { if (newViewIndex > 0) @@ -606,7 +606,7 @@ PlacesTreeView.prototype = { /** * THIS FUNCTION DOES NOT HANDLE cases where a collapsed node is being * removed but the node it is collapsed with is not being removed (this then - * just swap out the removee with it's collapsing partner). The only time + * just swap out the removee with its collapsing partner). The only time * when we really remove things is when deleting URIs, which will apply to * all collapsees. This function is called sometimes when resorting items. * However, we won't do this when sorted by date because dates will never diff --git a/browser/components/places/tests/browser/browser_425884.js b/browser/components/places/tests/browser/browser_425884.js index 66d894f2f563..373e56e00598 100644 --- a/browser/components/places/tests/browser/browser_425884.js +++ b/browser/components/places/tests/browser/browser_425884.js @@ -66,7 +66,7 @@ function test() { testRootNode.containerOpen = true; is(testRootNode.childCount, 0, "confirm test root node is a container, and is empty"); - // create folder A, fill it, validate it's contents + // create folder A, fill it, validate its contents var folderAId = PlacesUtils.bookmarks.createFolder(testRootId, "A", -1); populate(folderAId); var folderANode = PlacesUtils.getFolderContents(folderAId).root; diff --git a/browser/components/sessionstore/src/nsSessionStartup.js b/browser/components/sessionstore/src/nsSessionStartup.js index 79511507869f..54dae5c8b81d 100644 --- a/browser/components/sessionstore/src/nsSessionStartup.js +++ b/browser/components/sessionstore/src/nsSessionStartup.js @@ -49,7 +49,7 @@ # * The session file stores a session.state property, that # * indicates whether the browser is currently running. When the browser shuts # * down, the field is changed to "stopped". At startup, this field is read, and -# * if it's value is "running", then it's assumed that the browser had previously +# * if its value is "running", then it's assumed that the browser had previously # * crashed, or at the very least that something bad happened, and that we should # * restore the session. # * diff --git a/browser/components/sessionstore/src/nsSessionStore.js b/browser/components/sessionstore/src/nsSessionStore.js index 149b585ca54f..7f5d53eb23fd 100644 --- a/browser/components/sessionstore/src/nsSessionStore.js +++ b/browser/components/sessionstore/src/nsSessionStore.js @@ -40,7 +40,7 @@ * * Overview * This service keeps track of a user's session, storing the various bits - * required to return the browser to it's current state. The relevant data is + * required to return the browser to its current state. The relevant data is * stored in memory, and is periodically saved to disk in a file in the * profile directory. The service is started at first window load, in * delayedStartup, and will restore the session from the data received from @@ -567,7 +567,7 @@ SessionStoreService.prototype = { }, /** - * When a tab closes, collect it's properties + * When a tab closes, collect its properties * @param aWindow * Window reference * @param aTab diff --git a/config/configobj.py b/config/configobj.py index 8051f6482264..a60cff89127d 100644 --- a/config/configobj.py +++ b/config/configobj.py @@ -796,7 +796,7 @@ class Section(dict): Note: if ``call_on_sections`` is ``True`` then - on encountering a subsection, *first* the function is called for the *whole* subsection, - and then recurses into it's members. This means your function must be + and then recurses into its members. This means your function must be able to handle strings, dictionaries and lists. This allows you to change the key of subsections as well as for ordinary members. The return value when called on the whole subsection has to be discarded. diff --git a/config/nsinstall.py b/config/nsinstall.py index 6a00ebe9fc26..fd4e2531d605 100755 --- a/config/nsinstall.py +++ b/config/nsinstall.py @@ -38,7 +38,7 @@ # This is a partial python port of nsinstall. # It's intended to be used when there's no natively compile nsinstall # available, and doesn't intend to be fully equivalent. -# It's major use is for l10n repackaging on systems that don't have +# Its major use is for l10n repackaging on systems that don't have # a full build environment set up. # The basic limitation is, it doesn't even try to link and ignores # all related options. diff --git a/profile/pref-migrator/src/nsPrefMigration.cpp b/profile/pref-migrator/src/nsPrefMigration.cpp index d9f6f1d27299..5e85c0502b3c 100644 --- a/profile/pref-migrator/src/nsPrefMigration.cpp +++ b/profile/pref-migrator/src/nsPrefMigration.cpp @@ -2273,7 +2273,7 @@ nsPrefMigration::DetermineOldPath(nsIFileSpec *profilePath, const char *oldPathN we'll also be converting: Please make sure that any pref that contains native characters - in it's value is not included in this list as we do not want to + in its value is not included in this list as we do not want to convert them into UTF-8 format. Prefs are being get and set in a unicode format (FileXPref) now and there is no need for conversion of those prefs. diff --git a/rdf/base/idl/nsIRDFRemoteDataSource.idl b/rdf/base/idl/nsIRDFRemoteDataSource.idl index bce81bb4a807..f514fe92c5c8 100644 --- a/rdf/base/idl/nsIRDFRemoteDataSource.idl +++ b/rdf/base/idl/nsIRDFRemoteDataSource.idl @@ -67,7 +67,7 @@ interface nsIRDFRemoteDataSource : nsISupports void Refresh(in boolean aBlocking); /** - * Request that a data source write it's contents out to + * Request that a data source write its contents out to * permanent storage, if applicable. */ void Flush(); diff --git a/rdf/base/idl/nsIRDFResource.idl b/rdf/base/idl/nsIRDFResource.idl index c95f71f81321..1b284ba73f30 100644 --- a/rdf/base/idl/nsIRDFResource.idl +++ b/rdf/base/idl/nsIRDFResource.idl @@ -66,7 +66,7 @@ interface nsIRDFResource : nsIRDFNode { /** * This method is called by the nsIRDFService after constructing - * a resource object to initialize it's URI. You would not normally + * a resource object to initialize its URI. You would not normally * call this method directly */ void Init(in string uri); diff --git a/rdf/base/src/nsRDFService.cpp b/rdf/base/src/nsRDFService.cpp index 646f51ed7d34..0f36417e0a05 100644 --- a/rdf/base/src/nsRDFService.cpp +++ b/rdf/base/src/nsRDFService.cpp @@ -1023,7 +1023,7 @@ RDFServiceImpl::GetResource(const nsACString& aURI, nsIRDFResource** aResource) rv = factory->CreateInstance(nsnull, NS_GET_IID(nsIRDFResource), (void**) &result); if (NS_FAILED(rv)) return rv; - // Now initialize it with it's URI. At this point, the resource + // Now initialize it with its URI. At this point, the resource // implementation should register itself with the RDF service. rv = result->Init(flatURI.get()); if (NS_FAILED(rv)) { diff --git a/toolkit/components/downloads/public/nsIDownload.idl b/toolkit/components/downloads/public/nsIDownload.idl index ab5f035c22db..bc1310716c1f 100644 --- a/toolkit/components/downloads/public/nsIDownload.idl +++ b/toolkit/components/downloads/public/nsIDownload.idl @@ -115,7 +115,7 @@ interface nsIDownload : nsITransfer { /** * Optional. If set, it will contain the target's relevant MIME information. - * This includes it's MIME Type, helper app, and whether that helper should be + * This includes its MIME Type, helper app, and whether that helper should be * executed. */ readonly attribute nsIMIMEInfo MIMEInfo; diff --git a/toolkit/components/downloads/test/browser/browser_bug414214.js b/toolkit/components/downloads/test/browser/browser_bug414214.js index 41f6bc00ca3b..842b89f242ca 100644 --- a/toolkit/components/downloads/test/browser/browser_bug414214.js +++ b/toolkit/components/downloads/test/browser/browser_bug414214.js @@ -80,7 +80,7 @@ function test() getService(Ci.nsIDownloadManagerUI); ok(dmui.visible, "Download Manager window is open, as expected."); - // Reset the pref to it's default value + // Reset the pref to its default value Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch). setBoolPref(PREF_BDM_CLOSEWHENDONE, false); diff --git a/toolkit/components/parentalcontrols/src/nsParentalControlsServiceWin.cpp b/toolkit/components/parentalcontrols/src/nsParentalControlsServiceWin.cpp index 5b244a5f4505..91c98284b87b 100644 --- a/toolkit/components/parentalcontrols/src/nsParentalControlsServiceWin.cpp +++ b/toolkit/components/parentalcontrols/src/nsParentalControlsServiceWin.cpp @@ -226,7 +226,7 @@ nsParentalControlsServiceWin::RequestURIOverride(nsIURI *aTarget, nsIInterfaceRe return NS_ERROR_INVALID_ARG; HWND hWnd = nsnull; - // If we have a native window, use it's handle instead + // If we have a native window, use its handle instead nsCOMPtr widget(do_GetInterface(aWindowContext)); if (widget) hWnd = (HWND)widget->GetNativeData(NS_NATIVE_WINDOW); @@ -265,7 +265,7 @@ nsParentalControlsServiceWin::RequestURIOverrides(nsIArray *aTargets, nsIInterfa } HWND hWnd = nsnull; - // If we have a native window, use it's handle instead + // If we have a native window, use its handle instead nsCOMPtr widget(do_GetInterface(aWindowContext)); if (widget) hWnd = (HWND)widget->GetNativeData(NS_NATIVE_WINDOW); diff --git a/toolkit/components/passwordmgr/src/storage-Legacy.js b/toolkit/components/passwordmgr/src/storage-Legacy.js index 23346583f5a1..66872c7f325b 100644 --- a/toolkit/components/passwordmgr/src/storage-Legacy.js +++ b/toolkit/components/passwordmgr/src/storage-Legacy.js @@ -231,7 +231,7 @@ LoginManagerStorage_legacy.prototype = { var key = login.hostname; - // If first entry for key, create an Array to hold it's logins. + // If first entry for key, create an Array to hold its logins. var rollback; if (!this._logins[key]) { this._logins[key] = []; diff --git a/toolkit/components/places/public/nsIAnnotationService.idl b/toolkit/components/places/public/nsIAnnotationService.idl index 03bed5daa3eb..465c594579a2 100644 --- a/toolkit/components/places/public/nsIAnnotationService.idl +++ b/toolkit/components/places/public/nsIAnnotationService.idl @@ -75,7 +75,7 @@ interface nsIAnnotationService : nsISupports // Removed at application exit. const unsigned short EXPIRE_SESSION = 0; - // NOTE: 1 is skipped due to it's temporary use as EXPIRE_NEVER in bug #319455. + // NOTE: 1 is skipped due to its temporary use as EXPIRE_NEVER in bug #319455. // For general page settings, things the user is interested in seeing // if they come back to this page some time in the near future. diff --git a/toolkit/components/places/src/nsNavBookmarks.cpp b/toolkit/components/places/src/nsNavBookmarks.cpp index 8d03685140c0..cef7a54b7e00 100644 --- a/toolkit/components/places/src/nsNavBookmarks.cpp +++ b/toolkit/components/places/src/nsNavBookmarks.cpp @@ -2070,7 +2070,7 @@ nsNavBookmarks::QueryFolderChildren(PRInt64 aFolderId, while (NS_SUCCEEDED(mDBGetChildren->ExecuteStep(&results)) && results) { // The results will be in order of index. Even if we don't add a node - // because it was excluded, we need to count it's index, so do that + // because it was excluded, we need to count its index, so do that // before doing anything else. Index was initialized to -1 above, so // it will start counting at 0 the first time through the loop. index ++; diff --git a/toolkit/components/places/src/nsNavHistory.cpp b/toolkit/components/places/src/nsNavHistory.cpp index fc8dedd72415..58b6e3631015 100644 --- a/toolkit/components/places/src/nsNavHistory.cpp +++ b/toolkit/components/places/src/nsNavHistory.cpp @@ -1503,7 +1503,7 @@ nsNavHistory::CleanUpOnQuit() if (NS_SUCCEEDED(rv)) { mozStorageTransaction transaction(mDBConn, PR_FALSE); // 1. Indexes are moved along with the renamed table. Since we're dropping - // that table, we're also dropping it's indexes, and later re-creating them + // that table, we're also dropping its indexes, and later re-creating them // for the new table. rv = mDBConn->ExecuteSimpleSQL( NS_LITERAL_CSTRING("DROP INDEX IF EXISTS moz_places_urlindex")); diff --git a/toolkit/components/places/src/nsNavHistoryExpire.cpp b/toolkit/components/places/src/nsNavHistoryExpire.cpp index 98077c27dcca..2a6d96c994ac 100644 --- a/toolkit/components/places/src/nsNavHistoryExpire.cpp +++ b/toolkit/components/places/src/nsNavHistoryExpire.cpp @@ -840,7 +840,7 @@ nsNavHistoryExpire::ExpireEmbeddedLinks(mozIStorageConnection* aConnection) // visits, bookmarks or "place:" URIs. // // The aMaxRecords parameter is an optional cap on the number of -// records to delete. If it's value is -1, all records will be deleted. +// records to delete. If its value is -1, all records will be deleted. nsresult nsNavHistoryExpire::ExpireHistoryParanoid(mozIStorageConnection* aConnection, diff --git a/toolkit/components/places/src/utils.js b/toolkit/components/places/src/utils.js index 75d847a9371e..e879bef80adb 100644 --- a/toolkit/components/places/src/utils.js +++ b/toolkit/components/places/src/utils.js @@ -1271,7 +1271,7 @@ var PlacesUtils = { }, /** - * Serializes the given node (and all it's descendents) as JSON + * Serializes the given node (and all its descendents) as JSON * and writes the serialization to the given output stream. * * @param aNode diff --git a/toolkit/components/places/tests/chrome/test_371798.xul b/toolkit/components/places/tests/chrome/test_371798.xul index 054d869a4ab7..4027241b258c 100644 --- a/toolkit/components/places/tests/chrome/test_371798.xul +++ b/toolkit/components/places/tests/chrome/test_371798.xul @@ -78,7 +78,7 @@ bmsvc.setItemTitle(bm2, newTitle); this gets called after our observer gets notified of onItemChanged which is triggered by updating the item's title. after receiving the notification, our original query should also - have been live-updated, so we can iterate through it's children, + have been live-updated, so we can iterate through its children, to check that only the modified bookmark has changed. */ function runTest() { diff --git a/toolkit/components/places/tests/queries/head_queries.js b/toolkit/components/places/tests/queries/head_queries.js index a6b50cd95eec..5331968380f8 100644 --- a/toolkit/components/places/tests/queries/head_queries.js +++ b/toolkit/components/places/tests/queries/head_queries.js @@ -254,7 +254,7 @@ function populateDB(aArray) { * database. It also has some interesting meta functions to determine which APIs * should be called, and to determine if this object should show up in the * resulting query. - * It's parameter is an object specifying which attributes you want to set. + * Its parameter is an object specifying which attributes you want to set. * For ex: * var myobj = new queryData({isVisit: true, uri:"http://mozilla.com", title="foo"}); * Note that it doesn't do any input checking on that object. diff --git a/toolkit/components/places/tests/unit/test_expiration.js b/toolkit/components/places/tests/unit/test_expiration.js index ea7601078fce..73261cbb1cb6 100644 --- a/toolkit/components/places/tests/unit/test_expiration.js +++ b/toolkit/components/places/tests/unit/test_expiration.js @@ -448,7 +448,7 @@ function run_test() { var expirationDate = (Date.now() - (8 * 86400 * 1000)) * 1000; dbConnection.executeSimpleSQL("UPDATE moz_annos SET dateAdded = " + expirationDate); dbConnection.executeSimpleSQL("UPDATE moz_items_annos SET dateAdded = " + expirationDate); - // modify it's value + // modify its value annosvc.setPageAnnotation(testURI, testAnnoName, "mod", 0, annosvc.EXPIRE_DAYS); annosvc.setItemAnnotation(bookmark, testAnnoName, "mod", 0, annosvc.EXPIRE_DAYS); // add a uri and then remove it, to trigger expiration diff --git a/toolkit/components/printing/content/printUtils.js b/toolkit/components/printing/content/printUtils.js index a352106fffc2..9b4f025508bd 100644 --- a/toolkit/components/printing/content/printUtils.js +++ b/toolkit/components/printing/content/printUtils.js @@ -120,7 +120,7 @@ var PrintUtils = { // For the browser implemented via XUL with the PP toolbar we cannot let it be // automatically opened from the print engine because the XUL scrollbars in the PP window // will layout before the content window and a crash will occur. - // Doing it all from script, means it lays out before hand and we can let printing do it's own thing + // Doing it all from script, means it lays out before hand and we can let printing do its own thing var PPROMPTSVC = Components.classes["@mozilla.org/embedcomp/printingprompt-service;1"] .getService(Components.interfaces.nsIPrintingPromptService); // just in case we are already printing, diff --git a/toolkit/content/customizeToolbar.js b/toolkit/content/customizeToolbar.js index 362b50d62489..76deca309c0a 100644 --- a/toolkit/content/customizeToolbar.js +++ b/toolkit/content/customizeToolbar.js @@ -432,7 +432,7 @@ function fillRowWithFlex(aRow) /** * Makes sure that an item that has been cloned from a template - * is stripped of all properties that may adversely affect it's + * is stripped of all properties that may adversely affect its * appearance in the palette. */ function cleanUpItemForPalette(aItem, aWrapper) @@ -466,7 +466,7 @@ function cleanUpItemForPalette(aItem, aWrapper) /** * Makes sure that an item that has been cloned from a template - * is stripped of all properties that may adversely affect it's + * is stripped of all properties that may adversely affect its * appearance in the toolbar. Store critical properties on the * wrapper so they can be put back on the item when we're done. */ @@ -860,7 +860,7 @@ var toolbarDNDObserver = if (wrapper.parentNode.lastPermanentChild && wrapper.parentNode.lastPermanentChild.id == wrapper.firstChild.id) return; - // Remove the item from it's place in the toolbar. + // Remove the item from its place in the toolbar. wrapper.parentNode.removeChild(wrapper); // Determine which toolbar we are dropping on. diff --git a/toolkit/mozapps/extensions/public/nsIExtensionManager.idl b/toolkit/mozapps/extensions/public/nsIExtensionManager.idl index 263b3a870d39..c2ffe252c22c 100644 --- a/toolkit/mozapps/extensions/public/nsIExtensionManager.idl +++ b/toolkit/mozapps/extensions/public/nsIExtensionManager.idl @@ -629,7 +629,7 @@ interface nsIAddonInstallListener : nsISupports /** * Called when an add-on compatibility check starts. This will be called - * during an install if an add-on is incompatible according to it's + * during an install if an add-on is incompatible according to its * install.rdf. * @param addon * The add-on that the compatibility check will be for diff --git a/toolkit/mozapps/extensions/src/nsBlocklistService.js b/toolkit/mozapps/extensions/src/nsBlocklistService.js index 6a35feea3a79..28fbc8cd0591 100644 --- a/toolkit/mozapps/extensions/src/nsBlocklistService.js +++ b/toolkit/mozapps/extensions/src/nsBlocklistService.js @@ -190,7 +190,7 @@ function newURI(spec) { /** * Checks whether this blocklist element is valid for the current OS and ABI. * If the element has an "os" attribute then the current OS must appear in - * it's comma separated list for the element to be valid. Similarly for the + * its comma separated list for the element to be valid. Similarly for the * xpcomabi attribute. */ function matchesOSABI(blocklistElement) { diff --git a/toolkit/mozapps/extensions/src/nsExtensionManager.js.in b/toolkit/mozapps/extensions/src/nsExtensionManager.js.in index e67d5bc8a486..19ac146bdaf4 100644 --- a/toolkit/mozapps/extensions/src/nsExtensionManager.js.in +++ b/toolkit/mozapps/extensions/src/nsExtensionManager.js.in @@ -3683,7 +3683,7 @@ ExtensionManager.prototype = { if (ds.getItemProperty(id, "providesUpdatesSecurely") == "false") { /* It's possible the previous version did not understand updateKeys so - * check if we can import one for this addon from it's manifest. */ + * check if we can import one for this addon from its manifest. */ installRDF = location.getItemFile(id, FILE_INSTALL_MANIFEST); if (installRDF.exists()) { metadataDS = getInstallManifest(installRDF); diff --git a/toolkit/mozapps/installer/packager.mk b/toolkit/mozapps/installer/packager.mk index 9f9abec3211f..aad58bc6c22f 100644 --- a/toolkit/mozapps/installer/packager.mk +++ b/toolkit/mozapps/installer/packager.mk @@ -258,7 +258,7 @@ NO_PKG_FILES += \ necko_unit_tests \ $(NULL) -# browser/locales/Makefile uses this makefile for it's variable defs, but +# browser/locales/Makefile uses this makefile for its variable defs, but # doesn't want the libs:: rule. ifndef PACKAGER_NO_LIBS libs:: make-package diff --git a/toolkit/mozapps/shared/src/badCertHandler.js b/toolkit/mozapps/shared/src/badCertHandler.js index 17deb1dc5a1a..a60722bac5ff 100644 --- a/toolkit/mozapps/shared/src/badCertHandler.js +++ b/toolkit/mozapps/shared/src/badCertHandler.js @@ -61,7 +61,7 @@ function checkCert(channel) { } /** - * This class implements nsIBadCertListener. It's job is to prevent "bad cert" + * This class implements nsIBadCertListener. Its job is to prevent "bad cert" * security dialogs from being shown to the user. It is better to simply fail * if the certificate is bad. See bug 304286. */ diff --git a/toolkit/mozapps/update/src/updater/updater.cpp b/toolkit/mozapps/update/src/updater/updater.cpp index 3d1a8b5449d6..c46ce05faefb 100644 --- a/toolkit/mozapps/update/src/updater/updater.cpp +++ b/toolkit/mozapps/update/src/updater/updater.cpp @@ -548,7 +548,7 @@ public: // Perform the operation. Return OK to indicate success. After all actions // have been executed, Finish will be called. A requirement of Execute is - // that it's operation be reversable from Finish. + // that its operation be reversable from Finish. virtual int Execute() = 0; // Finish is called after execution of all actions. If status is OK, then diff --git a/tools/codesighs/msmap2tsv.c b/tools/codesighs/msmap2tsv.c index 4dd59a75f56b..91587029dccb 100644 --- a/tools/codesighs/msmap2tsv.c +++ b/tools/codesighs/msmap2tsv.c @@ -1761,7 +1761,7 @@ int map2tsv(Options* inOptions) /* ** Guess using offsets. - ** Is there a next symbol available? If so, it's start offset is the end of this symbol. + ** Is there a next symbol available? If so, its start offset is the end of this symbol. ** Otherwise, our section offset + length is the end of this symbol. ** ** The trick is, the DB size can not go beyond the offset size, for sanity. diff --git a/tools/footprint/linux-gdf.mk b/tools/footprint/linux-gdf.mk index 6162141af2a3..491399994337 100644 --- a/tools/footprint/linux-gdf.mk +++ b/tools/footprint/linux-gdf.mk @@ -61,7 +61,7 @@ # # You can tweak ``linux.gnuplot.in'' to change the graph's output. -# This script computes a line using linear regression; it's output is +# This script computes a line using linear regression; its output is # of the form: # # * x + diff --git a/tools/footprint/win32-gdf.mk b/tools/footprint/win32-gdf.mk index cb12a9c73ebf..124a02f797ad 100644 --- a/tools/footprint/win32-gdf.mk +++ b/tools/footprint/win32-gdf.mk @@ -71,7 +71,7 @@ # mozilla.org.) # -# This script computes a line using linear regression; it's output is +# This script computes a line using linear regression; its output is # of the form: # # * x + diff --git a/tools/reorder/grope.cpp b/tools/reorder/grope.cpp index 48b8e905adf3..0d4aa73e261e 100644 --- a/tools/reorder/grope.cpp +++ b/tools/reorder/grope.cpp @@ -427,7 +427,7 @@ main(int argc, char *argv[]) } // The first arc in the sorted set will have the largest - // weight. Pull it out, and emit it's sink. + // weight. Pull it out, and emit its sink. arc_count_index_t::iterator max = sorted_arcs.begin(); call_graph_arc *arc = const_cast(*max); diff --git a/tools/tests/unix/smoke.pl b/tools/tests/unix/smoke.pl index f4e86c7834de..a360357da47a 100644 --- a/tools/tests/unix/smoke.pl +++ b/tools/tests/unix/smoke.pl @@ -172,7 +172,7 @@ sub main { # essentially calls `kill -9 $pid`. # the reason this exists is because i can't figure # out how to kill apprunner yet, since i can't grab -# it's pid. (it's harder than you think.) +# its pid. (it's harder than you think.) # when i figure it out, i'll fix it here, then all will # be great. until then, all apprunners are killed!) ################################################################ diff --git a/tools/trace-malloc/spacetrace.c b/tools/trace-malloc/spacetrace.c index 1da39f5fb18c..82ad7af4da55 100644 --- a/tools/trace-malloc/spacetrace.c +++ b/tools/trace-malloc/spacetrace.c @@ -688,7 +688,7 @@ recalculateAllocationCost(STOptions * inOptions, STContext * inContext, /* ** Now, see if they desire a callsite update. ** As mentioned previously, we decide if the run desires us to - ** manipulate the callsite data only if it's stamp is set. + ** manipulate the callsite data only if its stamp is set. ** We change all callsites and parent callsites to have that ** stamp as well, so as to mark them as being relevant to ** the current run in question. @@ -1461,7 +1461,7 @@ getLiveAllocationByHeapID(STRun * aRun, PRUint32 aHeapID) /* ** appendEvent ** -** Given an allocation, append a new event to it's lifetime. +** Given an allocation, append a new event to its lifetime. ** Returns the new event on success, otherwise NULL. */ STAllocEvent * @@ -2871,7 +2871,7 @@ displayMemoryLeaks(STRequest * inRequest, STRun * aRun) current = aRun->mAllocations[loop]; if (NULL != current && 0 != current->mEventCount) { /* - ** In order to be a leak, the last event of it's life must + ** In order to be a leak, the last event of its life must ** NOT be a free operation. ** ** A free operation is just that, a free. diff --git a/xpcom/base/nsInterfaceRequestorAgg.h b/xpcom/base/nsInterfaceRequestorAgg.h index 836ea3992923..7be03bda82d3 100644 --- a/xpcom/base/nsInterfaceRequestorAgg.h +++ b/xpcom/base/nsInterfaceRequestorAgg.h @@ -41,7 +41,7 @@ /** * This function returns an instance of nsIInterfaceRequestor that aggregates - * two nsIInterfaceRequestor instances. It's GetInterface method queries + * two nsIInterfaceRequestor instances. Its GetInterface method queries * aFirst for the requested interface and will query aSecond only if aFirst * failed to supply the requested interface. Both aFirst and aSecond may * be null. diff --git a/xpcom/components/nsCategoryManager.h b/xpcom/components/nsCategoryManager.h index 4b6dc4753739..f327e35a0a41 100644 --- a/xpcom/components/nsCategoryManager.h +++ b/xpcom/components/nsCategoryManager.h @@ -73,7 +73,7 @@ public: /** - * CategoryNode keeps a hashtable of it's entries. + * CategoryNode keeps a hashtable of its entries. * the CategoryNode itself is permanently allocated in * the arena. */ diff --git a/xpcom/obsolete/nsFileSpec.h b/xpcom/obsolete/nsFileSpec.h index 5208e02e8d84..7fbad176baae 100644 --- a/xpcom/obsolete/nsFileSpec.h +++ b/xpcom/obsolete/nsFileSpec.h @@ -183,7 +183,7 @@ // This clashes with some of the Win32 system headers (specifically, // winbase.h). Hopefully they'll have been included first; else we may // have problems. We could include winbase.h before doing this; -// unfortunately, it's bring in too much crap and'd slow stuff down +// unfortunately, it'd bring in too much crap and'd slow stuff down // more than it's worth doing. #ifdef CreateDirectory #undef CreateDirectory diff --git a/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp b/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp index 8fe82b41b167..d64fbffc283b 100644 --- a/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp +++ b/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp @@ -257,7 +257,7 @@ PRBool xptiInterfaceInfoManager::BuildFileSearchPath(nsISupportsArray** aPath) // Add the GRE's component directory to searchPath if the // application is using an GRE. // An application indicates that it's using an GRE by returning - // a valid nsIFile via it's directory service provider interface. + // a valid nsIFile via its directory service provider interface. // // Please see http://www.mozilla.org/projects/embedding/MRE.html // for more info. on GREs diff --git a/xpcom/sample/nsSample.h b/xpcom/sample/nsSample.h index 40dec0b35753..b73ff893bd09 100644 --- a/xpcom/sample/nsSample.h +++ b/xpcom/sample/nsSample.h @@ -114,7 +114,7 @@ public: /* NS_IMETHOD WriteValue(const char *aPrefix); */ /** - * nsISample.idl specifies all of it's string types as string, instead + * nsISample.idl specifies all of its string types as string, instead * of wstring (wide string), the Unicode type. If the world were a * perfect place, all normal strings in XPCOM interfaces would be unicode. * If this type had been specified as wstring, it would appear as diff --git a/xpcom/string/public/nsTSubstring.h b/xpcom/string/public/nsTSubstring.h index bc4fa05c8503..b9a49042d0ba 100644 --- a/xpcom/string/public/nsTSubstring.h +++ b/xpcom/string/public/nsTSubstring.h @@ -534,7 +534,7 @@ class nsTSubstring_CharT /** * this function releases mData and does not change the value of - * any of it's member variables. in other words, this function acts + * any of its member variables. in other words, this function acts * like a destructor. */ void NS_FASTCALL Finalize(); diff --git a/xpcom/typelib/xpidl/xpidl_util.c b/xpcom/typelib/xpidl/xpidl_util.c index 65f8988636aa..5ef85b96ad78 100644 --- a/xpcom/typelib/xpidl/xpidl_util.c +++ b/xpcom/typelib/xpidl/xpidl_util.c @@ -334,7 +334,7 @@ verify_attribute_declaration(IDL_tree attr_tree) /* We don't support attributes named IID, conflicts with static GetIID * member. The conflict is due to certain compilers (VC++) choosing a * different vtable order, placing GetIID at the beginning regardless - * of it's placement + * of its placement */ if (strcmp( IDL_IDENT( @@ -521,7 +521,7 @@ check_param_attribute(IDL_tree method_tree, IDL_tree param, } if (referred_param == param) { IDL_tree_error(method_tree, - "attribute [%s(%s)] refers to it's own parameter", + "attribute [%s(%s)] refers to its own parameter", attr_name, referred_name); return FALSE; } @@ -581,7 +581,7 @@ verify_method_declaration(IDL_tree method_tree) /* We don't support attributes named IID, conflicts with static GetIID * member. The conflict is due to certain compilers (VC++) choosing a * different vtable order, placing GetIID at the beginning regardless - * of it's placement + * of its placement */ if (strcmp(method_name, "GetIID") == 0) { IDL_tree_error(method_tree, diff --git a/xpfe/appshell/public/nsIXULBrowserWindow.idl b/xpfe/appshell/public/nsIXULBrowserWindow.idl index 841f0de50487..37a8676aa99f 100644 --- a/xpfe/appshell/public/nsIXULBrowserWindow.idl +++ b/xpfe/appshell/public/nsIXULBrowserWindow.idl @@ -45,7 +45,7 @@ interface nsIDOMElement; /** * The nsIXULBrowserWindow supplies the methods that may be called from the * internals of the browser area to tell the containing xul window to update - * it's ui. + * its ui. */ [scriptable, uuid(67a601df-f091-4894-a2e2-2e6cfebb35ea)] interface nsIXULBrowserWindow : nsISupports diff --git a/xpfe/bootstrap/appleevents/nsAEGenericClass.cpp b/xpfe/bootstrap/appleevents/nsAEGenericClass.cpp index 130666e35e0d..a76d9e14e9be 100644 --- a/xpfe/bootstrap/appleevents/nsAEGenericClass.cpp +++ b/xpfe/bootstrap/appleevents/nsAEGenericClass.cpp @@ -453,7 +453,7 @@ void AEGenericClass::HandleMake(AEDesc *token, const AppleEvent *appleEvent, App // then deal with it correctly later. if (objectSpec.descriptorType == typeNull) { - ::AEDisposeDesc(token); // destroy it's old representation, token will now be null descriptor + ::AEDisposeDesc(token); // destroy its old representation, token will now be null descriptor } else { diff --git a/xpfe/components/download-manager/public/nsIDownload.idl b/xpfe/components/download-manager/public/nsIDownload.idl index 4779c0da7b1a..8141fa85fab7 100644 --- a/xpfe/components/download-manager/public/nsIDownload.idl +++ b/xpfe/components/download-manager/public/nsIDownload.idl @@ -112,7 +112,7 @@ interface nsIDownload : nsITransfer { /** * Optional. If set, it will contain the target's relevant MIME information. - * This includes it's MIME Type, helper app, and whether that helper should be + * This includes its MIME Type, helper app, and whether that helper should be * executed. */ readonly attribute nsIMIMEInfo MIMEInfo;