Firefox Password Submission Problem

Modeps

Lifer
Oct 24, 2000
17,254
44
91
http://sochl.com

you've got a simple form at the top of that page... all it does is take a username and password field, and passes them to a verification script. Nothing special going on.

If you type in your username / password then press return, you get a prompt for firefox to remember your password. I click no thanks, then as soon as the dialog box closes, the password *'s vanish and the form submits without passing the password to the script.

If you do the same, but instead CLICK the button for submission, it works fine.
If you have firefox remember your password, it wont fill in the fields, but if you type it in again and press enter, it works fine.

Seems like there's some funky-ness with the password manager, but I was wondering if anyone had this issue before? I've got the username and password auto-set with values as well to help illustrate what those boxes are for. I've tried removing the value for the password to see if thats the problem, but no changes in behavior.
 

Modeps

Lifer
Oct 24, 2000
17,254
44
91
Alright, well I found the issue. The password manager steals focus from the password box... then returns it after you click "no" or "yes" or whatever... so, I had an onfocus event on the password box, which was triggered when the manager returned its focus... Seems a little stupid, but I just removed the onfocus event and all is well.