[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 22:09:41 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=59071
--- Comment #1 from Kent Tamura <tkent at chromium.org> 2011-05-01 22:09:41 PST ---
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....
1 WebCore::HTMLTextFormControlElement::dispatchFocusEvent()
2 WebCore::Document::setFocusedNode(WTF::PassRefPtr<WebCore::Node>)
3 WebCore::FocusController::setFocusedNode(WebCore::Node*, WTF::PassRefPtr<WebCore::Frame>)
4 WebCore::SelectionController::setFocusedNodeIfNeeded()
5 WebCore::SelectionController::setSelection(WebCore::VisibleSelection const&, unsigned int, WebCore::SelectionController::CursorAlignOnScroll, WebCore::TextGranularity, WebCore::DirectionalityPolicy)
6 WebCore::SelectionController::textWillBeReplaced(WebCore::CharacterData*, unsigned int, unsigned int, unsigned int)
7 WebCore::CharacterData::setDataAndUpdate(WTF::PassRefPtr<WTF::StringImpl>, unsigned int, unsigned int, unsigned int)
8 WebCore::CharacterData::setData(WTF::String const&, int&)
9 WebCore::replaceChildrenWithText(WebCore::HTMLElement*, WTF::String const&, int&)
10 WebCore::HTMLElement::setInnerText(WTF::String const&, int&)
11 WebCore::RenderTextControl::setInnerTextValue(WTF::String const&)
12 WebCore::RenderTextControlSingleLine::updateFromElement()
13 WebCore::updateFromElementCallback(WebCore::Node*)
14 WebCore::ContainerNode::dispatchPostAttachCallbacks()
15 WebCore::ContainerNode::resumePostAttachCallbacks()
16 WebCore::Document::recalcStyle(WebCore::Node::StyleChange)
17 WebCore::Document::updateStyleIfNeeded()
18 WebCore::Document::updateLayout()
19 WebCore::SelectionController::textWillBeReplaced(WebCore::CharacterData*, unsigned int, unsigned int, unsigned int)
20 WebCore::CharacterData::setDataAndUpdate(WTF::PassRefPtr<WTF::StringImpl>, unsigned int, unsigned int, unsigned int)
21 WebCore::CharacterData::setData(WTF::String const&, int&)
22 WebCore::replaceChildrenWithText(WebCore::HTMLElement*, WTF::String const&, int&)
23 WebCore::HTMLElement::setInnerText(WTF::String const&, int&)
24 WebCore::RenderTextControl::setInnerTextValue(WTF::String const&)
25 WebCore::RenderTextControlSingleLine::updateFromElement()
26 WebCore::NumberInputType::handleBlurEvent()
27 WebCore::HTMLInputElement::handleBlurEvent()
28 WebCore::HTMLTextFormControlElement::dispatchBlurEvent()
29 WebCore::Document::setFocusedNode(WTF::PassRefPtr<WebCore::Node>)
30 WebCore::FocusController::advanceFocusInDocumentOrder(WebCore::FocusDirection, WebCore::KeyboardEvent*, bool)
31 WebCore::FocusController::advanceFocus(WebCore::FocusDirection, WebCore::KeyboardEvent*, bool)
--
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