Bug 1081582: Fix spelling. r=rnewman
authorChris Kitching <chriskitching@linux.com>
Sun, 12 Oct 2014 00:28:29 +0100
changeset 210580 1f9b1f47758843fdd1ef72fbca06870611615544
parent 210579 cbf96909b5bcec7a72be6b977b5bd23c326ade45
child 210581 a95e2de845ff0ee273e845824f96e7202c148f44
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersrnewman
bugs1081582
milestone36.0a1
Bug 1081582: Fix spelling. r=rnewman
mobile/android/base/ChromeCast.java
mobile/android/base/ContactService.java
mobile/android/base/DoorHangerPopup.java
mobile/android/base/EditBookmarkDialog.java
mobile/android/base/FilePicker.java
mobile/android/base/GeckoBatteryManager.java
mobile/android/base/GeckoEditable.java
mobile/android/base/GeckoScreenOrientation.java
mobile/android/base/GeckoSmsManager.java
mobile/android/base/GeckoView.java
mobile/android/base/GeckoViewContent.java
mobile/android/base/JavaAddonManager.java
mobile/android/base/MediaPlayerManager.java
mobile/android/base/SharedPreferencesHelper.java
mobile/android/base/TextSelection.java
mobile/android/base/animation/Rotate3DAnimation.java
mobile/android/base/background/fxa/FxAccountUtils.java
mobile/android/base/background/healthreport/HealthReportStorage.java
mobile/android/base/db/BrowserDatabaseHelper.java
mobile/android/base/db/TopSitesCursorWrapper.java
mobile/android/base/docs/localeswitching.rst
mobile/android/base/fxa/activities/FxAccountConfirmAccountActivity.java
mobile/android/base/fxa/activities/FxAccountStatusFragment.java
mobile/android/base/fxa/authenticator/AndroidFxAccount.java
mobile/android/base/gfx/GLController.java
mobile/android/base/gfx/GeckoLayerClient.java
mobile/android/base/gfx/JavaPanZoomController.java
mobile/android/base/gfx/LayerMarginsAnimator.java
mobile/android/base/home/BrowserSearch.java
mobile/android/base/home/HomeConfig.java
mobile/android/base/home/RemoteTabsExpandableListFragment.java
mobile/android/base/home/TwoLinePageRow.java
mobile/android/base/locales/en-US/android_strings.dtd
mobile/android/base/overlays/service/OverlayActionService.java
mobile/android/base/overlays/service/sharemethods/AddBookmark.java
mobile/android/base/overlays/service/sharemethods/AddToReadingList.java
mobile/android/base/overlays/service/sharemethods/SendTab.java
mobile/android/base/overlays/service/sharemethods/ShareMethod.java
mobile/android/base/overlays/ui/OverlayDialogButton.java
mobile/android/base/prompts/IntentChooserPrompt.java
mobile/android/base/prompts/Prompt.java
mobile/android/base/tabs/TabsLayoutItemView.java
mobile/android/base/tabs/TabsListLayout.java
mobile/android/base/tests/ContentContextMenuTest.java
mobile/android/base/tests/components/GeckoViewComponent.java
mobile/android/base/tests/helpers/AssertionHelper.java
mobile/android/base/tests/testBrowserProvider.java
mobile/android/base/tests/testFilterOpenTab.java
mobile/android/base/tests/testHistory.java
mobile/android/base/tests/testShareLink.java
mobile/android/base/tests/testTitleBar.java
mobile/android/base/tests/testVkbOverlap.java
mobile/android/base/toolbar/CanvasDelegate.java
mobile/android/base/toolbar/SiteIdentityPopup.java
mobile/android/base/toolbar/ToolbarDisplayLayout.java
mobile/android/base/updater/UpdateService.java
mobile/android/base/util/GeckoRequest.java
mobile/android/base/util/WebActivityMapper.java
mobile/android/base/webapp/UninstallListener.java
mobile/android/base/widget/ActivityChooserModel.java
mobile/android/base/widget/GeckoActionProvider.java
mobile/android/base/widget/GeckoSwipeRefreshLayout.java
mobile/android/base/widget/TwoWayView.java
mobile/android/search/java/org/mozilla/search/autocomplete/SearchBar.java
--- a/mobile/android/base/ChromeCast.java
+++ b/mobile/android/base/ChromeCast.java
@@ -32,17 +32,17 @@ import android.content.Context;
 import android.os.Bundle;
 import android.support.v7.media.MediaRouter.RouteInfo;
 import android.util.Log;
 
 /* Implementation of GeckoMediaPlayer for talking to ChromeCast devices */
 class ChromeCast implements GeckoMediaPlayer {
     private static final boolean SHOW_DEBUG = false;
 
-    static final String MIRROR_RECIEVER_APP_ID = "5F72F863";
+    static final String MIRROR_RECEIVER_APP_ID = "5F72F863";
 
     private final Context context;
     private final RouteInfo route;
     private GoogleApiClient apiClient;
     private RemoteMediaPlayer remoteMediaPlayer;
     private final boolean canMirror;
     private String mSessionId;
     private MirrorChannel mMirrorChannel;
@@ -142,17 +142,17 @@ class ChromeCast implements GeckoMediaPl
     public ChromeCast(Context context, RouteInfo route) {
         int status =  GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);
         if (status != ConnectionResult.SUCCESS) {
             throw new IllegalStateException("Play services are required for Chromecast support (go status code " + status + ")");
         }
 
         this.context = context;
         this.route = route;
-        this.canMirror = route.supportsControlCategory(CastMediaControlIntent.categoryForCast(MIRROR_RECIEVER_APP_ID));
+        this.canMirror = route.supportsControlCategory(CastMediaControlIntent.categoryForCast(MIRROR_RECEIVER_APP_ID));
     }
 
     // This dumps everything we can find about the device into JSON. This will hopefully make it
     // easier to filter out duplicate devices from different sources in js.
     @Override
     public JSONObject toJSON() {
         final JSONObject obj = new JSONObject();
         try {
@@ -448,17 +448,17 @@ class ChromeCast implements GeckoMediaPl
                     public void onConnected(Bundle connectionHint) {
                         // Sometimes apiClient is null here. See bug 1061032
                         if (apiClient == null || !apiClient.isConnected()) {
                             return;
                         }
 
                         // Launch the media player app and launch this url once its loaded
                         try {
-                            Cast.CastApi.launchApplication(apiClient, MIRROR_RECIEVER_APP_ID, true)
+                            Cast.CastApi.launchApplication(apiClient, MIRROR_RECEIVER_APP_ID, true)
                                 .setResultCallback(new MirrorCallback(callback));
                         } catch (Exception e) {
                             debug("Failed to launch application", e);
                         }
                     }
 
                     @Override
                     public void onConnectionSuspended(int cause) {
--- a/mobile/android/base/ContactService.java
+++ b/mobile/android/base/ContactService.java
@@ -115,17 +115,17 @@ public class ContactService implements G
             "Android:Contacts:GetCount",
             "Android:Contact:Remove",
             "Android:Contact:Save");
     }
 
     @Override
     public void handleMessage(final String event, final JSONObject message) {
         // If the account chooser dialog needs shown to the user, the message handling becomes
-        // asychronous so it needs posted to a background thread from the UI thread when the
+        // asynchronous so it needs posted to a background thread from the UI thread when the
         // account chooser dialog is dismissed by the user.
         Runnable handleMessage = new Runnable() {
             @Override
             public void run() {
                 try {
                     if (DEBUG) {
                         Log.d(LOGTAG, "Event: " + event + "\nMessage: " + message.toString(3));
                     }
@@ -1019,17 +1019,17 @@ public class ContactService implements G
         // Why is updating a contact so weird and horribly inefficient? Because Android doesn't
         // like multiple values for contact fields, but the Mozilla contacts API calls for this.
         // This means the Android update function is essentially completely useless. Why not just
         // delete the contact and re-insert it? Because that would change the contact ID and the
         // Mozilla contacts API shouldn't have this behavior. The solution is to delete each
         // row from the contacts data table that belongs to the contact, and insert the new
         // fields. But then why not just delete all the data from the data in one go and
         // insert the new data in another? Because if all the data relating to a contact is
-        // deleted, Android will "conviently" remove the ID making it impossible to insert data
+        // deleted, Android will "conveniently" remove the ID making it impossible to insert data
         // under the old ID. To work around this, we put a Mozilla contact flag in the database
 
         ContentProviderOperation removeOptions = ContentProviderOperation.newDelete(Data.CONTENT_URI)
                                                  .withSelection(Data.RAW_CONTACT_ID + "=? AND " +
                                                  Data.MIMETYPE + " != '" + MIMETYPE_MOZILLA_CONTACTS_FLAG + "'",
                                                  new String[] {String.valueOf(rawContactId)})
                                                  .build();
 
@@ -1963,19 +1963,19 @@ public class ContactService implements G
         }
         mEmailTypesMap = new HashMap<String, Integer>();
 
         mEmailTypesMap.put("home", Email.TYPE_HOME);
         mEmailTypesMap.put("mobile", Email.TYPE_MOBILE);
         mEmailTypesMap.put("work", Email.TYPE_WORK);
     }
 
-    private int getWebsiteType(String webisteType) {
+    private int getWebsiteType(String websiteType) {
         initWebsiteTypesMap();
-        Integer type = mWebsiteTypesMap.get(webisteType.toLowerCase());
+        Integer type = mWebsiteTypesMap.get(websiteType.toLowerCase());
         return type != null ? type : Website.TYPE_CUSTOM;
     }
 
     private void initWebsiteTypesMap() {
         if (mWebsiteTypesMap != null) {
             return;
         }
         mWebsiteTypesMap = new HashMap<String, Integer>();
--- a/mobile/android/base/DoorHangerPopup.java
+++ b/mobile/android/base/DoorHangerPopup.java
@@ -179,17 +179,17 @@ public class DoorHangerPopup extends Arr
             } catch (JSONException e) {
                 Log.e(LOGTAG, "Error creating doorhanger button", e);
             }
         }
 
         mDoorHangers.add(newDoorHanger);
         mContent.addView(newDoorHanger);
 
-        // Only update the popup if we're adding a notifcation to the selected tab
+        // Only update the popup if we're adding a notification to the selected tab
         if (tabId == Tabs.getInstance().getSelectedTab().getId())
             updatePopup();
     }
 
 
     /*
      * DoorHanger.OnButtonClickListener implementation
      */
--- a/mobile/android/base/EditBookmarkDialog.java
+++ b/mobile/android/base/EditBookmarkDialog.java
@@ -49,20 +49,20 @@ public class EditBookmarkDialog {
             title = aTitle;
             url = aUrl;
             keyword = aKeyword;
         }
     }
 
     /**
      * This text watcher to enable or disable the OK button if the dialog contains
-     * valid information. This class is overridden to do data checking diffferent fields.
+     * valid information. This class is overridden to do data checking on different fields.
      * By itself, it always enables the button.
      *
-     * Callers can also assing a paired partner to the TextWatcher, and callers will check
+     * Callers can also assign a paired partner to the TextWatcher, and callers will check
      * that both are enabled before enabling the ok button.
      */
     private class EditBookmarkTextWatcher implements TextWatcher {
         // A stored reference to the dialog containing the text field being watched
         protected AlertDialog mDialog;
 
         // A stored text watcher to do the real verification of a field
         protected EditBookmarkTextWatcher mPairedTextWatcher;
--- a/mobile/android/base/FilePicker.java
+++ b/mobile/android/base/FilePicker.java
@@ -95,17 +95,17 @@ public class FilePicker implements Gecko
         intent.setType(mimeType);
         intent.addCategory(Intent.CATEGORY_OPENABLE);
         return intent;
     }
 
     private List<Intent> getIntentsForFilePicker(final String mimeType,
                                                        final FilePickerResultHandler fileHandler) {
         // The base intent to use for the file picker. Even if this is an implicit intent, Android will
-        // still show a list of Activitiees that match this action/type.
+        // still show a list of Activities that match this action/type.
         Intent baseIntent;
         // A HashMap of Activities the base intent will show in the chooser. This is used
         // to filter activities from other intents so that we don't show duplicates.
         HashMap<String, Intent> baseIntents = new HashMap<String, Intent>();
         // A list of other activities to shwo in the picker (and the intents to launch them).
         HashMap<String, Intent> intents = new HashMap<String, Intent> ();
 
         if ("audio/*".equals(mimeType)) {
--- a/mobile/android/base/GeckoBatteryManager.java
+++ b/mobile/android/base/GeckoBatteryManager.java
@@ -79,17 +79,17 @@ public class GeckoBatteryManager extends
         }
 
         boolean previousCharging = isCharging();
         double previousLevel = getLevel();
 
         // NOTE: it might not be common (in 2012) but technically, Android can run
         // on a device that has no battery so we want to make sure it's not the case
         // before bothering checking for battery state.
-        // However, the Galaxy Nexus phone advertizes itself as battery-less which
+        // However, the Galaxy Nexus phone advertises itself as battery-less which
         // force us to special-case the logic.
         // See the Google bug: https://code.google.com/p/android/issues/detail?id=22035
         if (intent.getBooleanExtra(BatteryManager.EXTRA_PRESENT, false) ||
                 Build.MODEL.equals("Galaxy Nexus")) {
             int plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
             if (plugged == -1) {
                 sCharging = kDefaultCharging;
                 Log.e(LOGTAG, "Failed to get the plugged status!");
--- a/mobile/android/base/GeckoEditable.java
+++ b/mobile/android/base/GeckoEditable.java
@@ -253,19 +253,19 @@ final class GeckoEditable
         private KeyEvent [] synthesizeKeyEvents(CharSequence cs) {
             try {
                 if (mKeyMap == null) {
                     mKeyMap = KeyCharacterMap.load(
                         Versions.preHC ? KeyCharacterMap.ALPHA :
                                          KeyCharacterMap.VIRTUAL_KEYBOARD);
                 }
             } catch (Exception e) {
-                // KeyCharacterMap.UnavailableExcepton is not found on Gingerbread;
+                // KeyCharacterMap.UnavailableException is not found on Gingerbread;
                 // besides, it seems like HC and ICS will throw something other than
-                // KeyCharacterMap.UnavailableExcepton; so use a generic Exception here
+                // KeyCharacterMap.UnavailableException; so use a generic Exception here
                 return null;
             }
             KeyEvent [] keyEvents = mKeyMap.getEvents(cs.toString().toCharArray());
             if (keyEvents == null || keyEvents.length == 0) {
                 return null;
             }
             return keyEvents;
         }
--- a/mobile/android/base/GeckoScreenOrientation.java
+++ b/mobile/android/base/GeckoScreenOrientation.java
@@ -285,17 +285,17 @@ public class GeckoScreenOrientation {
         }
 
         // We don't support multiple orientations yet. To avoid developer
         // confusion, just take the first one listed.
         return screenOrientationFromString(orientations.get(0));
     }
 
     /*
-     * Retrieve the scren orientation from a string.
+     * Retrieve the screen orientation from a string.
      *
      * @param aStr
      *        String hopefully containing a screen orientation name.
      * @return Gecko screen orientation if matched, DEFAULT_SCREEN_ORIENTATION
      *         otherwise.
      */
     public static ScreenOrientation screenOrientationFromString(String aStr) {
         switch (aStr) {
--- a/mobile/android/base/GeckoSmsManager.java
+++ b/mobile/android/base/GeckoSmsManager.java
@@ -465,17 +465,17 @@ public class GeckoSmsManager
           int id = saveSentMessage(number, message, timestamp);
 
           notifySmsSent(id, number, message, timestamp,
                         bundle.getInt("requestId"));
 
           envelope.setMessageId(id);
           envelope.setMessageTimestamp(timestamp);
 
-          Log.i("GeckoSmsManager", "SMS sending was successfull!");
+          Log.i("GeckoSmsManager", "SMS sending was successful!");
         } else {
           notifySmsDelivery(envelope.getMessageId(),
                             kDeliveryStatusSuccess,
                             bundle.getString("number"),
                             bundle.getString("message"),
                             envelope.getMessageTimestamp());
           Log.i("GeckoSmsManager", "SMS successfully delivered!");
         }
--- a/mobile/android/base/GeckoView.java
+++ b/mobile/android/base/GeckoView.java
@@ -656,37 +656,37 @@ public class GeckoView extends LayerView
         * @param url The resource being loaded.
         */
         public void onPageStart(GeckoView view, GeckoView.Browser browser, String url);
     
         /**
         * A Browser has finished loading content from the network.
         * @param view The GeckoView that initiated the callback.
         * @param browser The Browser that was loading the content.
-        * @param success Whether the page loaded successfully or an error occured.
+        * @param success Whether the page loaded successfully or an error occurred.
         */
         public void onPageStop(GeckoView view, GeckoView.Browser browser, boolean success);
-    
+
         /**
         * A Browser is displaying content. This page could have been loaded via
         * network or from the session history.
         * @param view The GeckoView that initiated the callback.
         * @param browser The Browser that is showing the content.
         */
         public void onPageShow(GeckoView view, GeckoView.Browser browser);
-    
+
         /**
         * A page title was discovered in the content or updated after the content
         * loaded.
         * @param view The GeckoView that initiated the callback.
         * @param browser The Browser that is showing the content.
         * @param title The title sent from the content.
         */
         public void onReceivedTitle(GeckoView view, GeckoView.Browser browser, String title);
-    
+
         /**
         * A link element was discovered in the content or updated after the content
         * loaded that specifies a favicon.
         * @param view The GeckoView that initiated the callback.
         * @param browser The Browser that is showing the content.
         * @param url The href of the link element specifying the favicon.
         * @param size The maximum size specified for the favicon, or -1 for any size.
         */
--- a/mobile/android/base/GeckoViewContent.java
+++ b/mobile/android/base/GeckoViewContent.java
@@ -14,17 +14,17 @@ public class GeckoViewContent implements
     */
     @Override
     public void onPageStart(GeckoView view, GeckoView.Browser browser, String url) {}
 
     /**
     * A Browser has finished loading content from the network.
     * @param view The GeckoView that initiated the callback.
     * @param browser The Browser that was loading the content.
-    * @param success Whether the page loaded successfully or an error occured.
+    * @param success Whether the page loaded successfully or an error occurred.
     */
     @Override
     public void onPageStop(GeckoView view, GeckoView.Browser browser, boolean success) {}
 
     /**
     * A Browser is displaying content. This page could have been loaded via
     * network or from the session history.
     * @param view The GeckoView that initiated the callback.
--- a/mobile/android/base/JavaAddonManager.java
+++ b/mobile/android/base/JavaAddonManager.java
@@ -34,17 +34,17 @@ import java.util.Map;
  * are registered as event listeners. If no such constructor exists, the default
  * constructor is invoked instead.
  *
  * Note: The Map and Handler.Callback classes were used in this API definition
  * rather than defining a custom class. This was done explicitly so that the
  * addon code can be compiled against the android.jar provided in the Android
  * SDK, rather than having to be compiled against Fennec source code.
  *
- * The Handler.Callback instances provided (as described above) are inovked with
+ * The Handler.Callback instances provided (as described above) are invoked with
  * Message objects when the corresponding events are dispatched. The Bundle
  * object attached to the Message will contain the "primitive" values from the
  * JSON of the event. ("primitive" includes bool/int/long/double/String). If
  * the addon callback wishes to synchronously return a value back to the event
  * dispatcher, they can do so by inserting the response string into the bundle
  * under the key "response".
  */
 class JavaAddonManager implements GeckoEventListener {
--- a/mobile/android/base/MediaPlayerManager.java
+++ b/mobile/android/base/MediaPlayerManager.java
@@ -235,17 +235,17 @@ class MediaPlayerManager implements Nati
         mediaRouter.removeCallback(callback);
     }
 
     @Override
     public void onResume() {
         MediaRouteSelector selectorBuilder = new MediaRouteSelector.Builder()
             .addControlCategory(MediaControlIntent.CATEGORY_LIVE_VIDEO)
             .addControlCategory(MediaControlIntent.CATEGORY_REMOTE_PLAYBACK)
-            .addControlCategory(CastMediaControlIntent.categoryForCast(ChromeCast.MIRROR_RECIEVER_APP_ID))
+            .addControlCategory(CastMediaControlIntent.categoryForCast(ChromeCast.MIRROR_RECEIVER_APP_ID))
             .build();
         mediaRouter.addCallback(selectorBuilder, callback, MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY);
     }
 
     @Override
     public void onOrientationChanged() { }
 
 }
--- a/mobile/android/base/SharedPreferencesHelper.java
+++ b/mobile/android/base/SharedPreferencesHelper.java
@@ -219,17 +219,17 @@ public final class SharedPreferencesHelp
             }
             try {
                 final JSONObject msg = new JSONObject();
                 msg.put("scope", this.scope.key);
                 msg.put("branch", this.branch);
                 msg.put("profileName", this.profileName);
                 msg.put("key", key);
 
-                // Truly, this is awful, but the API impedence is strong: there
+                // Truly, this is awful, but the API impedance is strong: there
                 // is no way to get a single untyped value from a
                 // SharedPreferences instance.
                 msg.put("value", sharedPreferences.getAll().get(key));
 
                 GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("SharedPreferences:Changed", msg.toString()));
             } catch (JSONException e) {
                 Log.e(LOGTAG, "Got exception creating JSON object", e);
                 return;
--- a/mobile/android/base/TextSelection.java
+++ b/mobile/android/base/TextSelection.java
@@ -47,18 +47,18 @@ class TextSelection extends Layer implem
     private float mViewLeft;
     private float mViewTop;
     private float mViewZoom;
 
     private String mCurrentItems;
 
     private TextSelectionActionModeCallback mCallback;
 
-    // These timers are used to avoid flicker caused by selection handles showing/hiding quickly. For isntance
-    // when moving between single handle caret mode and two handle selection mode.
+    // These timers are used to avoid flicker caused by selection handles showing/hiding quickly.
+    // For instance when moving between single handle caret mode and two handle selection mode.
     private final Timer mActionModeTimer = new Timer("actionMode");
     private class ActionModeTimerTask extends TimerTask {
         @Override
         public void run() {
             ThreadUtils.postToUiThread(new Runnable() {
                 @Override
                 public void run() {
                     endActionMode();
--- a/mobile/android/base/animation/Rotate3DAnimation.java
+++ b/mobile/android/base/animation/Rotate3DAnimation.java
@@ -38,17 +38,17 @@ public class Rotate3DAnimation extends A
     private Camera mCamera;
 
     private int mWidth = 1;
     private int mHeight = 1;
 
     /**
      * Creates a new 3D rotation on the Y axis. The rotation is defined by its
      * start angle and its end angle. Both angles are in degrees. The rotation
-     * is performed around a center point on the 2D space, definied by a pair
+     * is performed around a center point on the 2D space, defined by a pair
      * of X and Y coordinates, called centerX and centerY. When the animation
      * starts, a translation on the Z axis (depth) is performed. The length
      * of the translation can be specified, as well as whether the translation
      * should be reversed in time.
      *
      * @param fromDegrees the start angle of the 3D rotation
      * @param toDegrees the end angle of the 3D rotation
      * @param centerX the X center of the 3D rotation
--- a/mobile/android/base/background/fxa/FxAccountUtils.java
+++ b/mobile/android/base/background/fxa/FxAccountUtils.java
@@ -108,17 +108,17 @@ public class FxAccountUtils {
    * We separate this since multiple login-time operations want it, and the
    * PBKDF2 operation is computationally expensive.
    */
   public static byte[] generateQuickStretchedPW(byte[] emailUTF8, byte[] passwordUTF8) throws GeneralSecurityException, UnsupportedEncodingException {
     byte[] S = FxAccountUtils.KWE("quickStretch", emailUTF8);
     try {
       return NativeCrypto.pbkdf2SHA256(passwordUTF8, S, NUMBER_OF_QUICK_STRETCH_ROUNDS, 32);
     } catch (final LinkageError e) {
-      // This will throw UnsatisifiedLinkError (missing mozglue) the first time it is called, and
+      // This will throw UnsatisfiedLinkError (missing mozglue) the first time it is called, and
       // ClassNotDefFoundError, for the uninitialized NativeCrypto class, each subsequent time this
       // is called; LinkageError is their common ancestor.
       Logger.warn(LOG_TAG, "Got throwable stretching password using native pbkdf2SHA256 " +
           "implementation; ignoring and using Java implementation.", e);
       return PBKDF2.pbkdf2SHA256(passwordUTF8, S, NUMBER_OF_QUICK_STRETCH_ROUNDS, 32);
     }
   }
 
--- a/mobile/android/base/background/healthreport/HealthReportStorage.java
+++ b/mobile/android/base/background/healthreport/HealthReportStorage.java
@@ -197,17 +197,17 @@ public interface HealthReportStorage {
   public Cursor getEventsSince(long time);
 
   /**
    * Ensure that a measurement and all of its fields are registered with the DB.
    * No fields will be processed if the measurement exists with the specified
    * version.
    *
    * @param measurement
-   *          a measurement name, such as "org.mozila.appInfo.appInfo".
+   *          a measurement name, such as "org.mozilla.appInfo.appInfo".
    * @param version
    *          a version number, such as '3'.
    * @param fields
    *          a {@link MeasurementFields} instance, consisting of a collection
    *          of field names.
    */
   public void ensureMeasurementInitialized(String measurement,
                                            int version,
--- a/mobile/android/base/db/BrowserDatabaseHelper.java
+++ b/mobile/android/base/db/BrowserDatabaseHelper.java
@@ -300,17 +300,17 @@ final class BrowserDatabaseHelper extend
                     " WHERE " + qualifyColumn(TABLE_BOOKMARKS, Bookmarks.TYPE)  + " = " + Bookmarks.TYPE_BOOKMARK + " AND " +
                                 qualifyColumn(TABLE_BOOKMARKS, Bookmarks.IS_DELETED)  + " = 0 AND " +
                                 qualifyColumn(TABLE_BOOKMARKS, Bookmarks.URL) +
                                     " NOT IN (SELECT " + History.URL + " FROM " + TABLE_HISTORY + ")" +
                     " UNION ALL" +
                     // History with and without bookmark.
                     " SELECT " + qualifyColumn(TABLE_BOOKMARKS, Bookmarks._ID) + " AS " + Combined.BOOKMARK_ID + ", " +
                                  qualifyColumn(TABLE_HISTORY, History.URL) + " AS " + Combined.URL + ", " +
-                                 // Prioritze bookmark titles over history titles, since the user may have
+                                 // Prioritize bookmark titles over history titles, since the user may have
                                  // customized the title for a bookmark.
                                  "COALESCE(" + qualifyColumn(TABLE_BOOKMARKS, Bookmarks.TITLE) + ", " +
                                                qualifyColumn(TABLE_HISTORY, History.TITLE) +")" + " AS " + Combined.TITLE + ", " +
                                  qualifyColumn(TABLE_HISTORY, History._ID) + " AS " + Combined.HISTORY_ID + ", " +
                                  qualifyColumn(TABLE_HISTORY, History.VISITS) + " AS " + Combined.VISITS + ", " +
                                  qualifyColumn(TABLE_HISTORY, History.DATE_LAST_VISITED) + " AS " + Combined.DATE_LAST_VISITED +
                     " FROM " + TABLE_HISTORY + " LEFT OUTER JOIN " + TABLE_BOOKMARKS +
                         " ON " + qualifyColumn(TABLE_BOOKMARKS, Bookmarks.URL) + " = " + qualifyColumn(TABLE_HISTORY, History.URL) +
@@ -355,17 +355,17 @@ final class BrowserDatabaseHelper extend
                     " WHERE " + qualifyColumn(TABLE_BOOKMARKS, Bookmarks.TYPE)  + " = " + Bookmarks.TYPE_BOOKMARK + " AND " +
                                 qualifyColumn(TABLE_BOOKMARKS, Bookmarks.IS_DELETED)  + " = 0 AND " +
                                 qualifyColumn(TABLE_BOOKMARKS, Bookmarks.URL) +
                                     " NOT IN (SELECT " + History.URL + " FROM " + TABLE_HISTORY + ")" +
                     " UNION ALL" +
                     // History with and without bookmark.
                     " SELECT " + qualifyColumn(TABLE_BOOKMARKS, Bookmarks._ID) + " AS " + Combined.BOOKMARK_ID + ", " +
                                  qualifyColumn(TABLE_HISTORY, History.URL) + " AS " + Combined.URL + ", " +
-                                 // Prioritze bookmark titles over history titles, since the user may have
+                                 // Prioritize bookmark titles over history titles, since the user may have
                                  // customized the title for a bookmark.
                                  "COALESCE(" + qualifyColumn(TABLE_BOOKMARKS, Bookmarks.TITLE) + ", " +
                                                qualifyColumn(TABLE_HISTORY, History.TITLE) +")" + " AS " + Combined.TITLE + ", " +
                                  "CASE " + qualifyColumn(TABLE_BOOKMARKS, Bookmarks.PARENT) + " WHEN " +
                                     Bookmarks.FIXED_READING_LIST_ID + " THEN " + Obsolete.Combined.DISPLAY_READER + " ELSE " +
                                     Obsolete.Combined.DISPLAY_NORMAL + " END AS " + Obsolete.Combined.DISPLAY + ", " +
                                  qualifyColumn(TABLE_HISTORY, History._ID) + " AS " + Combined.HISTORY_ID + ", " +
                                  qualifyColumn(TABLE_HISTORY, History.VISITS) + " AS " + Combined.VISITS + ", " +
@@ -414,17 +414,17 @@ final class BrowserDatabaseHelper extend
                                 qualifyColumn(TABLE_BOOKMARKS, Bookmarks.IS_DELETED)  + " = 0 AND " +
                                 qualifyColumn(TABLE_BOOKMARKS, Bookmarks.URL) +
                                     " NOT IN (SELECT " + History.URL + " FROM " + TABLE_HISTORY + ")" +
                     " UNION ALL" +
                     // History with and without bookmark.
                     " SELECT " + "CASE " + qualifyColumn(TABLE_BOOKMARKS, Bookmarks.IS_DELETED) + " WHEN 0 THEN " +
                                  qualifyColumn(TABLE_BOOKMARKS, Bookmarks._ID) +  " ELSE NULL END AS " + Combined.BOOKMARK_ID + ", " +
                                  qualifyColumn(TABLE_HISTORY, History.URL) + " AS " + Combined.URL + ", " +
-                                 // Prioritze bookmark titles over history titles, since the user may have
+                                 // Prioritize bookmark titles over history titles, since the user may have
                                  // customized the title for a bookmark.
                                  "COALESCE(" + qualifyColumn(TABLE_BOOKMARKS, Bookmarks.TITLE) + ", " +
                                                qualifyColumn(TABLE_HISTORY, History.TITLE) +")" + " AS " + Combined.TITLE + ", " +
                                  "CASE " + qualifyColumn(TABLE_BOOKMARKS, Bookmarks.PARENT) + " WHEN " +
                                     Bookmarks.FIXED_READING_LIST_ID + " THEN " + Obsolete.Combined.DISPLAY_READER + " ELSE " +
                                     Obsolete.Combined.DISPLAY_NORMAL + " END AS " + Obsolete.Combined.DISPLAY + ", " +
                                  qualifyColumn(TABLE_HISTORY, History._ID) + " AS " + Combined.HISTORY_ID + ", " +
                                  qualifyColumn(TABLE_HISTORY, History.VISITS) + " AS " + Combined.VISITS + ", " +
@@ -473,17 +473,17 @@ final class BrowserDatabaseHelper extend
                                 qualifyColumn(TABLE_BOOKMARKS, Bookmarks.IS_DELETED)  + " = 0 AND " +
                                 qualifyColumn(TABLE_BOOKMARKS, Bookmarks.URL) +
                                     " NOT IN (SELECT " + History.URL + " FROM " + TABLE_HISTORY + ")" +
                     " UNION ALL" +
                     // History with and without bookmark.
                     " SELECT " + "CASE " + qualifyColumn(TABLE_BOOKMARKS, Bookmarks.IS_DELETED) + " WHEN 0 THEN " +
                                  qualifyColumn(TABLE_BOOKMARKS, Bookmarks._ID) +  " ELSE NULL END AS " + Combined.BOOKMARK_ID + ", " +
                                  qualifyColumn(TABLE_HISTORY, History.URL) + " AS " + Combined.URL + ", " +
-                                 // Prioritze bookmark titles over history titles, since the user may have
+                                 // Prioritize bookmark titles over history titles, since the user may have
                                  // customized the title for a bookmark.
                                  "COALESCE(" + qualifyColumn(TABLE_BOOKMARKS, Bookmarks.TITLE) + ", " +
                                                qualifyColumn(TABLE_HISTORY, History.TITLE) +")" + " AS " + Combined.TITLE + ", " +
                                  qualifyColumn(TABLE_HISTORY, History._ID) + " AS " + Combined.HISTORY_ID + ", " +
                                  qualifyColumn(TABLE_HISTORY, History.VISITS) + " AS " + Combined.VISITS + ", " +
                                  qualifyColumn(TABLE_HISTORY, History.DATE_LAST_VISITED) + " AS " + Combined.DATE_LAST_VISITED +
                     " FROM " + TABLE_HISTORY + " LEFT OUTER JOIN " + TABLE_BOOKMARKS +
                         " ON " + qualifyColumn(TABLE_BOOKMARKS, Bookmarks.URL) + " = " + qualifyColumn(TABLE_HISTORY, History.URL) +
--- a/mobile/android/base/db/TopSitesCursorWrapper.java
+++ b/mobile/android/base/db/TopSitesCursorWrapper.java
@@ -61,17 +61,17 @@ public class TopSitesCursorWrapper imple
     private Cursor currentCursor;
 
     // The cursor for the top sites query
     private final Cursor topCursor;
 
     // The cursor for the pinned sites query
     private final Cursor pinnedCursor;
 
-    // The cursor for the sugested sites query
+    // The cursor for the suggested sites query
     private final Cursor suggestedCursor;
 
     // Associates pinned sites and their respective positions
     private SparseBooleanArray pinnedPositions;
 
     // Current position of the cursor
     private int currentPosition = -1;
 
--- a/mobile/android/base/docs/localeswitching.rst
+++ b/mobile/android/base/docs/localeswitching.rst
@@ -17,17 +17,17 @@ The user's choice of locale is stored in
 
 ``BrowserLocaleManager`` takes care of updating the active locale when asked to do so. It also manages persistence and retrieval of the locale preference.
 
 The question, then, is when to do so.
 
 Locale events
 =============
 
-One might imagine that we need only set the locale when our Application is instantiated, and when a new locale is set. Alas, that's not the case: whenever there's a configuration change (*e.g.*, screen rotation), when a new activity is started, and at other apparently random times, Android will supply our activities with a configuration that's been reset to the sytem locale.
+One might imagine that we need only set the locale when our Application is instantiated, and when a new locale is set. Alas, that's not the case: whenever there's a configuration change (*e.g.*, screen rotation), when a new activity is started, and at other apparently random times, Android will supply our activities with a configuration that's been reset to the system locale.
 
 For this reason, each starting activity must ask ``BrowserLocaleManager`` to fix its locale.
 
 Ideally, we also need to perform some amount of work when our configuration changes, when our activity is resumed, and perhaps when a result is returned from another activity, if that activity can change the app locale (as is the case for any activity that calls out to ``GeckoPreferences`` -- see ``BrowserApp#onActivityResult``).
 
 ``GeckoApp`` itself does some additional work, because it has particular performance constraints, and also is the typical root of the preferences activity.
 
 Here's an example of the work that a typical activity should do::
--- a/mobile/android/base/fxa/activities/FxAccountConfirmAccountActivity.java
+++ b/mobile/android/base/fxa/activities/FxAccountConfirmAccountActivity.java
@@ -136,17 +136,17 @@ public class FxAccountConfirmAccountActi
     case NeedsVerification:
       // This is what we're here to handle.
       break;
     case NeedsPassword:
     case NeedsUpgrade:
     case None:
     default:
       // We're not in the right place!  Redirect to status.
-      Logger.warn(LOG_TAG, "No need to verifiy Firefox Account that needs action " + neededAction.toString() +
+      Logger.warn(LOG_TAG, "No need to verify Firefox Account that needs action " + neededAction.toString() +
           " (in state " + state.getStateLabel() + ").");
       setResult(RESULT_CANCELED);
       this.redirectToActivity(FxAccountStatusActivity.class);
       return;
     }
 
     final String email = fxAccount.getEmail();
     final String text = getResources().getString(R.string.fxaccount_confirm_account_verification_link, email);
--- a/mobile/android/base/fxa/activities/FxAccountStatusFragment.java
+++ b/mobile/android/base/fxa/activities/FxAccountStatusFragment.java
@@ -671,17 +671,17 @@ public class FxAccountStatusFragment
       } else {
         return false;
       }
       return true;
     }
   }
 
   /**
-   * Iterate through debug buttons, adding a special deubg preference click
+   * Iterate through debug buttons, adding a special debug preference click
    * listener to each of them.
    */
   protected void connectDebugButtons() {
     // Separate listener to really separate debug logic from main code paths.
     final OnPreferenceClickListener listener = new DebugPreferenceClickListener();
 
     // We don't want to use Android resource strings for debug UI, so we just
     // use the keys throughout.
--- a/mobile/android/base/fxa/authenticator/AndroidFxAccount.java
+++ b/mobile/android/base/fxa/authenticator/AndroidFxAccount.java
@@ -91,17 +91,17 @@ public class AndroidFxAccount {
     this.accountManager = AccountManager.get(this.context);
   }
 
   /**
    * Persist the Firefox account to disk as a JSON object. Note that this is a wrapper around
    * {@link AccountPickler#pickle}, and is identical to calling it directly.
    * <p>
    * Note that pickling is different from bundling, which involves operations on a
-   * {@link android.os.Bundle Bundle} object of miscellaenous data associated with the account.
+   * {@link android.os.Bundle Bundle} object of miscellaneous data associated with the account.
    * See {@link #persistBundle} and {@link #unbundle} for more.
    */
   public void pickle(final String filename) {
     AccountPickler.pickle(this, filename);
   }
 
   public Account getAndroidAccount() {
     return this.account;
--- a/mobile/android/base/gfx/GLController.java
+++ b/mobile/android/base/gfx/GLController.java
@@ -179,18 +179,18 @@ public class GLController {
         }
 
         if (!AttemptPreallocateEGLSurfaceForCompositor()) {
             return;
         }
 
         // Only try to create the compositor if we have a valid surface and gecko is up. When these
         // two conditions are satisfied, we can be relatively sure that the compositor creation will
-        // happen without needing to block anyhwere. Do it with a sync gecko event so that the
-        // android doesn't have a chance to destroy our surface in between.
+        // happen without needing to block anywhere. Do it with a synchronous Gecko event so that the
+        // Android doesn't have a chance to destroy our surface in between.
         if (GeckoThread.checkLaunchState(GeckoThread.LaunchState.GeckoRunning)) {
             GeckoAppShell.sendEventToGeckoSync(GeckoEvent.createCompositorCreateEvent(mWidth, mHeight));
         }
     }
 
     void compositorCreated() {
         // This is invoked on the compositor thread, while the java UI thread
         // is blocked on the gecko sync event in updateCompositor() above
@@ -203,17 +203,17 @@ public class GLController {
 
     private void initEGL() {
         if (mEGL != null) {
             return;
         }
 
         // This join() should not be necessary, but makes this code a bit easier to think about.
         // The EGLPreloadingThread should long be done by now, and even if it's not,
-        // it shouldn't be a problem to be initalizing EGL from two different threads.
+        // it shouldn't be a problem to be initializing EGL from two different threads.
         // Still, having this join() here means that we don't have to wonder about what
         // kind of caveats might exist with EGL initialization reentrancy on various drivers.
         try {
             mEGLPreloadingThread.join();
         } catch (InterruptedException e) {
             Log.w(LOGTAG, "EGLPreloadingThread interrupted", e);
         }
 
--- a/mobile/android/base/gfx/GeckoLayerClient.java
+++ b/mobile/android/base/gfx/GeckoLayerClient.java
@@ -76,18 +76,18 @@ class GeckoLayerClient implements LayerV
     /* The current viewport metrics.
      * This is volatile so that we can read and write to it from different threads.
      * We avoid synchronization to make getting the viewport metrics from
      * the compositor as cheap as possible. The viewport is immutable so
      * we don't need to worry about anyone mutating it while we're reading from it.
      * Specifically:
      * 1) reading mViewportMetrics from any thread is fine without synchronization
      * 2) writing to mViewportMetrics requires synchronizing on the layer controller object
-     * 3) whenver reading multiple fields from mViewportMetrics without synchronization (i.e. in
-     *    case 1 above) you should always frist grab a local copy of the reference, and then use
+     * 3) whenever reading multiple fields from mViewportMetrics without synchronization (i.e. in
+     *    case 1 above) you should always first grab a local copy of the reference, and then use
      *    that because mViewportMetrics might get reassigned in between reading the different
      *    fields. */
     private volatile ImmutableViewportMetrics mViewportMetrics;
     private LayerView.OnMetricsChangedListener mViewportChangeListener;
 
     private ZoomConstraints mZoomConstraints;
 
     private boolean mGeckoIsReady;
@@ -646,17 +646,17 @@ class GeckoLayerClient implements LayerV
         }
     }
 
     /** The compositor invokes this function on every frame to figure out what part of the
       * page to display, and to inform Java of the current display port. Since it is called
       * on every frame, it needs to be ultra-fast.
       * It avoids taking any locks or allocating any objects. We keep around a
       * mCurrentViewTransform so we don't need to allocate a new ViewTransform
-      * everytime we're called. NOTE: we might be able to return a ImmutableViewportMetrics
+      * every time we're called. NOTE: we might be able to return a ImmutableViewportMetrics
       * which would avoid the copy into mCurrentViewTransform.
       */
     @WrapElementForJNI(allowMultithread = true)
     public ViewTransform syncViewportInfo(int x, int y, int width, int height, float resolution, boolean layersUpdated) {
         // getViewportMetrics is thread safe so we don't need to synchronize.
         // We save the viewport metrics here, so we later use it later in
         // createFrame (which will be called by nsWindow::DrawWindowUnderlay on
         // the native side, by the compositor). The viewport
--- a/mobile/android/base/gfx/JavaPanZoomController.java
+++ b/mobile/android/base/gfx/JavaPanZoomController.java
@@ -391,17 +391,17 @@ class JavaPanZoomController
     }
 
     /** This function must be called on the UI thread. */
     public void startingNewEventBlock(MotionEvent event, boolean waitingForTouchListeners) {
         checkMainThread();
         mSubscroller.cancel();
         if (waitingForTouchListeners && (event.getAction() & MotionEvent.ACTION_MASK) == MotionEvent.ACTION_DOWN) {
             // this is the first touch point going down, so we enter the pending state
-            // seting the state will kill any animations in progress, possibly leaving
+            // setting the state will kill any animations in progress, possibly leaving
             // the page in overscroll
             setState(PanZoomState.WAITING_LISTENERS);
         }
     }
 
     /** This must be called on the UI thread. */
     @Override
     public void pageRectUpdated() {
@@ -1193,17 +1193,17 @@ class JavaPanZoomController
 
         synchronized (mTarget.getLock()) {
             float zoomFactor = getAdjustedZoomFactor(detector.getCurrentSpan() / prevSpan);
             scrollBy(mLastZoomFocus.x - detector.getFocusX(),
                      mLastZoomFocus.y - detector.getFocusY());
             mLastZoomFocus.set(detector.getFocusX(), detector.getFocusY());
             ImmutableViewportMetrics target = getMetrics().scaleTo(zoomFactor, mLastZoomFocus);
 
-            // If overscroll is diabled, prevent zooming outside the normal document pans.
+            // If overscroll is disabled, prevent zooming outside the normal document pans.
             if (mX.getOverScrollMode() == View.OVER_SCROLL_NEVER || mY.getOverScrollMode() == View.OVER_SCROLL_NEVER) {
                 target = getValidViewportMetrics(target);
             }
             mTarget.setViewportMetrics(target);
         }
 
         GeckoEvent event = GeckoEvent.createNativeGestureEvent(GeckoEvent.ACTION_MAGNIFY, mLastZoomFocus, getMetrics().zoomFactor);
         GeckoAppShell.sendEventToGecko(event);
--- a/mobile/android/base/gfx/LayerMarginsAnimator.java
+++ b/mobile/android/base/gfx/LayerMarginsAnimator.java
@@ -40,17 +40,17 @@ public class LayerMarginsAnimator {
     private LayerMarginsAnimationTask mAnimationTask;
     /* This interpolator is used for the above mentioned animation */
     private final DecelerateInterpolator mInterpolator;
     /* The GeckoLayerClient whose margins will be animated */
     private final GeckoLayerClient mTarget;
     /* The distance that has been scrolled since either the first touch event,
      * or since the margins were last fully hidden */
     private final PointF mTouchTravelDistance;
-    /* The ID of the prefs listener for the show-marginss threshold */
+    /* The ID of the prefs listener for the show-margins threshold */
     private Integer mPrefObserverId;
 
     public LayerMarginsAnimator(GeckoLayerClient aTarget, LayerView aView) {
         // Assign member variables from parameters
         mTarget = aTarget;
 
         // Create other member variables
         mMaxMargins = new RectF();
--- a/mobile/android/base/home/BrowserSearch.java
+++ b/mobile/android/base/home/BrowserSearch.java
@@ -329,17 +329,17 @@ public class BrowserSearch extends HomeF
         EventDispatcher.getInstance().registerGeckoThreadListener(this,
             "SearchEngines:Data");
     }
 
     @Override
     public void onActivityCreated(Bundle savedInstanceState) {
         super.onActivityCreated(savedInstanceState);
 
-        // Intialize the search adapter
+        // Initialize the search adapter
         mAdapter = new SearchAdapter(getActivity());
         mList.setAdapter(mAdapter);
 
         // Only create an instance when we need it
         mSuggestionLoaderCallbacks = null;
 
         // Create callbacks before the initial loader is started
         mCursorLoaderCallbacks = new CursorLoaderCallbacks();
--- a/mobile/android/base/home/HomeConfig.java
+++ b/mobile/android/base/home/HomeConfig.java
@@ -1276,17 +1276,17 @@ public final class HomeConfig {
 
                 mEnabledCount++;
                 if (mEnabledCount == 1 || panelConfig.isDefault()) {
                     setDefault(panelConfig.getId());
                 }
 
                 installed = true;
 
-                // Add an event to the queue if a new panel is sucessfully installed.
+                // Add an event to the queue if a new panel is successfully installed.
                 mEventQueue.add(GeckoEvent.createBroadcastEvent("HomePanels:Installed", panelConfig.getId()));
             }
 
             mHasChanged = true;
             return installed;
         }
 
         /**
@@ -1312,17 +1312,17 @@ public final class HomeConfig {
             if (!panelConfig.isDisabled()) {
                 mEnabledCount--;
             }
 
             if (isCurrentDefaultPanel(panelConfig)) {
                 findNewDefault();
             }
 
-            // Add an event to the queue if a panel is succesfully uninstalled.
+            // Add an event to the queue if a panel is successfully uninstalled.
             mEventQueue.add(GeckoEvent.createBroadcastEvent("HomePanels:Uninstalled", panelId));
 
             mHasChanged = true;
             return true;
         }
 
         /**
          * Moves panel associated with panelId to the specified position.
--- a/mobile/android/base/home/RemoteTabsExpandableListFragment.java
+++ b/mobile/android/base/home/RemoteTabsExpandableListFragment.java
@@ -230,17 +230,17 @@ public class RemoteTabsExpandableListFra
         // There is a delicate interaction, pre-KitKat, between
         // {add,remove}FooterView and setAdapter. setAdapter wraps the adapter
         // in a footer/header-managing adapter, which only happens (pre-KitKat)
         // if a footer/header is present. Therefore, we add our footer before
         // setting the adapter; and then we remove it afterward. From there on,
         // we can add/remove it at will.
         mList.addFooterView(mFooterView, null, true);
 
-        // Intialize adapter
+        // Initialize adapter
         mAdapter = new RemoteTabsExpandableListAdapter(R.layout.home_remote_tabs_group, R.layout.home_remote_tabs_child, null);
         mList.setAdapter(mAdapter);
 
         // Now the adapter is wrapped; we can remove our footer view.
         mList.removeFooterView(mFooterView);
 
         // Create callbacks before the initial loader is started
         mCursorLoaderCallbacks = new CursorLoaderCallbacks();
--- a/mobile/android/base/home/TwoLinePageRow.java
+++ b/mobile/android/base/home/TwoLinePageRow.java
@@ -246,17 +246,17 @@ public class TwoLinePageRow extends Line
         if (url.equals(mPageUrl)) {
             return;
         }
 
         // Blank the Favicon, so we don't show the wrong Favicon if we scroll and miss DB.
         mFavicon.clearImage();
         Favicons.cancelFaviconLoad(mLoadFaviconJobId);
 
-        // Displayed RecentTabsPanel urls may refer to pages openned in readermode, so we
+        // Displayed RecentTabsPanel URLs may refer to pages opened in reader mode, so we
         // remove the about:reader prefix to ensure the Favicon loads properly.
         final String pageURL = AboutPages.isAboutReader(url) ?
             ReaderModeUtils.getUrlFromAboutReader(url) : url;
         mLoadFaviconJobId = Favicons.getSizedFaviconForPageFromLocal(getContext(), pageURL, mFaviconListener);
 
         updateDisplayedUrl(url);
     }
 
--- a/mobile/android/base/locales/en-US/android_strings.dtd
+++ b/mobile/android/base/locales/en-US/android_strings.dtd
@@ -537,17 +537,17 @@ just addresses the organization to follo
 <!-- Miscellaneous -->
 <!-- LOCALIZATION NOTE (ellipsis): This text is appended to a piece of text that does not fit in the
      designated space. Use the unicode ellipsis char, \u2026, or use "..." if \u2026 doesn't suit
      traditions in your locale. -->
 <!ENTITY ellipsis "…">
 
 <!ENTITY colon ":">
 
-<!-- These are only used for accessiblity for the done and overflow-menu buttons in the actionbar.
+<!-- These are only used for accessibility for the done and overflow-menu buttons in the actionbar.
      They are never shown to users -->
 <!ENTITY actionbar_menu "Menu">
 <!ENTITY actionbar_done "Done">
 
 <!-- Localization note (remote_tabs_last_synced): the variable is replaced by a
      "relative time span string" produced by Android.  This string describes the
      time the tabs were last synced relative to the current time; examples
      include "42 minutes ago", "4 days ago", "last week", etc. The subject of
--- a/mobile/android/base/overlays/service/OverlayActionService.java
+++ b/mobile/android/base/overlays/service/OverlayActionService.java
@@ -3,36 +3,32 @@
  * 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/. */
 
 package org.mozilla.gecko.overlays.service;
 
 import android.app.Service;
 import android.content.Context;
 import android.content.Intent;
-import android.os.Bundle;
 import android.os.IBinder;
-import android.os.Parcelable;
 import android.util.Log;
 import android.view.View;
 import org.mozilla.gecko.Assert;
-import org.mozilla.gecko.overlays.OverlayConstants;
 import org.mozilla.gecko.overlays.service.sharemethods.AddBookmark;
 import org.mozilla.gecko.overlays.service.sharemethods.AddToReadingList;
 import org.mozilla.gecko.overlays.service.sharemethods.SendTab;
 import org.mozilla.gecko.overlays.service.sharemethods.ShareMethod;
 import org.mozilla.gecko.overlays.ui.OverlayToastHelper;
 import org.mozilla.gecko.util.ThreadUtils;
 
 import java.util.EnumMap;
 import java.util.Map;
 
 import static org.mozilla.gecko.overlays.OverlayConstants.ACTION_PREPARE_SHARE;
 import static org.mozilla.gecko.overlays.OverlayConstants.ACTION_SHARE;
-import static org.mozilla.gecko.overlays.OverlayConstants.EXTRA_SHARE_METHOD;
 
 /**
  * A service to receive requests from overlays to perform actions.
  * See OverlayConstants for details of the intent API supported by this service.
  *
  * Currently supported operations are:
  *
  * Add bookmark*
@@ -115,17 +111,17 @@ public class OverlayActionService extend
 
                 ShareMethod shareMethod = shareTypes.get(shareData.shareMethodType);
 
                 final ShareMethod.Result result = shareMethod.handle(shareData);
                 // Dispatch the share to the targeted ShareMethod.
                 switch (result) {
                     case SUCCESS:
                         // \o/
-                        OverlayToastHelper.showSuccessToast(getApplicationContext(), shareMethod.getSuccessMesssage());
+                        OverlayToastHelper.showSuccessToast(getApplicationContext(), shareMethod.getSuccessMessage());
                         break;
                     case TRANSIENT_FAILURE:
                         // An OnClickListener to do this share again.
                         View.OnClickListener retryListener = new View.OnClickListener() {
                             @Override
                             public void onClick(View view) {
                                 handleShare(intent);
                             }
--- a/mobile/android/base/overlays/service/sharemethods/AddBookmark.java
+++ b/mobile/android/base/overlays/service/sharemethods/AddBookmark.java
@@ -20,17 +20,17 @@ public class AddBookmark extends ShareMe
 
         LocalBrowserDB browserDB = new LocalBrowserDB(GeckoProfile.DEFAULT_PROFILE);
         browserDB.addBookmark(resolver, shareData.title, shareData.url);
 
         return Result.SUCCESS;
     }
 
     @Override
-    public String getSuccessMesssage() {
+    public String getSuccessMessage() {
         return context.getResources().getString(R.string.bookmark_added);
     }
 
     // Unused.
     @Override
     public String getFailureMessage() {
         return null;
     }
--- a/mobile/android/base/overlays/service/sharemethods/AddToReadingList.java
+++ b/mobile/android/base/overlays/service/sharemethods/AddToReadingList.java
@@ -35,17 +35,17 @@ public class AddToReadingList extends Sh
         values.put(Bookmarks.URL, shareData.url);
 
         browserDB.addReadingListItem(resolver, values);
 
         return Result.SUCCESS;
     }
 
     @Override
-    public String getSuccessMesssage() {
+    public String getSuccessMessage() {
         return context.getResources().getString(R.string.reading_list_added);
     }
 
     // Unused.
     @Override
     public String getFailureMessage() {
         return null;
     }
--- a/mobile/android/base/overlays/service/sharemethods/SendTab.java
+++ b/mobile/android/base/overlays/service/sharemethods/SendTab.java
@@ -284,17 +284,17 @@ public class SendTab extends ShareMethod
                 out.add(entry.getValue());
             }
         }
 
         return out;
     }
 
     @Override
-    public String getSuccessMesssage() {
+    public String getSuccessMessage() {
         return context.getResources().getString(R.string.sync_text_tab_sent);
     }
 
     @Override
     public String getFailureMessage() {
         return context.getResources().getString(R.string.sync_text_tab_not_sent);
     }
 
--- a/mobile/android/base/overlays/service/sharemethods/ShareMethod.java
+++ b/mobile/android/base/overlays/service/sharemethods/ShareMethod.java
@@ -28,17 +28,17 @@ public abstract class ShareMethod {
      * @param url The URL of the page to be shared. Never null.
      * @param extra A Parcelable of ShareMethod-specific parameters that may be provided by the
      *              caller. Generally null, but this field may be used to provide extra input to
      *              the ShareMethod (such as the device to share to in the case of SendTab).
      * @return true if the attempt to share was a success. False in the event of an error.
      */
     public abstract Result handle(ShareData shareData);
 
-    public abstract String getSuccessMesssage();
+    public abstract String getSuccessMessage();
     public abstract String getFailureMessage();
 
     /**
      * Enum representing the possible results of performing a share.
      */
     public static enum Result {
         // Victory!
         SUCCESS,
--- a/mobile/android/base/overlays/ui/OverlayDialogButton.java
+++ b/mobile/android/base/overlays/ui/OverlayDialogButton.java
@@ -37,17 +37,17 @@ public class OverlayDialogButton extends
     private String enabledLabel;
     private Drawable enabledIcon;
 
     // Label/icon used when disabled.
     private String disabledLabel;
     private Drawable disabledIcon;
 
     // Click listeners used when enabled/disabled. Currently, disabledOnClickListener is set
-    // intenally to something that causes the icon to pulse.
+    // internally to something that causes the icon to pulse.
     private OnClickListener enabledOnClickListener;
     private OnClickListener disabledOnClickListener;
 
     private boolean isEnabled = true;
 
     public OverlayDialogButton(Context context) {
         super(context);
         init(context);
--- a/mobile/android/base/prompts/IntentChooserPrompt.java
+++ b/mobile/android/base/prompts/IntentChooserPrompt.java
@@ -3,17 +3,16 @@
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 package org.mozilla.gecko.prompts;
 
 import org.mozilla.gecko.GeckoAppShell;
 import org.mozilla.gecko.util.ThreadUtils;
 import org.mozilla.gecko.widget.GeckoActionProvider;
 
-import android.app.Activity;
 import android.content.ComponentName;
 import android.content.Context;
 import android.content.Intent;
 import android.content.pm.PackageManager;
 import android.content.pm.ResolveInfo;
 import android.widget.ListView;
 import android.util.Log;
 
@@ -112,17 +111,17 @@ public class IntentChooserPrompt {
     }
 
     // Gets a list of PromptListItems for a GeckoActionProvider
     private ArrayList<PromptListItem> getItems(final Context context, final GeckoActionProvider provider) {
         final ArrayList<PromptListItem> items = new ArrayList<PromptListItem>();
 
         // Add any intents from the provider.
         final PackageManager packageManager = context.getPackageManager();
-        final ArrayList<ResolveInfo> infos = provider.getSortedActivites();
+        final ArrayList<ResolveInfo> infos = provider.getSortedActivities();
 
         for (final ResolveInfo info : infos) {
             items.add(getItemForResolveInfo(info, packageManager, provider.getIntent()));
         }
 
         return items;
     }
 
--- a/mobile/android/base/prompts/Prompt.java
+++ b/mobile/android/base/prompts/Prompt.java
@@ -371,29 +371,29 @@ public class Prompt implements OnClickLi
 
         return linearLayout;
     }
 
     /* Add the requested input elements to the dialog.
      *
      * @param builder
      *        the alert builder currently building this dialog.
-     * @return 
+     * @return
      *         return true if the inputs were added successfully. This may fail
-     *         if the requested input is compatible with this Android verison
+     *         if the requested input is compatible with this Android version.
      */
     private boolean addInputs(AlertDialog.Builder builder) {
         int length = mInputs == null ? 0 : mInputs.length;
         if (length == 0) {
             return true;
         }
 
         try {
             View root = null;
-            boolean scrollable = false; // If any of the innuts are scrollable, we won't wrap this in a ScrollView
+            boolean scrollable = false; // If any of the inputs are scrollable, we won't wrap this in a ScrollView
 
             if (length == 1) {
                 root = wrapInput(mInputs[0]);
                 scrollable |= mInputs[0].getScrollable();
             } else if (length > 1) {
                 LinearLayout linearLayout = new LinearLayout(mContext);
                 linearLayout.setOrientation(LinearLayout.VERTICAL);
                 for (int i = 0; i < length; i++) {
--- a/mobile/android/base/tabs/TabsLayoutItemView.java
+++ b/mobile/android/base/tabs/TabsLayoutItemView.java
@@ -109,12 +109,12 @@ public class TabsLayoutItemView extends 
     public int getTabId() {
         return mTabId;
     }
 
     public void setThumbnail(Drawable thumbnail) {
         mThumbnail.setImageDrawable(thumbnail);
     }
 
-    public void setCloseVisibile(boolean visible) {
+    public void setCloseVisible(boolean visible) {
         mCloseButton.setVisibility(visible ? View.VISIBLE : View.INVISIBLE);
     }
 }
--- a/mobile/android/base/tabs/TabsListLayout.java
+++ b/mobile/android/base/tabs/TabsListLayout.java
@@ -76,17 +76,17 @@ class TabsListLayout extends TwoWayView
         setOnTouchListener(mSwipeListener);
         setOnScrollListener(mSwipeListener.makeScrollListener());
 
         setRecyclerListener(new RecyclerListener() {
             @Override
             public void onMovedToScrapHeap(View view) {
                 TabsLayoutItemView item = (TabsLayoutItemView) view;
                 item.setThumbnail(null);
-                item.setCloseVisibile(true);
+                item.setCloseVisible(true);
             }
         });
     }
 
     private class TabsListLayoutAdapter extends TabsLayoutAdapter {
         private final Button.OnClickListener mCloseOnClickListener;
         public TabsListLayoutAdapter (Context context) {
             super(context);
@@ -392,17 +392,17 @@ class TabsListLayout extends TwoWayView
 
 
         animator.addPropertyAnimationListener(new PropertyAnimator.PropertyAnimationListener() {
             @Override
             public void onPropertyAnimationStart() { }
             @Override
             public void onPropertyAnimationEnd() {
                 TabsLayoutItemView tab = (TabsLayoutItemView) view;
-                tab.setCloseVisibile(true);
+                tab.setCloseVisible(true);
             }
         });
 
         animator.start();
     }
 
     private class TabSwipeGestureListener implements View.OnTouchListener {
         // same value the stock browser uses for after drag animation velocity in pixels/sec
@@ -577,17 +577,17 @@ class TabsListLayout extends TwoWayView
                     // set pressed state on the swiped view.
                     if (isScrollingX || isScrollingY)
                         cancelCheckForTap();
 
                     if (isSwipingToClose) {
                         mSwiping = true;
                         TabsListLayout.this.requestDisallowInterceptTouchEvent(true);
 
-                        ((TabsLayoutItemView) mSwipeView).setCloseVisibile(false);
+                        ((TabsLayoutItemView) mSwipeView).setCloseVisible(false);
 
                         // Stops listview from highlighting the touched item
                         // in the list when swiping.
                         MotionEvent cancelEvent = MotionEvent.obtain(e);
                         cancelEvent.setAction(MotionEvent.ACTION_CANCEL |
                                 (e.getActionIndex() << MotionEvent.ACTION_POINTER_INDEX_SHIFT));
                         TabsListLayout.this.onTouchEvent(cancelEvent);
                         cancelEvent.recycle();
--- a/mobile/android/base/tests/ContentContextMenuTest.java
+++ b/mobile/android/base/tests/ContentContextMenuTest.java
@@ -12,17 +12,17 @@ import android.util.DisplayMetrics;
 abstract class ContentContextMenuTest extends PixelTest {
     private static final int MAX_TEST_TIMEOUT = 10000;
 
     // This method opens the context menu of any web content. It assumes that the page is already loaded
     protected void openWebContentContextMenu(String waitText) {
         DisplayMetrics dm = new DisplayMetrics();
         getActivity().getWindowManager().getDefaultDisplay().getMetrics(dm);
 
-        // The web content we are trying to open the context menu for should be positioned at the top of the page, at least 60px heigh and aligned to the middle
+        // The web content we are trying to open the context menu for should be positioned at the top of the page, at least 60px high and aligned to the middle
         float top = mDriver.getGeckoTop() + 30 * dm.density;
         float left = mDriver.getGeckoLeft() + mDriver.getGeckoWidth() / 2;
 
         mAsserter.dumpLog("long-clicking at "+left+", "+top);
         mSolo.clickLongOnScreen(left, top);
         waitForText(waitText);
     }
 
--- a/mobile/android/base/tests/components/GeckoViewComponent.java
+++ b/mobile/android/base/tests/components/GeckoViewComponent.java
@@ -88,17 +88,17 @@ public class GeckoViewComponent extends 
                 public boolean isSatisfied() {
                     return isActive();
                 }
             });
             return this;
         }
 
         /**
-         * Returns whether an InputConnection is avaiable.
+         * Returns whether an InputConnection is available.
          * An InputConnection is available when text input is being directed to the
          * GeckoView, and a text field (input, textarea, contentEditable, etc.) is
          * currently focused inside the GeckoView.
          */
         private boolean hasInputConnection() {
             final InputMethodManager imm = getInputMethodManager();
             return imm.isActive(getView()) && imm.isAcceptingText();
         }
--- a/mobile/android/base/tests/helpers/AssertionHelper.java
+++ b/mobile/android/base/tests/helpers/AssertionHelper.java
@@ -13,17 +13,17 @@ import org.mozilla.gecko.tests.UITestCon
  * Provides assertions in a JUnit-like API that wraps the robocop Assert interface.
  */
 public final class AssertionHelper {
     // Assert.ok has a "diag" ("diagnostic") parameter that has no useful purpose.
     private static final String DIAG_STRING = "";
 
     private static Assert sAsserter;
 
-    private AssertionHelper() { /* To disallow instantation. */ }
+    private AssertionHelper() { /* To disallow instantiation. */ }
 
     protected static void init(final UITestContext context) {
         sAsserter = context.getAsserter();
     }
 
     public static void fAssertArrayEquals(final String message, final byte[] expecteds, final byte[] actuals) {
         sAsserter.ok(Arrays.equals(expecteds, actuals), message, DIAG_STRING);
     }
--- a/mobile/android/base/tests/testBrowserProvider.java
+++ b/mobile/android/base/tests/testBrowserProvider.java
@@ -327,17 +327,17 @@ public class testBrowserProvider extends
             }
 
             boolean seenException = false;
             try {
                 applyResult = mProvider.applyBatch(mOperations);
             } catch (OperationApplicationException ex) {
                 seenException = true;
             }
-            mAsserter.is(seenException, false, "Batch updating succeded");
+            mAsserter.is(seenException, false, "Batch updating succeeded");
             mOperations.clear();
 
             // Delete all visits
             for (int i = 0; i < TESTCOUNT; i++) {
                 builder = ContentProviderOperation.newDelete(BrowserContract.History.CONTENT_URI);
                 builder.withSelection(BrowserContract.History.URL  + " = ?",
                                       new String[] {"http://www.test.org/" + i});
                 builder.withExpectedCount(1);
--- a/mobile/android/base/tests/testFilterOpenTab.java
+++ b/mobile/android/base/tests/testFilterOpenTab.java
@@ -11,17 +11,17 @@ import org.mozilla.gecko.db.BrowserContr
 import org.mozilla.gecko.db.TabsProvider;
 
 import android.content.ContentProvider;
 import android.content.Context;
 import android.database.Cursor;
 
 /**
  * Tests that local tabs are filtered prior to upload.
- * - create a set of tabs and perists them through TabsAccessor.
+ * - create a set of tabs and persists them through TabsAccessor.
  * - verifies that tabs are filtered by querying.
  */
 public class testFilterOpenTab extends ContentProviderTest {
     private static final String[] TABS_PROJECTION_COLUMNS = new String[] {
                                                                 BrowserContract.Tabs.TITLE,
                                                                 BrowserContract.Tabs.URL,
                                                                 BrowserContract.Clients.GUID,
                                                                 BrowserContract.Clients.NAME
--- a/mobile/android/base/tests/testHistory.java
+++ b/mobile/android/base/tests/testHistory.java
@@ -56,13 +56,13 @@ public class testHistory extends AboutHo
                 return true;
             }
         }, MAX_WAIT_MS);
 
         mAsserter.isnot(mFirstChild, null, "Got history item");
         mSolo.clickOnView(mFirstChild);
 
         // The first item here (since it was just visited) should be a "Switch to tab" item
-        // i.e. don't expect a DOMCOntentLoaded event
+        // i.e. don't expect a DOMContentLoaded event
         verifyPageTitle(StringHelper.ROBOCOP_BLANK_PAGE_03_URL);
         verifyUrl(url3);
     }
 }
--- a/mobile/android/base/tests/testShareLink.java
+++ b/mobile/android/base/tests/testShareLink.java
@@ -42,17 +42,17 @@ public class testShareLink extends About
         selectMenuItem(StringHelper.SHARE_LABEL);
         if (Build.VERSION.SDK_INT >= 14) {
             // Check for our own sync in the submenu.
             waitForText("Sync$");
         } else {
             waitForText("Share via");
         }
 
-        // Get list of current avaliable share activities and verify them
+        // Get list of current available share activities and verify them
         shareOptions = getShareOptions();
         ArrayList<String> displayedOptions = getShareOptionsList();
         for (String option:shareOptions) {
              // Verify if the option is present in the list of displayed share options
              mAsserter.ok(optionDisplayed(option, displayedOptions), "Share option found", option);
         }
 
         // Test share from the urlbar context menu
@@ -144,17 +144,17 @@ public class testShareLink extends About
         for (String option:shareOptions) {
              // Verify if the option is present in the list of displayed share options
              mAsserter.ok(optionDisplayed(option, displayedOptions), "Share option for " + openedFrom + (openedFrom.equals("urlbar") ? "" : " item") + " found", option);
         }
         mActions.sendSpecialKey(Actions.SpecialKey.BACK);
         /**
          * Adding a wait for the page title to make sure the Awesomebar will be dismissed
          * Because of Bug 712370 the Awesomescreen will be dismissed when the Share Menu is closed
-         * so there is no need for handeling this different depending on where the share menu was invoced from
+         * so there is no need for handling this different depending on where the share menu was invoked from
          * TODO: Look more into why the delay is needed here now and it was working before
          */
         waitForText(urlTitle);
     }
 
     // Create a SEND intent and get the possible activities offered
     public ArrayList<String> getShareOptions() {
         ArrayList<String> shareOptions = new ArrayList<>();
--- a/mobile/android/base/tests/testTitleBar.java
+++ b/mobile/android/base/tests/testTitleBar.java
@@ -15,22 +15,22 @@ public class testTitleBar extends PixelT
 
         String blank1 = getAbsoluteUrl(StringHelper.ROBOCOP_BLANK_PAGE_01_URL);
         String title = StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE;
 
         // Loading a page
         inputAndLoadUrl(blank1);
         verifyPageTitle(title);
 
-        // Verifing the full URL is displayed in the URL Bar
+        // Ensure the full URL is displayed in the URL Bar
         selectOption(StringHelper.SHOW_PAGE_ADDRESS_LABEL);
         inputAndLoadUrl(blank1);
         verifyUrl(blank1);
 
-        // Verifing the title is displayed in the URL Bar
+        // Ensure the title is displayed in the URL Bar
         selectOption(StringHelper.SHOW_PAGE_TITLE_LABEL);
         inputAndLoadUrl(blank1);
         verifyPageTitle(title);
     }
 
     // Entering settings, changing the options: show title/page address option and verifing the device type because for phone there is an extra back action to exit the settings menu
     public void selectOption(String option) {
         selectSettingsItem(StringHelper.DISPLAY_SECTION_LABEL, StringHelper.TITLE_BAR_LABEL);
--- a/mobile/android/base/tests/testVkbOverlap.java
+++ b/mobile/android/base/tests/testVkbOverlap.java
@@ -65,17 +65,17 @@ public class testVkbOverlap extends Pixe
         paintExpecter.unregisterListener();
         painted = mDriver.getPaintedSurface();
         try {
             // if the vkb scrolled into view as expected, then the number of green pixels now visible should be about the
             // same as it was before, since the green pixels indicate the text input is in view. use a fudge factor of 0.9 to
             // account for borders and such of the text input which might still be out of view.
             int newCount = countGreenPixels(painted);
 
-            // if zooming is allowed, the number of green pixels visible should have increased substatially
+            // if zooming is allowed, the number of green pixels visible should have increased substantially
             if (shouldZoom) {
                 mAsserter.ok(newCount > greenPixelCount * 1.5, "testVkbOverlap", "Found " + newCount + " green pixels after tapping; expected " + greenPixelCount);
             } else {
                 mAsserter.ok((Math.abs(greenPixelCount - newCount) / greenPixelCount < 0.1), "testVkbOverlap", "Found " + newCount + " green pixels after tapping; expected " + greenPixelCount);
             }
         } finally {
             painted.close();
         }
--- a/mobile/android/base/toolbar/CanvasDelegate.java
+++ b/mobile/android/base/toolbar/CanvasDelegate.java
@@ -16,17 +16,17 @@ import android.graphics.Shader;
 
 class CanvasDelegate {
     Paint mPaint;
     PorterDuffXfermode mMode;
     DrawManager mDrawManager;
 
     // DrawManager would do a default draw of the background.
     static interface DrawManager {
-        public void defaultDraw(Canvas cavas);
+        public void defaultDraw(Canvas canvas);
     }
 
     CanvasDelegate(DrawManager drawManager, Mode mode) {
         mDrawManager = drawManager;
 
         // DST_IN masks, DST_OUT clips.
         mMode = new PorterDuffXfermode(mode);
 
--- a/mobile/android/base/toolbar/SiteIdentityPopup.java
+++ b/mobile/android/base/toolbar/SiteIdentityPopup.java
@@ -97,17 +97,17 @@ public class SiteIdentityPopup extends A
             mVerifier.setText(verifier + "\n" + encrypted);
 
             mContent.setPadding(0, 0, 0, 0);
             mIdentity.setVisibility(View.VISIBLE);
         }
     }
 
     private void addMixedContentNotification(boolean blocked) {
-        // Remove any exixting mixed content notification.
+        // Remove any existing mixed content notification.
         removeMixedContentNotification();
         mMixedContentNotification = new DoorHanger(mContext, DoorHanger.Theme.DARK);
 
         String message;
         if (blocked) {
             message = mContext.getString(R.string.blocked_mixed_content_message_top) + "\n\n" +
                       mContext.getString(R.string.blocked_mixed_content_message_bottom);
         } else {
--- a/mobile/android/base/toolbar/ToolbarDisplayLayout.java
+++ b/mobile/android/base/toolbar/ToolbarDisplayLayout.java
@@ -575,17 +575,17 @@ public class ToolbarDisplayLayout extend
     void prepareStartEditingAnimation() {
         // Hide page actions/stop buttons immediately
         ViewHelper.setAlpha(mPageActionLayout, 0);
         ViewHelper.setAlpha(mStop, 0);
     }
 
     void prepareStopEditingAnimation(PropertyAnimator anim) {
         // Fade toolbar buttons (page actions, stop) after the entry
-        // is schrunk back to its original size.
+        // is shrunk back to its original size.
         anim.attach(mPageActionLayout,
                     PropertyAnimator.Property.ALPHA,
                     1);
 
         anim.attach(mStop,
                     PropertyAnimator.Property.ALPHA,
                     1);
     }
--- a/mobile/android/base/updater/UpdateService.java
+++ b/mobile/android/base/updater/UpdateService.java
@@ -217,17 +217,18 @@ public class UpdateService extends Inten
         int autoDownloadPolicy = getAutoDownloadPolicy();
 
 
         /**
          * We only start a download automatically if one of following criteria are met:
          *
          * - We have a FORCE_DOWNLOAD flag passed in
          * - The preference is set to 'always'
-         * - The preference is set to 'wifi' and we are using a non-metered network (i.e. the user is OK with large data transfers occuring)
+         * - The preference is set to 'wifi' and we are using a non-metered network (i.e. the user
+         *   is OK with large data transfers occurring)
          */
         boolean shouldStartDownload = hasFlag(flags, UpdateServiceHelper.FLAG_FORCE_DOWNLOAD) ||
             autoDownloadPolicy == UpdateServiceHelper.AUTODOWNLOAD_ENABLED ||
             (autoDownloadPolicy == UpdateServiceHelper.AUTODOWNLOAD_WIFI && !ConnectivityManagerCompat.isActiveNetworkMetered(mConnectivityManager));
 
         if (!shouldStartDownload) {
             Log.i(LOGTAG, "not initiating automatic update download due to policy " + autoDownloadPolicy);
             sendCheckUpdateResult(UpdateServiceHelper.CheckUpdateResult.AVAILABLE);
--- a/mobile/android/base/util/GeckoRequest.java
+++ b/mobile/android/base/util/GeckoRequest.java
@@ -18,17 +18,17 @@ public abstract class GeckoRequest {
     private final String data;
 
     /**
      * Creates a request that can be dispatched using
      * {@link GeckoAppShell#sendRequestToGecko(GeckoRequest)}.
      *
      * @param name The name of the event associated with this request, which must have a
      *             Gecko-side listener registered to respond to this request.
-     * @param data Data to send with this request, which can be any object serializeable by
+     * @param data Data to send with this request, which can be any object serializable by
      *             {@link JSONObject#put(String, Object)}.
      */
     @RobocopTarget
     public GeckoRequest(String name, Object data) {
         this.name = name;
         final JSONObject message = new JSONObject();
         try {
             message.put("id", id);
--- a/mobile/android/base/util/WebActivityMapper.java
+++ b/mobile/android/base/util/WebActivityMapper.java
@@ -49,17 +49,17 @@ public final class WebActivityMapper {
          * If 'type' is present in data object, uses the value as the MIME type.
          */
         @Override
         public String getMime(JSONObject data) throws JSONException {
             return data.optString("type", null);
         }
 
         /**
-         * If 'uri' or 'url' is present in data object, uses the respecitve value as the Uri.
+         * If 'uri' or 'url' is present in data object, uses the respective value as the Uri.
          */
         @Override
         public String getUri(JSONObject data) throws JSONException {
             // Will return uri or url if present.
             String uri = data.optString("uri", null);
             return uri != null ? uri : data.optString("url", null);
         }
     }
--- a/mobile/android/base/webapp/UninstallListener.java
+++ b/mobile/android/base/webapp/UninstallListener.java
@@ -141,13 +141,13 @@ public class UninstallListener extends B
         public DelayedStartupTask(GeckoApp app) {
             mApp = app;
         }
 
         @Override
         public void run() {
             ThreadUtils.assertOnBackgroundThread();
 
-            // Perform webapp uninstalls as appropiate.
+            // Perform webapp uninstalls as appropriate.
             UninstallListener.initUninstallPackageScan(mApp.getApplicationContext());
         }
     }
 }
--- a/mobile/android/base/widget/ActivityChooserModel.java
+++ b/mobile/android/base/widget/ActivityChooserModel.java
@@ -196,22 +196,16 @@ public class ActivityChooserModel extend
     private static final String ATTRIBUTE_TIME = "time";
 
     /**
      * Attribute for the choice weight.
      */
     private static final String ATTRIBUTE_WEIGHT = "weight";
 
     /**
-     * The default name of the choice history file.
-     */
-    public static final String DEFAULT_HISTORY_FILE_NAME =
-        "activity_choser_model_history.xml";
-
-    /**
      * The default maximal length of the choice history.
      */
     public static final int DEFAULT_HISTORY_MAX_LENGTH = 50;
 
     /**
      * The amount with which to inflate a chosen activity when set as default.
      */
     private static final int DEFAULT_ACTIVITY_INFLATION = 5;
@@ -322,29 +316,23 @@ public class ActivityChooserModel extend
     /**
      * Flag whether to reload the activities for the current intent.
      */
     boolean mReloadActivities;
 
     /**
      * Policy for controlling how the model handles chosen activities.
      */
-    private OnChooseActivityListener mActivityChoserModelPolicy;
+    private OnChooseActivityListener mActivityChooserModelPolicy;
 
     /**
      * Gets the data model backed by the contents of the provided file with historical data.
      * Note that only one data model is backed by a given file, thus multiple calls with
      * the same file name will return the same model instance. If no such instance is present
      * it is created.
-     * <p>
-     * <strong>Note:</strong> To use the default historical data file clients should explicitly
-     * pass as file name {@link #DEFAULT_HISTORY_FILE_NAME}. If no persistence of the choice
-     * history is desired clients should pass <code>null</code> for the file name. In such
-     * case a new model is returned for each invocation.
-     * </p>
      *
      * <p>
      * <strong>Always use difference historical data files for semantically different actions.
      * For example, sharing is different from importing.</strong>
      * </p>
      *
      * @param context Context for loading resources.
      * @param historyFileName File name with choice history, <code>null</code>
@@ -497,20 +485,20 @@ public class ActivityChooserModel extend
 
             ComponentName chosenName = new ComponentName(
                     chosenActivity.resolveInfo.activityInfo.packageName,
                     chosenActivity.resolveInfo.activityInfo.name);
 
             Intent choiceIntent = new Intent(mIntent);
             choiceIntent.setComponent(chosenName);
 
-            if (mActivityChoserModelPolicy != null) {
+            if (mActivityChooserModelPolicy != null) {
                 // Do not allow the policy to change the intent.
                 Intent choiceIntentCopy = new Intent(choiceIntent);
-                final boolean handled = mActivityChoserModelPolicy.onChooseActivity(this,
+                final boolean handled = mActivityChooserModelPolicy.onChooseActivity(this,
                         choiceIntentCopy);
                 if (handled) {
                     return null;
                 }
             }
 
             HistoricalRecord historicalRecord = new HistoricalRecord(chosenName,
                     System.currentTimeMillis(), DEFAULT_HISTORICAL_RECORD_WEIGHT);
@@ -522,17 +510,17 @@ public class ActivityChooserModel extend
 
     /**
      * Sets the listener for choosing an activity.
      *
      * @param listener The listener.
      */
     public void setOnChooseActivityListener(OnChooseActivityListener listener) {
         synchronized (mInstanceLock) {
-            mActivityChoserModelPolicy = listener;
+            mActivityChooserModelPolicy = listener;
         }
     }
 
     /**
      * Gets the default activity, The default activity is defined as the one
      * with highest rank i.e. the first one in the list of activities that can
      * handle the intent.
      *
--- a/mobile/android/base/widget/GeckoActionProvider.java
+++ b/mobile/android/base/widget/GeckoActionProvider.java
@@ -155,17 +155,17 @@ public class GeckoActionProvider {
             mOnTargetListener.onTargetSelected();
         }
     }
 
     public void setOnTargetSelectedListener(OnTargetSelectedListener listener) {
         mOnTargetListener = listener;
     }
 
-    public ArrayList<ResolveInfo> getSortedActivites() {
+    public ArrayList<ResolveInfo> getSortedActivities() {
         ArrayList<ResolveInfo> infos = new ArrayList<ResolveInfo>();
 
         ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mHistoryFileName);
 
         // Populate the sub-menu with a sub set of the activities.
         final int count = dataModel.getActivityCount();
         for (int i = 0; i < count; i++) {
             infos.add(dataModel.getActivity(i));
--- a/mobile/android/base/widget/GeckoSwipeRefreshLayout.java
+++ b/mobile/android/base/widget/GeckoSwipeRefreshLayout.java
@@ -38,17 +38,17 @@ import android.view.animation.Animation.
 import android.view.animation.AnimationUtils;
 import android.view.animation.DecelerateInterpolator;
 import android.view.animation.Interpolator;
 import android.view.animation.Transformation;
 import android.widget.AbsListView;
 
 /**
  * GeckoSwipeRefreshLayout is mostly lifted from Android's support library (v4) with these
- * modfications:
+ * modifications:
  *  - Removes elastic "rubber banding" effect when overscrolling the child view.
  *  - Changes the height of the progress bar to match the height of HomePager's page indicator.
  *  - Uses a rectangle rather than a circle for the SwipeProgressBar indicator.
  *
  * This class also embeds package-access dependent classes SwipeProgressBar and
  * BakedBezierInterpolator.
  *
  * Original source: https://android.googlesource.com/platform/frameworks/support/+/
--- a/mobile/android/base/widget/TwoWayView.java
+++ b/mobile/android/base/widget/TwoWayView.java
@@ -6187,29 +6187,29 @@ public class TwoWayView extends AdapterV
                 }
             } else {
                 fireOnSelected();
                 performAccessibilityActionsOnSelected();
             }
         }
     }
 
-    private class WindowRunnnable {
+    private class WindowRunnable {
         private int mOriginalAttachCount;
 
         public void rememberWindowAttachCount() {
             mOriginalAttachCount = getWindowAttachCount();
         }
 
         public boolean sameWindow() {
             return hasWindowFocus() && getWindowAttachCount() == mOriginalAttachCount;
         }
     }
 
-    private class PerformClick extends WindowRunnnable implements Runnable {
+    private class PerformClick extends WindowRunnable implements Runnable {
         int mClickMotionPosition;
 
         @Override
         public void run() {
             if (mDataChanged) {
                 return;
             }
 
@@ -6274,17 +6274,17 @@ public class TwoWayView extends AdapterV
                     }
                 } else {
                     mTouchMode = TOUCH_MODE_DONE_WAITING;
                 }
             }
         }
     }
 
-    private class CheckForLongPress extends WindowRunnnable implements Runnable {
+    private class CheckForLongPress extends WindowRunnable implements Runnable {
         @Override
         public void run() {
             final int motionPosition = mMotionPosition;
             final View child = getChildAt(motionPosition - mFirstPosition);
 
             if (child != null) {
                 final long longPressId = mAdapter.getItemId(mMotionPosition);
 
@@ -6299,17 +6299,17 @@ public class TwoWayView extends AdapterV
                     child.setPressed(false);
                 } else {
                     mTouchMode = TOUCH_MODE_DONE_WAITING;
                 }
             }
         }
     }
 
-    private class CheckForKeyLongPress extends WindowRunnnable implements Runnable {
+    private class CheckForKeyLongPress extends WindowRunnable implements Runnable {
         @Override
         public void run() {
             if (!isPressed() || mSelectedPosition < 0) {
                 return;
             }
 
             final int index = mSelectedPosition - mFirstPosition;
             final View v = getChildAt(index);
--- a/mobile/android/search/java/org/mozilla/search/autocomplete/SearchBar.java
+++ b/mobile/android/search/java/org/mozilla/search/autocomplete/SearchBar.java
@@ -34,17 +34,17 @@ import android.widget.TextView;
 
 public class SearchBar extends FrameLayout {
 
     private final EditText editText;
     private final ImageButton clearButton;
     private final ImageView engineIcon;
 
     private final Drawable focusedBackground;
-    private final Drawable defaultBackgound;
+    private final Drawable defaultBackground;
 
     private final InputMethodManager inputMethodManager;
 
     private TextListener listener;
 
     private boolean active;
 
     public interface TextListener {
@@ -106,17 +106,17 @@ public class SearchBar extends FrameLayo
             @Override
             public void onClick(View v) {
                 editText.setText("");
             }
         });
         engineIcon = (ImageView) findViewById(R.id.engine_icon);
 
         focusedBackground = getResources().getDrawable(R.drawable.edit_text_focused);
-        defaultBackgound = getResources().getDrawable(R.drawable.edit_text_default);
+        defaultBackground = getResources().getDrawable(R.drawable.edit_text_default);
 
         inputMethodManager = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
     }
 
     public void setText(String text) {
         editText.setText(text);
 
         // Move cursor to end of search input.
@@ -161,17 +161,17 @@ public class SearchBar extends FrameLayo
         editText.setFocusableInTouchMode(active);
 
         final int leftDrawable = active ? R.drawable.search_icon_active : R.drawable.search_icon_inactive;
         editText.setCompoundDrawablesWithIntrinsicBounds(leftDrawable, 0, 0, 0);
 
         // We can't use a selector drawable because we apply a color filter to the focused
         // background at run time.
         // TODO: setBackgroundDrawable is deprecated in API level 16
-        editText.setBackgroundDrawable(active ? focusedBackground : defaultBackgound);
+        editText.setBackgroundDrawable(active ? focusedBackground : defaultBackground);
 
         if (active) {
             editText.requestFocus();
             inputMethodManager.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT);
         } else {
             editText.clearFocus();
             inputMethodManager.hideSoftInputFromWindow(editText.getWindowToken(), 0);
         }