add:  var button = document.getElementById("continueDialogButton"); if (!button.hidden && !disableAppRestart) button.focus(); 
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;    var appCanRestart = true;    var appNeedsRestart = false;    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 (appCanRestart && !appNeedsRestart && child.hasAttribute("state")) {        var state = child.getAttribute("state");        if (state == "success")          appNeedsRestart = true;        else if (state != "failure")          appCanRestart = false;      }      if (!disableUpdateCheck && !disableInstallUpdate &&          !appCanRestart && appNeedsRestart)        break;    }    disableAppRestart = !(appCanRestart && appNeedsRestart);  }  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/855dcb2f926a8f1099e9c01d98010b9541c2c06b/extensions.js/buggy/toolkit/mozapps/extensions/content/extensions.js