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