Closed
Bug 365841
Opened 19 years ago
Closed 18 years ago
Remember Password Prompt triggers an exta OnFocus event with Enter key form submital
Categories
(Toolkit :: Password Manager, defect)
Toolkit
Password Manager
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jlewark, Unassigned)
References
()
Details
(Whiteboard: CLOSEME 07/03)
Attachments
(1 file)
|
888 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
When using the enter key it appears that the Remember Password Prompt causes the onFocus event of the password event to fire after selecting "Not Now". This did not occur until I upgraded to the following version:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
The onFocus event does not re-fire in IE using the enter key or if the password prompt has previously had "Never for this site" selected or if you click on the submit.
* Firefox 2.0 for XP did not have this problem.
Reproducible: Always
Steps to Reproduce:
1. Clear saved password or password settings for website if set
2. Submit Form using Enter/Return key from field with OnFocus event
3. OnFocus Event Will Fire unexpectedly after remember password prompt
Actual Results:
After Remember Password Prompt is complete onFocus events fire on the HTML page
Expected Results:
After Remember Password Prompt is complete form should submit as if Remember Password Prompt had never appeared.
An example of HTML/Javascript code that works in IE and FF 1.5 but not in FF 2.0 can be seen below (In Firefox 2.0.0.1 this results in a blank password being submited on hitting the enter key from within the password field):
<HTML>
<HEAD>
<script type="text/javascript">
<!--
function highlight(field) {
field.focus();
field.value='';
field.select();
}// -->
</script>
</HEAD>
<FORM action="login.php" method="POST">
<label for="username" class="floatLabel">username</label>
<input type="text" name="username" id="username" value="username" size="10" maxlength="50" onfocus="highlight(this);">
<br>
<label for="password" class="floatLabel">password</label>
<input type="password" name="password" id="password" value="password" size="10" maxlength="50" onfocus="highlight(this);">
<input type="image" src="http://pic.photobucket.com/index/gray_login.gif" name="login" alt="login to share videos and images" id="inptSubmit" onclick="document.forms.loginform.submit();return false;">
</FORM>
</BODY>
</HTML>
This is a test case using the code provided in the comment from the reporter.
Reporter, could you please test using the attached test case on Firefox 2.0.0.4 and let me know if it is working ok now. I have tested it on Windows XP SP2 with Firefox 2.0.0.4 and the latest Minefield nightly.
If there is no response in a week, this bug is going to be resolved as WORKSFORME.
I just tested this on Mac OSX 10.4.10 and Linux using Firefox 2.0.0.4 and the test case works ok. Reporter, please try again and let us know how it goes.
Still no response from the reporter and I cannot reproduce this bug. Bug is being resolved WORKSFORME.
Reporter, if you still have this problem after my suggestions, please reopen this bug.
Thanks.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
| Assignee | ||
Updated•17 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•