Changeset 227710 in webkit
- Timestamp:
- Jan 26, 2018, 6:13:48 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r227708 r227710 1 2018-01-26 Megan Gardner <megan_gardner@apple.com> 2 3 Don't retain focus for input peripheral views 4 https://bugs.webkit.org/show_bug.cgi?id=182204 5 6 Reviewed by Tim Horton. 7 8 Fixed a spelling error while fixing a bug this test caught. 9 10 * fast/forms/ios/ipad/unfocus-inside-fixed-hittest.html: 11 * fast/forms/ios/ipad/unfocus-inside-fixed-hittest-expected.txt: 12 1 13 2018-01-26 Youenn Fablet <youenn@apple.com> 2 14 -
trunk/LayoutTests/fast/forms/ios/ipad/unfocus-inside-fixed-hittest-expected.txt
r204728 r227710 3 3 Click Me 4 4 June 5 PASS: hit testing found #target after select intera tion5 PASS: hit testing found #target after select interaction -
trunk/LayoutTests/fast/forms/ios/ipad/unfocus-inside-fixed-hittest.html
r204728 r227710 77 77 function buttonClicked() 78 78 { 79 document.getElementById('result').textContent = 'PASS: hit testing found #target after select intera tion';79 document.getElementById('result').textContent = 'PASS: hit testing found #target after select interaction'; 80 80 if (window.testRunner) 81 81 testRunner.notifyDone(); -
trunk/Source/WebKit/ChangeLog
r227709 r227710 1 2018-01-26 Megan Gardner <megan_gardner@apple.com> 2 3 Don't retain focus for input peripheral views 4 https://bugs.webkit.org/show_bug.cgi?id=182204 5 6 Reviewed by Tim Horton. 7 8 Retaining focus on input peripheral views makes it so they cannot dismiss themselves with 9 the current architecture. This should probably be fixed in UIKit, as there is no reason for 10 focus to be retained on these views anyways, as they don't have keyboard input, but this 11 guards against over-aggressive retain requests. 12 13 * UIProcess/ios/WKContentViewInteraction.mm: 14 (-[WKContentView _restoreFocusWithToken:]): 15 (-[WKContentView _preserveFocusWithToken:destructively:]): 16 1 17 2018-01-26 Chris Dumez <cdumez@apple.com> 2 18 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r227377 r227710 4170 4170 - (void)_restoreFocusWithToken:(id <NSCopying, NSSecureCoding>)token 4171 4171 { 4172 --_webView->_activeFocusedStateRetainCount; 4172 if (!_inputPeripheral) 4173 --_webView->_activeFocusedStateRetainCount; 4173 4174 } 4174 4175 4175 4176 - (void)_preserveFocusWithToken:(id <NSCopying, NSSecureCoding>)token destructively:(BOOL)destructively 4176 4177 { 4177 ++_webView->_activeFocusedStateRetainCount; 4178 if (!_inputPeripheral) 4179 ++_webView->_activeFocusedStateRetainCount; 4178 4180 } 4179 4181
Note:
See TracChangeset
for help on using the changeset viewer.