rem: window.close(); 
add: if (success) { if (params) {  params.SetInt(1, 1); }  window.close(); } 
context: function setPassword(){  var pk11db = Components.classes[nsPK11TokenDB].getService(nsIPK11TokenDB);  var token = pk11db.findTokenByName(tokenName);  var oldpwbox = document.getElementById("oldpw");  var initpw = oldpwbox.getAttribute("inited");  var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");  if (initpw == "false") {    try {      var passok = token.checkPassword(oldpwbox.value);      if (passok) {        token.changePassword(oldpwbox.value, pw1.value);        alert(bundle.GetStringFromName("pw_change_ok"));       } else {        alert(bundle.GetStringFromName("incorrect_pw"));       }    } catch (e) {      alert(bundle.GetStringFromName("failed_pw_change"));     }  } else {    token.initPassword(pw1.value);  }  if (params) {    // Return value    params.SetInt(1, 1);  }  // Terminate dialog  window.close();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8a2787a38fbe2ef7bce2be0bbf63468a2348a5aa/password.js/buggy/security/manager/pki/resources/content/password.js