Changeset 231054 in webkit
- Timestamp:
- Apr 26, 2018, 11:05:20 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r231050 r231054 1 2018-04-25 Megan Gardner <megan_gardner@apple.com> 2 3 Activate selection when interacting with editable content 4 https://bugs.webkit.org/show_bug.cgi?id=185017 5 6 Reviewed by Tim Horton. 7 8 Fixed double-tap-on-editable-and-noneditable test, as it was not actually written correctly. 9 Should actually double tap on correct content and check for the correct output now. 10 Added two more tests to make sure that selections really are happening in editable content. 11 12 * fast/events/touch/ios/double-tap-on-editable-and-noneditable.html: 13 * fast/events/touch/ios/double-tap-on-editable-content-for-selection-expected.txt: Added. 14 * fast/events/touch/ios/double-tap-on-editable-content-for-selection-then-drag-right-to-change-selected-text-expected.txt: Added. 15 * fast/events/touch/ios/double-tap-on-editable-content-for-selection-then-drag-right-to-change-selected-text.html: Added. 16 * fast/events/touch/ios/double-tap-on-editable-content-for-selection.html: Added. 17 1 18 2018-04-25 Brent Fulgham <bfulgham@apple.com> 2 19 -
trunk/LayoutTests/fast/events/touch/ios/double-tap-on-editable-and-noneditable.html
r230850 r231054 28 28 output += '<br>'; 29 29 30 var editableTargetRect = document.getElementById(' noneditableTapPoint').getBoundingClientRect();30 var editableTargetRect = document.getElementById('editable').getBoundingClientRect(); 31 31 32 32 var editableTapPointX = editableTargetRect.x + editableTargetRect.width / 2; 33 33 var editableTapPointY = editableTargetRect.y + editableTargetRect.height / 2; 34 34 35 await doubleTapAtPoint( noneditableTapPointX, noneditableTapPointY);36 if (document.getSelection().type == "None")35 await doubleTapAtPoint(editableTapPointX, editableTapPointY); 36 if (document.getSelection().type != "None") 37 37 output += 'PASS: Has Selection'; 38 38 else … … 76 76 </head> 77 77 <body> 78 79 78 <div id="noneditable"> 80 79 <p>Lorem ipsum dolor sit amet, <span id="noneditableTapPoint">consectetur</span> adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> -
trunk/Source/WebKit/ChangeLog
r231051 r231054 1 2018-04-25 Megan Gardner <megan_gardner@apple.com> 2 3 Activate selection when interacting with editable content 4 https://bugs.webkit.org/show_bug.cgi?id=185017 5 6 Reviewed by Tim Horton. 7 8 Fixes a regression from r231016 where selection now does not work when interacting with 9 editable content. When we go into editable content, we should turn on the assistant. 10 This fulfills the requirement of user interaction as well, so any javascript selections 11 after this point should be valid. 12 13 * UIProcess/ios/WKContentViewInteraction.mm: 14 (-[WKContentView _startAssistingKeyboard]): 15 (-[WKContentView _stopAssistingKeyboard]): 16 1 17 2018-04-26 Per Arne Vollan <pvollan@apple.com> 2 18 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r231022 r231054 3968 3968 { 3969 3969 [self useSelectionAssistantWithGranularity:WKSelectionGranularityCharacter]; 3970 3971 if (self.isFirstResponder && !self.suppressAssistantSelectionView) 3972 [_textSelectionAssistant activateSelection]; 3970 3973 3971 3974 #if !ENABLE(EXTRA_ZOOM_MODE) … … 3977 3980 { 3978 3981 [self useSelectionAssistantWithGranularity:_webView._selectionGranularity]; 3982 3983 [_textSelectionAssistant deactivateSelection]; 3979 3984 } 3980 3985
Note:
See TracChangeset
for help on using the changeset viewer.