rem: if (!disableUpdateCheck && !disableInstallUpdate && disableAppRestart) 
add: if (!disableUpdateCheck && !disableInstallUpdate && !appCanRestart && appNeedsRestart) 
context: function updateGlobalCommands() {  var disableInstallFile = false;  var disableUpdateCheck = true;  var disableInstallUpdate = true;  var disableAppRestart = false;  if (gExtensionsView.hasAttribute("update-operation")) {    disableInstallFile = true;    disableAppRestart = true;  }  else {    var children = gExtensionsView.children;    for (var i = 0; i < children.length; ++i) {      var child = children[i];      if (disableUpdateCheck && child.getAttribute("updateable") == "true")        disableUpdateCheck = false;      if (disableInstallUpdate && child.getAttribute("availableUpdateURL") != "none")        disableInstallUpdate = false;      if (!disableAppRestart && child.hasAttribute("state")) {        var state = child.getAttribute("state");        if (state != "success" && state != "failure")          disableAppRestart = true;      }      if (!disableUpdateCheck && !disableInstallUpdate && disableAppRestart)        break;    }  }  setElementDisabledByID("cmd_checkUpdatesAll", disableUpdateCheck);  setElementDisabledByID("cmd_installUpdatesAll", disableInstallUpdate);  setElementDisabledByID("cmd_restartApp", disableAppRestart);  setElementDisabledByID("cmd_installFile", disableInstallFile);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c8c368f38165ce35d0f2ed6e134396f6497f504c/extensions.js/clean/toolkit/mozapps/extensions/content/extensions.js