Open Bug 613177 Opened 14 years ago Updated 2 years ago

problems with form submit

Categories

(Firefox :: General, defect)

3.6 Branch
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: dmitri1, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.2.12) Gecko/20101027 Fedora/3.6.12-1.fc13 Firefox/3.6.12
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.2.12) Gecko/20101027 Fedora/3.6.12-1.fc13 Firefox/3.6.12

Consider this html snippet:
<html>
<body>
<form onSubmit="alert('Submit!'); return false;">
<input type="text" name="aaa" onBlur="alert('Blur!')">
<input type="submit">
</form>
</body>
</html>

If you type something in text field and immediately click on submit button (not leaving text field), then only blur event handler will be called, you will see no 'submit' alert;

Reproducible: Sometimes

Steps to Reproduce:
1. Load html snippet from details
2. Type something in text field
3. Click on submit button. Text field should not lose focus before, basically click immediately without doing something else.
Actual Results:  
Only 'blur' alert is shown. No 'submit' alert.

Expected Results:  
Firstly 'blur' alert, then 'submit' alert should appear.
Component: Developer Tools → General
QA Contact: developer.tools → general
Component: General → Developer Tools
Summary: wrong javascript events generation → problems with form submit
Dmitri: this is not a Developer Tools issue. It will be routed correctly.
Component: Developer Tools → General
Version: unspecified → 3.6 Branch
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.