rem: /* An entry is corrupt. Go to next element. */ 
add: /* The user cancelled the master password dialog */ if (e.result==Components.results.NS_ERROR_NOT_AVAILABLE) { window.close(); return false; } /* Otherwise an entry is corrupt. Go to next element. */ 
context: function LoadSignons() {  // loads signons into table  var enumerator = passwordmanager.enumerator;  var count = 0;  while (enumerator.hasMoreElements()) {    var nextPassword;    try {      nextPassword = enumerator.getNext();      nextPassword = nextPassword.QueryInterface(Components.interfaces.nsIPassword);      var host = nextPassword.host;      var user = nextPassword.user;      var password = nextPassword.password;      var rawuser = user;      // if no username supplied, try to parse it out of the url      if (user == "") {        var ioService = Components.classes["@mozilla.org/network/io-service;1"]                      .getService(Components.interfaces.nsIIOService);        try {          user = ioService.newURI(host, null, null).username;          if (user == "") {            user = "<>";          }        } catch(e) {          user = "<>";        }      }      if (encrypted) {        user = kSignonBundle.getFormattedString("encrypted", [user], 1);      }      signons[count] = new Signon(count++, host, user, rawuser, password);    } catch(e) {      /* An entry is corrupt. Go to next element. */    }  }  signonsTreeView.rowCount = signons.length;  // sort and display the table  signonsTree.treeBoxObject.view = signonsTreeView;  SignonColumnSort('host');  // disable "remove all signons" button if there are no signons  var element = document.getElementById("removeAllSignons");  var toggle = document.getElementById("togglePasswords")  if (signons.length == 0 || gSelectUserInUse) {    element.setAttribute("disabled","true");    toggle.setAttribute("disabled","true");  } else {    element.removeAttribute("disabled");    toggle.removeAttribute("disabled");  }   return true;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/738096736494b3adef655f9b79faab4e3b3869fb/SignonViewer.js/buggy/extensions/wallet/signonviewer/resources/content/SignonViewer.js