var passwordManager = Components.classes["@mozilla.org/passwordmanager;1"] .getService(Components.interfaces.nsIPasswordManager); var e = passwordManager.enumerator; while (e.hasMoreElements()) { var next = e.getNext().QueryInterface(Components.interfaces.nsIPassword); if (!next) continue;  if (realm == next.host) return true; } return false; 
var passwordManager = Components.classes["@mozilla.org/login-manager;1"] .getService(Components.interfaces.nsILoginManager); var passwords = passwordManager.getAllLogins({});   return passwords.some(function (login) { return (login.hostname == realm); }); 
function realmHasPasswords(location) {  if (!location)     return false;    var realm = makeURI(location).prePath;  var passwordManager = Components.classes["@mozilla.org/passwordmanager;1"]                                  .getService(Components.interfaces.nsIPasswordManager);  var e = passwordManager.enumerator;  while (e.hasMoreElements()) {    var next = e.getNext().QueryInterface(Components.interfaces.nsIPassword);    if (!next)      continue;        if (realm == next.host)      return true;  }  return false;}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/405957fd020626d50178ae11d0087ec336edc47c/security.js/buggy/browser/base/content/pageinfo/security.js