[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
Mon Sep 26 22:53:26 PDT 2011


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





--- Comment #28 from Rakesh <rakesh.kn at motorola.com>  2011-09-26 22:53:26 PST ---
(In reply to comment #26)
> (From update of attachment 108637 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=108637&action=review
> 
> > LayoutTests/fast/forms/autofocus-focus-only-once.html:22
> > +    if (window.layoutTestController)
> > +        layoutTestController.dumpAsText();
> > +
> 
> These lines are not needed. js-test-pre.js does it.
Done.

> 
> > Source/WebCore/html/HTMLFormControlElement.h:104
> > +    bool hasAutofocused() { return m_hasAutoFocused; }
> > +    void setAutofocused(bool autofocused = true) { m_hasAutoFocused = autofocused; }
> > +
> 
> Inconsistent capitalization: hasAuto*f*ocused vs. m_hasAuto*F*ocused
>   Let's follow the capitalization of Document::m_ignoreAutofocus.  So it should be m_hasAuto*f*ocused.
> 
Done, thanks for pointing that out.

> Also, we don't need to use the default argument for setAutofocused().
>   void setAutofocused() { m_hasAutofocused = true; }
> is enough.

Yes, that looks much better. Will upload new patch with changes shortly.

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