23 Commits

Author SHA1 Message Date
bryner%brianryner.com
70ce18d57a If the user has not set a master password and wants to use password manager, initialize the master password to an empty string. (bug 217409)
git-svn-id: svn://10.0.0.236/trunk@146408 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-28 05:22:23 +00:00
bryner%brianryner.com
ab01a6727a Actually add the site to the reject list if the user said "Never for this site." Bug 216542.
git-svn-id: svn://10.0.0.236/trunk@146363 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-27 00:34:09 +00:00
bryner%brianryner.com
74b9d50d5e Make the password manager hold onto the pref branch so that the observers we register with it don't go away. Bug 216219.
git-svn-id: svn://10.0.0.236/trunk@146155 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-18 06:09:52 +00:00
ben%bengoodger.com
d92ce84202 Fix for bug 216474 - Browser crashes in password manager. Ensure that we don't crash or overwrite variables used to hold valid password data fields with null. r=bryner
git-svn-id: svn://10.0.0.236/trunk@146147 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-17 21:06:36 +00:00
bryner%brianryner.com
05d8de869e Don't prompt to save passwords, or prefill passwords, if saving passwords is disabled (bug 216219).
git-svn-id: svn://10.0.0.236/trunk@146113 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-17 05:52:17 +00:00
bryner%brianryner.com
91a57e9634 Address a couple of potential security problems by ensuring that usernames and passwords that are part of a URL are not included in the realm; don't do any signon storing or prefilling if the URI does not support hostnames.
git-svn-id: svn://10.0.0.236/trunk@145891 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-12 03:43:46 +00:00
bryner%brianryner.com
10fcafb2d7 Fix crash if the password field is the first field in a form.
git-svn-id: svn://10.0.0.236/trunk@145824 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-09 20:38:09 +00:00
bryner%brianryner.com
69efaa3bdd Make this loop more correct - voidarray counts are PRInt32.
git-svn-id: svn://10.0.0.236/trunk@145788 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-09 03:48:34 +00:00
bryner%brianryner.com
366be79e73 Fix a compiler warning
git-svn-id: svn://10.0.0.236/trunk@145736 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-08 09:28:13 +00:00
bryner%brianryner.com
f28f6509e5 Split out nsSingleSignonPrompt into its own source file.
git-svn-id: svn://10.0.0.236/trunk@145589 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-05 05:40:14 +00:00
bryner%brianryner.com
27c8ae5e12 - Make the password manager control the autocomplete results for username fields, so that the list exactly matches the stored logins.
- Fix major problem where prompts weren't returning the field text.
- Only show the save checkbox in prompts if SAVE_PASSWORD_PERMANENTLY is given
- Only allow prompts to autocomplete if a password realm is given


git-svn-id: svn://10.0.0.236/trunk@145581 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-05 03:26:31 +00:00
bryner%brianryner.com
935bd89278 - Add DOMAutoComplete event, fired on a form input element when the user
selects a completion from the popup.
- Listen for DOMAutoComplete and Blur events instead of Change events to
trigger prefilling the password field.
- Fix an off-by-one error in the multi-user password change confirmation
(the stored password was being changed for the wrong entry).
- Fix skipping multiple logins when reading the signon file.
- Add missing license for Makefile.in.


git-svn-id: svn://10.0.0.236/trunk@145522 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-04 00:57:26 +00:00
bryner%brianryner.com
9105310b16 Lots of changes and bugfixes:
- Enable multiple username support by listening to change events for the username field when there is more than one stored login for the form.
 - Make the signon hashtable store a SignonHashEntry, which has a pointer to the first SignonDataEntry.  This lets us adjust the head of the linked list without a hashtable operation, and also fixes a case where we would continue using a deleted entry, leading to a crash.
- Change FindPasswordEntryFromSignonData to FnidPasswordEntryInternal, and refactor it a bit.
- Clean up prefill logic so that multiple forms on a page could be prefilled.
- Fix bug where the last input was used as the username field, instead of the input just before the password.
- Make sure we write out all entries for each realm.
- Make sure we include all entries in each realm when returning an enumerator.
- Remove some form manager cruft I missed in passwordManager.js.


git-svn-id: svn://10.0.0.236/trunk@145507 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-03 04:50:09 +00:00
bryner%brianryner.com
4aa4546bf9 Lazily decrypt username/password in nsIPassword objects so that requesting an enumerator doesn't immediately prompt for the master password.
git-svn-id: svn://10.0.0.236/trunk@145482 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-02 07:13:39 +00:00
bryner%brianryner.com
5844c9d8fa Don't use the username as the password when creating a stored login.
git-svn-id: svn://10.0.0.236/trunk@145474 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-02 05:24:34 +00:00
bryner%brianryner.com
1141ad4e16 Fix stdcall bustage on windows
git-svn-id: svn://10.0.0.236/trunk@145465 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-01 20:41:41 +00:00
bryner%brianryner.com
abbc944adb - Keep the user and password values encrypted in memory so that we can defer decryption (and prompting for the master password) until we need to prefill or the user brings up the manager.
- Add a comment about the randomness in secret decoder ring encryption.


git-svn-id: svn://10.0.0.236/trunk@145408 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-31 00:17:26 +00:00
bryner%brianryner.com
85272a10b3 If the user has already stored a login and enters the same username but a different password, don't prompt again, just update the stored password. (also fixes a bug where this caused two copies of the login to be stored)
git-svn-id: svn://10.0.0.236/trunk@145372 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 06:50:28 +00:00
bryner%brianryner.com
d53bc2b146 - Rename 'satchel' variables since this isn't part of satchel
- Make ~SignonDataEntry() delete the next entry in the list
- Fix some bustage from nsIFormSubmitObserver API changes
- Handle password change situations (2 or 3 password fields in a form)
- Make the signon file be written out when a reject list entry is added
- Fix the situation where RemoveUser() is called for the first of multiple stored logons for a host


git-svn-id: svn://10.0.0.236/trunk@145369 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 03:38:53 +00:00
bzbarsky%mit.edu
92d22dc940 More GetDocument bustage
git-svn-id: svn://10.0.0.236/trunk@145320 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-29 05:48:30 +00:00
bryner%brianryner.com
915bc8b228 Fixing windows build - need to use a constructor for initializing reference-type members.
git-svn-id: svn://10.0.0.236/trunk@145258 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-27 21:21:45 +00:00
bryner%brianryner.com
001e301e43 passwordmgr.properties, not satchel.properties
git-svn-id: svn://10.0.0.236/trunk@145245 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-27 07:06:49 +00:00
bryner%brianryner.com
5696818c75 Initial add of new (work-in-progress) password manager implementation. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@145243 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-27 07:05:27 +00:00