Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 37b7ce74854deba90d950e45470b44311cb57af4
      
https://github.com/WebKit/WebKit/commit/37b7ce74854deba90d950e45470b44311cb57af4
  Author: Wenson Hsieh <[email protected]>
  Date:   2026-03-11 (Wed, 11 Mar 2026)

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

  Log Message:
  -----------
  [AutoFill Debugging] Prefer case-sensitive matches before falling back to 
case-insensitive search
https://bugs.webkit.org/show_bug.cgi?id=309680
rdar://172283407

Reviewed by Aditya Keerthi.

Adjust `TextExtraction::searchForText`, such that it prefers exact, 
case-sensitive text matches in
the DOM before falling back to a case-insensitive search.

Tests: TextExtractionTests.RequestJSHandleForNodeIdentifierCaseSensitive

* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::searchForText):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm:
(TestWebKitAPI::TEST(TextExtractionTests, 
RequestJSHandleForNodeIdentifierCaseSensitive)):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/debug-text-extraction.html:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to