Bug 19430 - Textfield ignores .focus() after submit, inconsistent with FF
Summary: Textfield ignores .focus() after submit, inconsistent with FF
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Evangelism (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-07 15:46 PDT by Ruben De Visscher
Modified: 2008-10-12 22:50 PDT (History)
1 user (show)

See Also:


Attachments
Demonstration using pure js of what SHOULD happen (886 bytes, text/html)
2008-06-13 14:35 PDT, Ruben De Visscher
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruben De Visscher 2008-06-07 15:46:24 PDT
When the textfield is focused and the user hits enter, the textfield seems to ignore any .focus() calls.
This is inconsistent with both FireFox 3.0 RC 2 and Opera 9.26. Safari 3.1.1 has the same problem.
Comment 1 Robert Blaut 2008-06-13 12:29:34 PDT
Ruben, would you be so kind to attach a minimal test case demonstrating the problem.
Comment 2 Ruben De Visscher 2008-06-13 14:35:57 PDT
Created attachment 21688 [details]
Demonstration using pure js of what SHOULD happen

This is what it SHOULD do, i will work on a testcase using mootools that shows the bug.
Comment 3 Ruben De Visscher 2008-06-13 14:40:03 PDT
To clarify: the Mootools JS framework seems to cause the problem, as it works in pure JS, i will try to post a testcase using the framework that shows the bug soon.
Comment 4 Ruben De Visscher 2008-06-13 15:02:21 PDT
After further experimenting, it looks like setting a delay using a Mootools function before going to the next line causes the focus to somehow be ignored: when this delay is removed it works perfectly. At first sight, this function only calls setTimeout, but if implemented in pure JS (without mootools) the bug doesn't show itself yet again... A testcase is coming soon.
Comment 5 Robert Blaut 2008-07-17 02:10:54 PDT
(In reply to comment #4)
> After further experimenting, it looks like setting a delay using a Mootools
> function before going to the next line causes the focus to somehow be ignored:
> when this delay is removed it works perfectly. At first sight, this function
> only calls setTimeout, but if implemented in pure JS (without mootools) the bug
> doesn't show itself yet again... A testcase is coming soon.
> 

Ruben, do you plan to upload the test case?
Comment 6 Robert Blaut 2008-10-12 22:50:45 PDT
(In reply to comment #5)
> 
> Ruben, do you plan to upload the test case?
> 

Ruben, feel free to reopen the bug report if you provide us with a test case demonstrating the described problem.