Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f9f215d168b0a6bbb3d24ea061cce1a211f498f4
https://github.com/WebKit/WebKit/commit/f9f215d168b0a6bbb3d24ea061cce1a211f498f4
Author: Wenson Hsieh <[email protected]>
Date: 2026-06-12 (Fri, 12 Jun 2026)
Changed paths:
M Source/WebCore/page/text-extraction/TextExtraction.cpp
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.mm
Log Message:
-----------
Improve text extraction interaction summaries when inserting text
https://bugs.webkit.org/show_bug.cgi?id=316963
rdar://179428861
Reviewed by Lily Spiniolas.
Instead of always returning a canned result ("Inserted text by simulating paste
with plain text"),
leverage element interaction descriptions to surface additional context about
the element that was
just interacted with.
Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.mm
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::textDescription):
Move these methods further up the file (this code is otherwise unchanged).
(WebCore::TextExtraction::focusAndInsertText):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.mm:
(TestWebKitAPI::TEST(TextExtractionTests, InteractionResultSummary)):
Canonical link: https://commits.webkit.org/315107@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications