rem: key.close(); 
context: 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;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/b4eb06adf98635c591ea5eb165edf73e0e086897/nsPostUpdateWin.js/clean/toolkit/mozapps/update/src/nsPostUpdateWin.js