rem: alert("failed to login"); 
add: var alertStr = bundle.GetStringFromName("login_failed"); alert(alertStr); 
context: function doLogin(){  getSelectedItem();  // here's the workaround - login functions are with token  var selected_token = selected_slot.getToken();  try {    selected_token.login(false);    var tok_status = document.getElementById("tok_status");    if (selected_token.isLoggedIn()) {      tok_status.setAttribute("label",                           bundle.GetStringFromName("devinfo_stat_loggedin"));    } else {      tok_status.setAttribute("label",                       bundle.GetStringFromName("devinfo_stat_notloggedin"));    }  } catch (e) {    alert("failed to login");  }  enableButtons();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5df64f39ddcdd81c1b995813d94f2012cd6b2d0b/device_manager.js/buggy/security/manager/pki/resources/content/device_manager.js