Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6c3e78a5450e7a5b5d7c40b711a064c6d1981b22
      
https://github.com/WebKit/WebKit/commit/6c3e78a5450e7a5b5d7c40b711a064c6d1981b22
  Author: Wenson Hsieh <[email protected]>
  Date:   2026-03-27 (Fri, 27 Mar 2026)

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

  Log Message:
  -----------
  [AutoFill Debugging] Include visible text inside author shadow roots
https://bugs.webkit.org/show_bug.cgi?id=310925
rdar://173534147

Reviewed by Aditya Keerthi and Abrar Rahman Protyasha.

Traverse into shadow roots using `TextIterator` when collecting visible text 
during text extraction.

Test: TextExtractionTests.AuthorShadowDOMText

* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::collectText):
(WebCore::TextExtraction::extractAllTextAndRectsRecursive):
(WebCore::TextExtraction::textDescription):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm:
(TestWebKitAPI::(TextExtractionTests, AuthorShadowDOMText)):%

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



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

Reply via email to