Closed Bug 1393682 Opened 7 years ago Closed 7 years ago

Manual addition of passwords

Categories

(Toolkit :: Password Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 456904

People

(Reporter: mt, Unassigned)

Details

I use the password manager and am by now accustomed to digging values out as necessary, but when it fails to show the password save dialog (see for example bug 1393679), then I have no way of stuffing new values into the database.

I did work out how to use the browser console to jam a new value in, but it seems like it might be worthwhile adding an item to the context menu for a password field that forces the password save dialog to trigger based on the value of that password field.  That would be better than a manual addition process, which would be tricky given the number of fields that you have to get right.

~~~
loginmgr = Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager)
login = Cc["@mozilla.org/login-manager/loginInfo;1"].createInstance(Ci.nsILoginInfo)
login.init("<site>", "<formSubmitURL>", null, "<login>", "<password>", "<login-field-name>", "<password-field-name>")
~~~
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.