Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6c4ba0741319f37f37d0b0e3a0e86694a6c4d332
      
https://github.com/WebKit/WebKit/commit/6c4ba0741319f37f37d0b0e3a0e86694a6c4d332
  Author: Wenson Hsieh <[email protected]>
  Date:   2026-01-06 (Tue, 06 Jan 2026)

  Changed paths:
    A 
LayoutTests/fast/text-extraction/debug-text-extraction-all-container-uids-expected.txt
    A 
LayoutTests/fast/text-extraction/debug-text-extraction-all-container-uids.html
    M Source/WebCore/page/text-extraction/TextExtraction.cpp
    M Source/WebCore/page/text-extraction/TextExtractionTypes.h
    M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
    M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
    M Source/WebKit/UIProcess/API/Cocoa/_WKTextExtraction.h
    M Tools/WebKitTestRunner/cocoa/UIScriptControllerCocoa.mm

  Log Message:
  -----------
  [AutoFill Debugging] Add a nodeIdentifierInclusion mode to include UIDs for 
all elements
https://bugs.webkit.org/show_bug.cgi?id=305027
rdar://167666319

Reviewed by Abrar Rahman Protyasha.

Add `_WKTextExtractionNodeIdentifierInclusionAllContainers`, which tells text 
extraction to include
UIDs on all elements (excluding text nodes).

Test: fast/text-extraction/debug-text-extraction-all-container-uids.html

* 
LayoutTests/fast/text-extraction/debug-text-extraction-all-container-uids-expected.txt:
 Added.
* 
LayoutTests/fast/text-extraction/debug-text-extraction-all-container-uids.html: 
Added.
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::shouldIncludeNodeIdentifier):

Exit early with `true`, as long as the item doesn't just represent text.

* Source/WebCore/page/text-extraction/TextExtractionTypes.h:
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _requestTextExtractionInternal:completion:]):
* Source/WebKit/UIProcess/API/Cocoa/_WKTextExtraction.h:
* Tools/WebKitTestRunner/cocoa/UIScriptControllerCocoa.mm:
(WTR::createTextExtractionConfiguration):

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



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

Reply via email to