Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 6062b4cd7c816cf152fd967202be957eeb90406b https://github.com/WebKit/WebKit/commit/6062b4cd7c816cf152fd967202be957eeb90406b Author: Wenson Hsieh <wenson_hs...@apple.com> Date: 2025-09-17 (Wed, 17 Sep 2025)
Changed paths: M LayoutTests/fast/text-extraction/debug-text-extraction-basic-expected.txt M LayoutTests/fast/text-extraction/debug-text-extraction-basic.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/_WKTextExtraction.swift M Source/WebKit/UIProcess/API/Cocoa/_WKTextExtractionInternal.h M Source/WebKit/UIProcess/Cocoa/TextExtraction/WKTextExtractionUtilities.mm M Tools/WebKitTestRunner/cocoa/WKTextExtractionTestingHelpers.mm Log Message: ----------- [AutoFill Debugging] Include `canvas` elements in text extraction output https://bugs.webkit.org/show_bug.cgi?id=299034 rdar://160795452 Reviewed by Abrar Rahman Protyasha and Timothy Hatcher. Add `.canvas` as a text extraction container type, and include `uid` for canvas elements. * LayoutTests/fast/text-extraction/debug-text-extraction-basic-expected.txt: * LayoutTests/fast/text-extraction/debug-text-extraction-basic.html: Augment an existing layout test to include a canvas element. * Source/WebCore/page/text-extraction/TextExtraction.cpp: (WebCore::TextExtraction::extractItemData): (WebCore::TextExtraction::shouldIncludeNodeIdentifier): (WebCore::TextExtraction::pruneEmptyContainersRecursive): Avoid pruning `canvas` elements when post-processing (similar to how buttons are treated). * Source/WebCore/page/text-extraction/TextExtractionTypes.h: * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: * Source/WebKit/UIProcess/API/Cocoa/_WKTextExtraction.swift: (WKTextExtractionContainerItem.textRepresentationParts): * Source/WebKit/UIProcess/API/Cocoa/_WKTextExtractionInternal.h: * Source/WebKit/UIProcess/Cocoa/TextExtraction/WKTextExtractionUtilities.mm: (WebKit::containerType): * Tools/WebKitTestRunner/cocoa/WKTextExtractionTestingHelpers.mm: (WTR::description): Canonical link: https://commits.webkit.org/300104@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes