[Webkit-unassigned] [Bug 68513] <input> with autofocus doesn't lose focus when it has a certain onblur listener

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 22 08:53:46 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=68513





--- Comment #10 from Ryosuke Niwa <rniwa at webkit.org>  2011-09-22 08:53:46 PST ---
(From update of attachment 108129)
View in context: https://bugs.webkit.org/attachment.cgi?id=108129&action=review

>>> Source/WebCore/ChangeLog:9
>>> +        (WebCore::HTMLFormControlElement::attach):
>> 
>> Please explain why we should be modifying this function. Also, my gut tells me calling setIgnoreAutofocus inside attach is wrong.
> 
> As Autofocus is happening from attach and we have to make sure only this element needs to be focused.
> 
> We can as well call setIgnoreAutofocus from focusPostAttach callback after setting the focus but I am not sure if we need to check for ignoreAutoFocus before setting the focus. 
> 
> Do you see any side effects of doing that from attach()?

If anything, I'd expect the fix for this bug to be in HTMLInputElement::updateType.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list