Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9b9378751a28539b551b05949a4176e42c5f5a61
https://github.com/WebKit/WebKit/commit/9b9378751a28539b551b05949a4176e42c5f5a61
Author: Wenson Hsieh <[email protected]>
Date: 2026-09-03 (Thu, 03 Sep 2026)
Changed paths:
M Source/WebCore/page/text-extraction/TextExtraction.cpp
M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.mm
Log Message:
-----------
[Text Extraction] battle.net: one-time code fields are skipped in text
extraction results
https://bugs.webkit.org/show_bug.cgi?id=323334
rdar://186578624
Reviewed by Abrar Rahman Protyasha.
Expand the heuristic added in 319761@main, so that it covers the case where a
transparent one-time
code entry field intersects with elements representing a single one-time code
digit.
Test: TextExtractionTests.ExtractTransparentOneTimeCodeFieldOverVisualProxies
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::visualProxyForTransparentControl):
(WebCore::TextExtraction::extractItemData):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.mm:
(TestWebKitAPI::(TextExtractionTests,
ExtractTransparentOneTimeCodeFieldOverVisualProxies)):
Canonical link: https://commits.webkit.org/320448@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications