rem: var child = children[i]; if (disableUpdateCheck && child.getAttribute("updateable") == "true") 
add: if (children[i].getAttribute("updateable") == "true") { 
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.hasAttribute("availableUpdateURL"))        disableInstallUpdate = false;      if (!disableAppRestart && child.hasAttribute("state") && child.getAttribute("state") != "success")        disableAppRestart = true;    }  }  setElementDisabledByID("cmd_checkUpdatesAll", disableUpdateCheck);  setElementDisabledByID("cmd_installUpdatesAll", disableInstallUpdate);  setElementDisabledByID("cmd_restartApp", disableAppRestart);  setElementDisabledByID("cmd_installFile", disableInstallFile);}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/95df79a6f8bee75e4a8be539182e8098dfba104f/extensions.js/buggy/toolkit/mozapps/extensions/content/extensions.js