Changeset 207486 in webkit
- Timestamp:
- Oct 18, 2016 1:40:03 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r207485 r207486 1 2016-10-18 Ryosuke Niwa <rniwa@webkit.org> 2 3 REGRESSION (r201471): Keyboard remains visible when swiping back on twitter.com 4 https://bugs.webkit.org/show_bug.cgi?id=163581 5 <rdar://problem/27739558> 6 7 Reviewed by Simon Fraser. 8 9 Added a regression test for hiding a keyboard when the focused element is removed from the DOM. 10 11 * fast/forms/ios/hide-keyboard-on-node-removal-expected.txt: Added. 12 * fast/forms/ios/hide-keyboard-on-node-removal.html: Added. 13 1 14 2016-10-18 Ryan Haddad <ryanhaddad@apple.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r207482 r207486 1 2016-10-18 Ryosuke Niwa <rniwa@webkit.org> 2 3 REGRESSION (r201471): Keyboard remains visible when swiping back on twitter.com 4 https://bugs.webkit.org/show_bug.cgi?id=163581 5 <rdar://problem/27739558> 6 7 Reviewed by Simon Fraser. 8 9 The bug was caused by Chrome::elementDidBlur not getting called, which resulted in 10 StopAssistingNode not getting sent to the UI process. 11 12 Test: fast/forms/ios/hide-keyboard-on-node-removal.html 13 14 * dom/Document.cpp: 15 (WebCore::Document::setFocusedElement): Restore the behavior prior to r201471 by calling 16 Chrome::elementDidBlur explicitly. 17 * html/HTMLTextFormControlElement.cpp: 18 (WebCore::HTMLTextFormControlElement::dispatchBlurEvent): Added a comment about ordering. 19 1 20 2016-10-17 Anders Carlsson <andersca@apple.com> 2 21 -
trunk/Source/WebCore/dom/Document.cpp
r207477 r207486 3675 3675 } 3676 3676 } else { 3677 // Match the order in HTMLTextFormControlElement::dispatchBlurEvent. 3677 3678 if (is<HTMLInputElement>(*oldFocusedElement)) 3678 3679 downcast<HTMLInputElement>(*oldFocusedElement).endEditing(); 3680 if (page()) 3681 page()->chrome().client().elementDidBlur(oldFocusedElement.get()); 3679 3682 ASSERT(!m_focusedElement); 3680 3683 } -
trunk/Source/WebCore/html/HTMLTextFormControlElement.cpp
r207458 r207486 102 102 if (supportsPlaceholder()) 103 103 updatePlaceholderVisibility(); 104 // Match the order in Document::setFocusedElement. 104 105 handleBlurEvent(); 105 106 HTMLFormControlElementWithState::dispatchBlurEvent(WTFMove(newFocusedElement));
Note: See TracChangeset
for help on using the changeset viewer.