mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1243729 - (m-b) Create another LoginInfo object when username is picked, r=MattN, a=lizzard
MozReview-Commit-ID: IRGUTFXiN9S
This commit is contained in:
parent
764078a82f
commit
cacbaf2742
@ -1351,7 +1351,13 @@ LoginManagerPrompter.prototype = {
|
||||
// Now that we know which login to use, modify its password.
|
||||
var selectedLogin = logins[selectedIndex.value];
|
||||
this.log("Updating password for user " + selectedLogin.username);
|
||||
this._updateLogin(selectedLogin, aNewLogin);
|
||||
var newLoginWithUsername = Cc["@mozilla.org/login-manager/loginInfo;1"].
|
||||
createInstance(Ci.nsILoginInfo);
|
||||
newLoginWithUsername.init(aNewLogin.hostname,
|
||||
aNewLogin.formSubmitURL, aNewLogin.httpRealm,
|
||||
selectedLogin.username, aNewLogin.password,
|
||||
selectedLogin.userNameField, aNewLogin.passwordField);
|
||||
this._updateLogin(selectedLogin, newLoginWithUsername);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user