Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7b161537db53ecf834a281a6c995aa7bfb826bb2
      
https://github.com/WebKit/WebKit/commit/7b161537db53ecf834a281a6c995aa7bfb826bb2
  Author: Wenson Hsieh <wenson_hs...@apple.com>
  Date:   2025-09-13 (Sat, 13 Sep 2025)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/_WKTextExtraction.swift
    M Source/WebKit/UIProcess/API/Cocoa/_WKTextExtractionInternal.h

  Log Message:
  -----------
  [AutoFill Debugging] Make `WKTextExtractionLinkItem`'s URL nullable
https://bugs.webkit.org/show_bug.cgi?id=298822
rdar://160535084

Reviewed by Richard Robinson.

Make the `url` property on this object nullable, and exclude it from the text 
extraction if it's
`nil`. From code inspection, it should be possible for a non-empty `WTF::URL` 
to be passed into this
codepath which yields a `nil` `NSURL`. I discovered a single crash report 
underneath this codepath
while testing, but could not reproduce it on subsequent attempts.

* Source/WebKit/UIProcess/API/Cocoa/_WKTextExtraction.swift:
(WKTextExtractionLinkItem.url):
(WKTextExtractionLinkItem.textRepresentationParts):
* Source/WebKit/UIProcess/API/Cocoa/_WKTextExtractionInternal.h:

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