try { var key = new RegKey(); key.open(RegKey.prototype.ROOT_KEY_CLASSES_ROOT, "FirefoxHTML\\shell\\open\\command", key.ACCESS_READ); var commandKey = key.readStringValue(""); LOG("commandKey = " + commandKey);  result = (commandKey.indexOf("-requestPending") == -1); } catch (e) { LOG("failed to open command key for FirefoxHTML: " + e); 
   var app = Components.classes["@mozilla.org/xre/app-info;1"]. getService(Components.interfaces.nsIXULAppInfo); if (app.name == "Firefox") { try { var key = new RegKey(); key.open(RegKey.prototype.ROOT_KEY_CLASSES_ROOT, "FirefoxHTML\\shell\\open\\command", key.ACCESS_READ); var commandKey = key.readStringValue(""); LOG("commandKey = " + commandKey);  result = (commandKey.indexOf("-requestPending") == -1); } catch (e) { LOG("failed to open command key for FirefoxHTML: " + e); } key.close(); 
function checkRegistry(){  // XXX todo  // this is firefox specific  // figure out what to do about tbird and sunbird, etc     LOG("checkRegistry");  var result = false;  try {    var key = new RegKey();    key.open(RegKey.prototype.ROOT_KEY_CLASSES_ROOT, "FirefoxHTML\\shell\\open\\command", key.ACCESS_READ);    var commandKey = key.readStringValue("");    LOG("commandKey = " + commandKey);    // if "-requestPending" is not found, we need to do the cleanup    result = (commandKey.indexOf("-requestPending") == -1);  } catch (e) {    LOG("failed to open command key for FirefoxHTML: " + e);  }  key.close();  return result;}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/b4eb06adf98635c591ea5eb165edf73e0e086897/nsPostUpdateWin.js/buggy/toolkit/mozapps/update/src/nsPostUpdateWin.js