Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7cfd9a324a9522418db499e24276d8cdff91232f
      
https://github.com/WebKit/WebKit/commit/7cfd9a324a9522418db499e24276d8cdff91232f
  Author: Wenson Hsieh <wenson_hs...@apple.com>
  Date:   2025-08-06 (Wed, 06 Aug 2025)

  Changed paths:
    M Source/WebCore/page/text-extraction/TextExtractionTypes.h
    M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
    M Source/WebKit/UIProcess/API/Cocoa/_WKTextExtraction.swift
    M Source/WebKit/UIProcess/API/Cocoa/_WKTextExtractionInternal.h
    M Source/WebKit/UIProcess/Cocoa/TextExtraction/WKTextExtractionUtilities.mm

  Log Message:
  -----------
  [AutoFill Debugging] Part 2: Add new WKTextExtraction* types and properties
https://bugs.webkit.org/show_bug.cgi?id=296966

Reviewed by Abrar Rahman Protyasha.

More work in progress towards AutoFill debugging — add several new types of 
text extraction items,
as well as additional members (which are currently unused). The new types are:

- `WKTextExtractionTextFormControlItem`
- `WKTextExtractionContentEditableItem`
- `WKTextExtractionLinkItem`
- `WKTextExtractionPopupMenu`
- `WKTextExtractionSelectItem`

...and the new properties on all text extraction items are:

- `eventListeners` (representing a set of event listener types on the 
corresponding element)
- `ariaAttributes` (representing a subset of ARIA attributes)
- `accessibilityRole` (representing the `role` DOM attribute)
- `nodeIdentifier` (representing a nullable identifier string for the node)

* Source/WebCore/page/text-extraction/TextExtractionTypes.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _requestTextExtraction:completionHandler:]):
* Source/WebKit/UIProcess/API/Cocoa/_WKTextExtraction.swift:
(eventListenerTypesAsArray(_:)):
(WKTextExtractionContentEditableItem.isFocused):
(WKTextExtractionTextFormControlItem.isSecure):
(WKTextExtractionTextFormControlItem.isFocused):
(WKTextExtractionTextFormControlItem.label):
(WKTextExtractionTextFormControlItem.placeholder):
(WKTextExtractionTextFormControlItem.isReadonly):
(WKTextExtractionTextFormControlItem.isDisabled):
(WKTextExtractionTextFormControlItem.isChecked):
(WKTextExtractionLinkItem.url):
(WKTextExtractionSelectItem.supportsMultiple):
* Source/WebKit/UIProcess/API/Cocoa/_WKTextExtractionInternal.h:
* Source/WebKit/UIProcess/Cocoa/TextExtraction/WKTextExtractionUtilities.mm:
(WebKit::eventListenerTypes):
(WebKit::createWKEditable):
(WebKit::createItemWithChildren):
(WebKit::createWKTextItem): Deleted.

Canonical link: https://commits.webkit.org/298299@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

Reply via email to