Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8bf1d777c71404798b8fe00ec5ec06a638540e1c
      
https://github.com/WebKit/WebKit/commit/8bf1d777c71404798b8fe00ec5ec06a638540e1c
  Author: Wenson Hsieh <[email protected]>
  Date:   2025-10-10 (Fri, 10 Oct 2025)

  Changed paths:
    M Source/WebCore/page/text-extraction/TextExtraction.cpp
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm

  Log Message:
  -----------
  [AutoFill Debugging] Adjust interaction descriptions to wrap unstructured 
text with double quotes
https://bugs.webkit.org/show_bug.cgi?id=300524
rdar://162394815

Reviewed by Aditya Keerthi and Timothy Hatcher.

Adjust one-line text extraction interaction descriptions, such that 
variable-length strings embedded
in each description are wrapped with double curly quotes (“”), and all single 
and double quotes
(including folded quotes) are replaced with single straight quotes.

Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm

* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::normalizeText):
(WebCore::TextExtraction::wrapWithDoubleQuotes):

Pull this logic out into a separate helper method, and deploy it in various 
places below.

(WebCore::TextExtraction::textDescription):

Drive-by fix: also wrap the `role` string in quotes.

(WebCore::TextExtraction::interactionDescription):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm:
(TestWebKitAPI::TEST(TextExtractionTests, InteractionDebugDescription)):

Canonical link: https://commits.webkit.org/301341@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to