Closed Bug 209423 Opened 22 years ago Closed 9 years ago

No prompt to save passwords when there are 2 <input type=password> with different values and no matching saved password

Categories

(Toolkit :: Password Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sgautherie, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.4) Gecko/20030529 Build Identifier: Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.4) Gecko/20030529 (that's v1.4rc1) An (private) account on this bank site may be needed to reproduce, and I can't give you mine obviously... Reproducible: Always Steps to Reproduce: 1. Fill in the form at the given URL 2. Press Enter (image), to submit the form Actual Results: I log in, without P.M. trigerring/asking me if I want to save the data; and I would like to ! The "submit" action is to "click" an 'image'-type field; I didn't see any javascript involved, unlike (related) bug 207147. Could it be because there are two (2) 'password'-type fields in the form ??
Addition to comment 0: There is no 'autocomplete=off' (which I overrided anyway). I have saved the page locally and started to reduce the testcase... But should P.M. activate when going from a login page to a web site ? If yes, I'll carry on building the reduced testcase; if not, what can be done ?
Typo in comment 1: read 'local' instead of 'login' "page".
Addition to comment 0: There is a [damn !] [ <script language="JavaScript"> //check for cookie if(!document.cookie){ //redirect to No Cookies page window.location.href = '/security/registered/failed/ganc'; } </script> ] on the page, so you need to enable the 'Read Cookies' for JavaScript in the Pref. (or use Proxomitron or the like ;-)) NB: I tried (both v1.3.1 and v1.4rc1) without using my local Proxomitron, and enabling the Pref.: same bug.
Addition to comment 3: [Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.3.1) Gecko/20030425] Bug was already there: probably "trunk, since the beginning" !?
[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624] (W98SE) Confirming bug on W98SE. --> Changing OS from W95 to W98, since I should not be running W95 anymore. <-- Another page with the "same" bug: I was able to log in without the P.M. activating. <http://www.grenouille.com/ma_grenouille/login.php?url=%2Fma_grenouille%2F>
OS: Windows 95 → Windows 98
[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5) Gecko/20030925] (v1.5rc2) (W98SE) Re comment 1 > > But should P.M. activate when going from a local (== <file:///xxx>) page to a web site (== <http(s)://xxx>) ? > The answer is NO: I had to install a local Apache server to test this bug :-> (I don't know if it "should", but at least it _don't_.) Re Description > > Could it be because there are two (2) 'password'-type fields in the form ?? > The answer is YES: changing any of them to 'text' type is a "(server) workaround" to this bug ! Re comment 5: I'll have to look closer at it to see if it's the same bug or not...
Summary: Password Manager (dialog) does not activate to ask for saving entered data → Password Manager (dialog) does not activate to ask for saving entered data, when there is 2 "password" input fields in the form
Addition to comment 6: I guess that the issue could be somewhere in WLLT_OnSubmit(...) defined at http://lxr.mozilla.org/seamonkey/source/extensions/wallet/src/wallet.cpp#3904 !?
Attached file (Comment 6) Reduced testcase (obsolete) —
Simply press the submit button of the case which you want to test :-)
While the initial real-life case bug is with 2 passwords; The testcase shows that a form with only a password field has the same bug; by looking at the code, the culprit seems to be the 'OKToPrompt' variable. Could someone write or point me to the specification of when the P.M. should activate ? Or is it up to the current maintainer' will: currently, nobody = anybody !? I would say: as soon as there is a (non empty !!?) password in the form, unless the 'autocomplete' attribute (& override preference) prevents it. But the actual code seems more complex... In addition, could someone tell me what a field 'schema' is ?
Attachment #132896 - Attachment is obsolete: true
Adding (CC) dwitte@s_u, with his approval, for comment/advice.
Product: Browser → Seamonkey
Assignee: dveditz → nobody
This problem exists also on other platforms and at least with Firefox 2.0.0.x (didn't try trunk), too. So I guess this should be in Core, but as there is no good component for this in there, I leave it in the suite product.
OS: Windows 98 → All
(In reply to comment #12) > *** Bug 234753 has been marked as a duplicate of this bug. *** bug 234753 comment1: {{ Michiel van Leeuwen (email: mvl+moz@) 2004-02-18 08:42:40 PDT there is a reason for this: usually forms with two passwords are signon forms. Wallet decides that it doesn't want to store them yet, but only when you logon. whether this is a good design is open for discussion :) }}
Removing defunct <https://www.fr.egg.com/...> URL. ***** (In reply to comment #14) > This problem exists also on other platforms and at least with Firefox 2.0.0.x > (didn't try trunk), too. [Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9pre) Gecko/2008040302 SeaMonkey/2.0a1pre] (nightly) (W2Ksp4) I think SM v2 has yet to replace "Wallet" to store passwords. The testcase still fully applies. [Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.13pre) Gecko/2008030203 BonEcho/2.0.0.13pre] (nightly) (W2Ksp4) [Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9b5pre) Gecko/2008032605 Minefield/3.0b5pre] (nightly) (W2Ksp4) Does FF v2 still use "Wallet" too ? I think FF v3, at least, does not anymore. The testcase "2 passwords" form still applies, but not the "1 password alone" form, which is WFM. I suggest to either: *File a separate bug for Firefox. *Wait for SeaMonkey to switch to the new Password Manager code, then "morph" this bug.
QA Contact: tpreston
it seems problem still applies with Firefox 3 (tested with 3.0.5)
Component: Passwords & Permissions → Password Manager
Product: SeaMonkey → Toolkit
QA Contact: password.manager
It seems like we bail intentionally as we see it as a password change form but don't know which of the two passwords are the new one. "Login Manager (parent): (no logins for this host -- pwchange ignored)"
Hardware: x86 → All
Summary: Password Manager (dialog) does not activate to ask for saving entered data, when there is 2 "password" input fields in the form → No prompt to save passwords when there are 2 <input type=password> with different values and no matching saved password
Recipes could help with this.
See Also: → password-recipes
Not sure what I saw 6 months ago but the testcase works fine for me now in a new profile. The 2nd password field value is the one that gets saved.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: