    this._index = 0;
    if (aItems) {
      for (var i = 0; i < aItems.length; ++i) {
-@@ -1860,24 +1710,23 @@ UpdateService.prototype = {
+@@ -1860,24 +1721,23 @@ UpdateService.prototype = {
        return null;
  
      // Choose the newest of the available minor and major updates.

+pref("jondobrowser.version", "0.5");
diff -r 323e068142c4 browser/base/content/aboutDialog.js
--- a/browser/base/content/aboutDialog.js	Tue Feb 26 09:16:10 2013 -0500
+++ b/browser/base/content/aboutDialog.js	Fri Mar 01 19:11:25 2013 +0100
@@ -304,17 +304,16 @@ appUpdater.prototype =
         gAppUpdater.selectPanel("noUpdatesFound");
         return;

  * Logs a string to the error console.
  * @param   string
  *          The string to write to the error console.
@@ -645,23 +508,28 @@ function getUpdatesDir() {
 /**
  * Get the Active Updates directory inside the directory where we apply the
  * background updates.
  * @return The active updates directory inside the updated directory, as a
  *         nsIFile object.
  */
 function getUpdatesDirInApplyToDir() {
   var dir = FileUtils.getDir(KEY_APPDIR, []);
+  // TODO: tested Linux-only currently
 #ifdef XP_MACOSX
-  dir = dir.parent.parent; // the bundle directory
+#else
+  dir = dir.parent.parent;
 #endif
   dir.append(UPDATED_DIR);
 #ifdef XP_MACOSX
   dir.append("Contents");
   dir.append("MacOS");
+#else
+  dir.append("App");
+  dir.append("Firefox");
 #endif
   dir.append(DIR_UPDATES);
   if (!dir.exists()) {
     dir.create(Ci.nsILocalFile.DIRECTORY_TYPE, 0755);
   }
   return dir;
 }
 #endif
@@ -786,16 +654,22 @@ function cleanUpUpdatesDir(aBackgroundUp
           }
           catch (e) {
             LOG("cleanUpUpdatesDir - failed to rename file " + logFile.path +
                 " to " + FILE_BACKUP_LOG);
           }
         }
         f.moveTo(dir, FILE_LAST_LOG);
         if (aBackgroundUpdate) {
+          // TODO: That is currently a hack to get a proper last-update.log
+          // after the update got applied...
+          dir.append("0");
+          if (dir.exists()) {
+            dir.remove(true);
+          }
           // We're not going to delete any files, so we can just
           // bail out of the loop right now.
           break;
         } else {
           continue;
         }
       }
       catch (e) {
@@ -897,29 +771,16 @@ function getUpdateChannel() {
   }
   catch (e) {
     Components.utils.reportError(e);
