problems with form submit

UNCONFIRMED
Unassigned

Status

()

UNCONFIRMED
8 years ago
8 years ago

People

(Reporter: dmitri1, Unassigned)

Tracking

3.6 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
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.

Updated

8 years ago
Component: Developer Tools → General
QA Contact: developer.tools → general
(Reporter)

Updated

8 years ago
Component: General → Developer Tools
Summary: wrong javascript events generation → problems with form submit

Comment 1

8 years ago
Dmitri: this is not a Developer Tools issue. It will be routed correctly.
Component: Developer Tools → General

Updated

8 years ago
Version: unspecified → 3.6 Branch
You need to log in before you can comment on or make changes to this bug.