Bug 400892 Saving form passwords broken when info bars are not available. r=dolske,gavin,aM9=beltzner
authorbugzilla@standard8.plus.com
Thu, 25 Oct 2007 08:57:38 -0700
changeset 7174 dd77ddf3631187357f55ff7a01c147b32dceb4e2
parent 7173 03b00fa3a3b9e039c58a8f19de93fa471bd68880
child 7175 3dd3ed4d64afe53656d0dd680ea9e78f8c9c09cd
push idunknown
push userunknown
push dateunknown
reviewersdolske, gavin, aM9
bugs400892
milestone1.9a9pre
Bug 400892 Saving form passwords broken when info bars are not available. r=dolske,gavin,aM9=beltzner
toolkit/components/passwordmgr/src/nsLoginManagerPrompter.js
--- a/toolkit/components/passwordmgr/src/nsLoginManagerPrompter.js
+++ b/toolkit/components/passwordmgr/src/nsLoginManagerPrompter.js
@@ -454,17 +454,17 @@ LoginManagerPrompter.prototype = {
         //   0 - Save the login
         //   1 - Ignore the login this time
         //   2 - Never save logins for this site
         if (userChoice == 2) {
             this.log("Disabling " + aLogin.hostname + " logins by request.");
             this._pwmgr.setLoginSavingEnabled(aLogin.hostname, false);
         } else if (userChoice == 0) {
             this.log("Saving login for " + aLogin.hostname);
-            this._pwmgr.addLogin(aLogin.formLogin);
+            this._pwmgr.addLogin(aLogin);
         } else {
             // userChoice == 1 --> just ignore the login.
             this.log("Ignoring login.");
         }
     },
 
 
     /*