[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 02:11:20 PDT 2011


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





--- Comment #9 from Rakesh <rakesh.kn at motorola.com>  2011-09-22 02:11:20 PST ---
(In reply to comment #8)
> (From update of attachment 108129 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=108129&action=review
> 
> > Source/WebCore/ChangeLog:9
> > +        * html/HTMLFormControlElement.cpp:
> > +        (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()?

-- 
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