Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6c2d1f6c2130b49309309bc874924b31cc9dd674
https://github.com/WebKit/WebKit/commit/6c2d1f6c2130b49309309bc874924b31cc9dd674
Author: Megan Gardner <[email protected]>
Date: 2026-06-11 (Thu, 11 Jun 2026)
Changed paths:
A
LayoutTests/editing/selection/ios/select-word-for-replacement-extends-grammar-marker-expected.txt
A
LayoutTests/editing/selection/ios/select-word-for-replacement-extends-grammar-marker.html
M Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm
Log Message:
-----------
Tap does not extend to full grammar range.
https://bugs.webkit.org/show_bug.cgi?id=316866
rdar://178998221
Reviewed by Aditya Keerthi and Alex Christensen.
Test:
editing/selection/ios/select-word-for-replacement-extends-grammar-marker.html
When tapping in an editable region on iOS, extendSelectionForReplacement
extends the caret to cover any DictationAlternatives or CorrectionIndicator
marker that contains the caret. Grammar markers were not included, so
tapping inside a multi-word grammar suggestion only selected the word
under the caret rather than the entire suggestion range.
Add DocumentMarkerType::Grammar to the set of marker types searched, so
the full grammar range is selected on tap.
*
LayoutTests/editing/selection/ios/select-word-for-replacement-extends-grammar-marker-expected.txt:
Added.
*
LayoutTests/editing/selection/ios/select-word-for-replacement-extends-grammar-marker.html:
Added.
* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::extendSelectionForReplacement):
Canonical link: https://commits.webkit.org/315029@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications