[Webkit-unassigned] [Bug 59071] <input type="number"> dispatches two blurs when tabbing from an invalid number

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 1 23:58:44 PDT 2011


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





--- Comment #2 from Kent Tamura <tkent at chromium.org>  2011-05-01 23:58:45 PST ---
(In reply to comment #1)
> I found an extra focus event was also fired during NumberInputType::handleBlurEvent().
> 
> In the following stack trace, the deeper updateFromElement() is not needed.  We need to avoid it....

It's not a problem.  The root problem is SelectionController::textWillBeReplaced() sets focus on the input element.  We'd like to change the inner text without focusing.

It seems difficult to avoid focus in textWillBeReplaced().  I'm going to introduce Node::beforeBlurEvent(), which is called before setting 0 to Document::m_focusedNode.

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