Bug 718257 - Syntax error breaks add-on install restart doorhanger [r=mbrubeck]
authorMark Finkle <mfinkle@mozilla.com>
Sun, 15 Jan 2012 11:50:03 -0500
changeset 85791 fbf07f7e8c93f78c7062d9d90d5b3d700864df0c
parent 85790 3f4c56289ac7e6b4af02ada2fa3878be4baa4575
child 85792 1007541442b5da8170f8a7d5627210e75673ba88
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck
bugs718257
milestone12.0a1
Bug 718257 - Syntax error breaks add-on install restart doorhanger [r=mbrubeck]
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -2841,17 +2841,17 @@ var XPInstallObserver = {
   onInstallEnded: function(aInstall, aAddon) {
     let needsRestart = false;
     if (aInstall.existingAddon && (aInstall.existingAddon.pendingOperations & AddonManager.PENDING_UPGRADE))
       needsRestart = true;
     else if (aAddon.pendingOperations & AddonManager.PENDING_INSTALL)
       needsRestart = true;
 
     if (needsRestart) {
-      buttons = [{
+      let buttons = [{
         label: Strings.browser.GetStringFromName("notificationRestart.button"),
         callback: function() {
           // Notify all windows that an application quit has been requested
           let cancelQuit = Cc["@mozilla.org/supports-PRBool;1"].createInstance(Ci.nsISupportsPRBool);
           Services.obs.notifyObservers(cancelQuit, "quit-application-requested", "restart");
 
           // If nothing aborted, quit the app
           if (cancelQuit.data == false) {