rem: var found = logins.some(function(l) { foundLogin = l; return (l.username == username); }); 
add: logins = foundLogins.filter(function (l) { var fit = (l.username.length <= maxUsernameLen && l.password.length <= maxPasswordLen); if (!fit) this.log("Ignored " + l.username + " login: won't fit");  return fit; }, this); 
context:                     var found = logins.some(function(l) {                                                foundLogin = l;                                                return (l.username == username);                                            });
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/7383100143c1a14e724e492e66f0b3c43df7e68a/nsLoginManager.js/buggy/toolkit/components/passwordmgr/src/nsLoginManager.js