rem: this.log("Adding login for " + aAuthInfo.username + 
add: this.log("New login seen for " + aAuthInfo.username + 
context:     promptAuth : function (aChannel, aLevel, aAuthInfo, aConfirm) {        var rememberLogin = false;        var selectedLogin = null;        var checkboxLabel = null;        this.log("===== promptAuth called =====");        var hostname, httpRealm;        [hostname, httpRealm] = this._GetAuthKey(aChannel, aAuthInfo);        if (this._pwmgr.getLoginSavingEnabled(hostname)) {            checkboxLabel = this.getLocalizedString("rememberPassword");            var foundLogins = this._pwmgr.findLogins({},                                            hostname, null, httpRealm);            // XXX Like the original code, we can't deal with multiple            // account selection. (bug 227632)            if (foundLogins.length > 0) {                selectedLogin = foundLogins[0];                this._SetAuthInfo(aAuthInfo, selectedLogin.username,                                             selectedLogin.password);                rememberLogin = true;            }        }        // if checkboxLabel is null, the checkbox won't be shown at all.        var checkbox = { value : rememberLogin };        var ok = this._promptService.promptAuth(this._window, aChannel,                                aLevel, aAuthInfo, checkboxLabel, checkbox);        rememberLogin = checkbox.value;        if (ok && rememberLogin) {            var newLogin = Cc["@mozilla.org/login-manager/loginInfo;1"]                                .createInstance(Ci.nsILoginInfo);            newLogin.init(hostname, null, httpRealm,                            aAuthInfo.username, aAuthInfo.password,                            "", "");            // If we didn't find an existing login, or if the username            // changed, save as a new login.            if (!selectedLogin ||                aAuthInfo.username != selectedLogin.username) {                // add as new                this.log("Adding login for " + aAuthInfo.username +                         " @ " + hostname + " (" + httpRealm + ")");                this._pwmgr.addLogin(newLogin);            } else if (selectedLogin &&                       aAuthInfo.password != selectedLogin.password) {                this.log("Updating password for " + aAuthInfo.username +                         " @ " + hostname + " (" + httpRealm + ")");                // update password                this._pwmgr.modifyLogin(foundLogins[0], newLogin);            } else {                this.log("Login unchanged, no further action needed.");                return ok;            }        }        return ok;    },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/76e443fcb0e3c4c0b44f8274e3b1a4c09c682c1a/nsLoginManagerPrompter.js/buggy/toolkit/components/passwordmgr/src/nsLoginManagerPrompter.js