Bug 813451: Update-available notifications don't get lost anymore, so the code from bug 801987 is no longer needed. r=marshall_law
authorChris Jones <jones.chris.g@gmail.com>
Tue, 20 Nov 2012 18:08:32 -0800
changeset 113861 fa74a5dfd0ca39f5c03fff3e51066bc2e387bb06
parent 113860 b71748955cf35fa864c53d1409e7e0213238bc5d
child 113862 8dafa8b0a2b96499b0e8f3a4ab6a6380af8ce55e
push id18422
push usercjones@mozilla.com
push dateWed, 21 Nov 2012 02:08:40 +0000
treeherdermozilla-inbound@fa74a5dfd0ca [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarshall_law
bugs813451, 801987
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 813451: Update-available notifications don't get lost anymore, so the code from bug 801987 is no longer needed. r=marshall_law
b2g/components/UpdatePrompt.js
--- a/b2g/components/UpdatePrompt.js
+++ b/b2g/components/UpdatePrompt.js
@@ -316,24 +316,16 @@ UpdatePrompt.prototype = {
       log("Error: Couldn't reboot into recovery to apply FOTA update " +
           aOsUpdatePath);
     }
   },
 
   forceUpdateCheck: function UP_forceUpdateCheck() {
     log("Forcing update check");
 
-    // If we already have an active update available, don't try to
-    // download again, just prompt for install.
-    if (Services.um.activeUpdate) {
-      this.setUpdateStatus("check-complete");
-      this.showApplyPrompt(Services.um.activeUpdate);
-      return;
-    }
-
     let checker = Cc["@mozilla.org/updates/update-checker;1"]
                     .createInstance(Ci.nsIUpdateChecker);
     checker.checkForUpdates(this._updateCheckListener, true);
   },
 
   handleEvent: function UP_handleEvent(evt) {
     if (evt.type !== "mozContentEvent") {
       return;