Changeset 246817 in webkit
- Timestamp:
- Jun 25, 2019 4:41:31 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r246810 r246817 1 2019-06-25 Daniel Bates <dabates@apple.com> 2 3 Non-editable text selections should be modifiable with hardware keyboard 4 https://bugs.webkit.org/show_bug.cgi?id=199204 5 <rdar://problem/51651496> 6 7 Reviewed by Wenson Hsieh. 8 9 Add a test, skipped for now, until we have the fix for <rdar://problem/48322899>. 10 11 * editing/selection/ios/select-non-editable-text-using-keyboard-expected.txt: Added. 12 * editing/selection/ios/select-non-editable-text-using-keyboard.html: Added. 13 * platform/ios/TestExpectations: 14 * resources/ui-helper.js: 15 (window.UIHelper.callFunctionAndWaitForEvent): Added. 16 1 17 2019-06-25 Daniel Bates <dabates@apple.com> 2 18 -
trunk/LayoutTests/platform/ios/TestExpectations
r246645 r246817 3252 3252 # Was unskipped, but now has missing results in iOS . Skipping on iOS only. 3253 3253 media/controls-after-reload.html [ Skip ] 3254 3255 # FIXME: Unskip the following test once we have the fix for <rdar://problem/48322899>. 3256 editing/selection/ios/select-non-editable-text-using-keyboard.html [ Skip ] -
trunk/LayoutTests/resources/ui-helper.js
r246570 r246817 900 900 } 901 901 902 static callFunctionAndWaitForEvent(functionToCall, target, eventName) 903 { 904 return new Promise((resolve) => { 905 target.addEventListener(eventName, resolve, { once: true }); 906 functionToCall(); 907 }); 908 909 } 910 902 911 static callFunctionAndWaitForScrollToFinish(functionToCall, ...theArguments) 903 912 { -
trunk/Source/WebKit/ChangeLog
r246810 r246817 1 2019-06-25 Daniel Bates <dabates@apple.com> 2 3 Non-editable text selections should be modifiable with hardware keyboard 4 https://bugs.webkit.org/show_bug.cgi?id=199204 5 <rdar://problem/51651496> 6 7 Reviewed by Wenson Hsieh. 8 9 UIKit changes are need for this to work, including <rdar://problem/48322899>. 10 Note that without these changes, -canPerformAction is never called for _move* 11 selectors. 12 13 * UIProcess/ios/WKContentViewInteraction.mm: 14 (-[WKContentView canPerformAction:withSender:]): 15 1 16 2019-06-25 Daniel Bates <dabates@apple.com> 2 17 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r246810 r246817 2893 2893 // These are UIKit IPI selectors. We don't want to forward them to the web view. 2894 2894 auto editorState = _page->editorState(); 2895 if (action == @selector(_deleteByWord) || action == @selector(_deleteForwardAndNotify:) || action == @selector(_deleteToEndOfParagraph) || action == @selector(_deleteToStartOfLine) 2896 || action == @selector(_moveDown:withHistory:) || action == @selector(_moveLeft:withHistory:) || action == @selector(_moveRight:withHistory:) 2895 if (action == @selector(_moveDown:withHistory:) || action == @selector(_moveLeft:withHistory:) || action == @selector(_moveRight:withHistory:) 2897 2896 || action == @selector(_moveToEndOfDocument:withHistory:) || action == @selector(_moveToEndOfLine:withHistory:) || action == @selector(_moveToEndOfParagraph:withHistory:) 2898 2897 || action == @selector(_moveToEndOfWord:withHistory:) || action == @selector(_moveToStartOfDocument:withHistory:) || action == @selector(_moveToStartOfLine:withHistory:) 2899 || action == @selector(_moveToStartOfParagraph:withHistory:) || action == @selector(_moveToStartOfWord:withHistory:) || action == @selector(_moveUp:withHistory:) 2898 || action == @selector(_moveToStartOfParagraph:withHistory:) || action == @selector(_moveToStartOfWord:withHistory:) || action == @selector(_moveUp:withHistory:)) 2899 return YES; 2900 2901 if (action == @selector(_deleteByWord) || action == @selector(_deleteForwardAndNotify:) || action == @selector(_deleteToEndOfParagraph) || action == @selector(_deleteToStartOfLine) 2900 2902 || action == @selector(_transpose)) 2901 2903 return editorState.isContentEditable;
Note: See TracChangeset
for help on using the changeset viewer.