Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1044a1057b9527782a2206cb73cbc279dd5805e6
      
https://github.com/WebKit/WebKit/commit/1044a1057b9527782a2206cb73cbc279dd5805e6
  Author: Wenson Hsieh <[email protected]>
  Date:   2025-11-14 (Fri, 14 Nov 2025)

  Changed paths:
    M LayoutTests/fast/text-extraction/debug-text-extraction-basic-expected.txt
    M 
LayoutTests/fast/text-extraction/debug-text-extraction-ignore-autofilled-fields-expected.txt
    M 
LayoutTests/fast/text-extraction/debug-text-extraction-lightweight-expected.txt
    M Source/WebKit/Shared/TextExtractionToStringConversion.cpp
    M Source/WebKit/Shared/TextExtractionToStringConversion.h
    M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm

  Log Message:
  -----------
  [AutoFill Debugging] Add a simple versioning system for text extraction 
outputs
https://bugs.webkit.org/show_bug.cgi?id=302493
rdar://164668165

Reviewed by Abrar Rahman Protyasha and Lily Spiniolas.

Add support for a user default, `WebKit2TextExtractionOutputVersion`, which can 
be used to restore
some older text extraction behaviors (such as the replacing `textFormControls` 
with `input` /
`textarea`); we additionally include this version number as the last line in 
text extraction output,
for debugging convenience.

* Source/WebKit/Shared/TextExtractionToStringConversion.cpp:
(WebKit::TextExtractionAggregator::TextExtractionAggregator):
(WebKit::TextExtractionAggregator::~TextExtractionAggregator):
(WebKit::TextExtractionAggregator::useTagNameForTextFormControls const):
(WebKit::TextExtractionAggregator::addLineForVersionNumberIfNeeded):
(WebKit::TextExtractionAggregator::version const):
(WebKit::addPartsForItem):
* Source/WebKit/Shared/TextExtractionToStringConversion.h:
(WebKit::TextExtractionOptions::TextExtractionOptions):
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _debugTextWithConfiguration:completionHandler:]):

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



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

Reply via email to