Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 12df941639ff78da4da895d68970c1062c82e97e
      
https://github.com/WebKit/WebKit/commit/12df941639ff78da4da895d68970c1062c82e97e
  Author: Aditya Keerthi <[email protected]>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M Source/WebKit/Platform/spi/ios/UIKitSPI.h
    M Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/ImageAnalysisTests.mm
    M Tools/TestWebKitAPI/ios/UIKitSPI.h

  Log Message:
  -----------
  Stop using deprecated UIAction SPI
https://bugs.webkit.org/show_bug.cgi?id=246666
rdar://101229984

Reviewed by Wenson Hsieh.

UIKit introduced the `-[UIMenuLeaf performWithSender:target:]` API in iOS 16.
Replace usage of the deprecated `-[UIAction _performActionWithSender:]` SPI with
the new API.

* Source/WebKit/Platform/spi/ios/UIKitSPI.h:

Remove the use of `HAVE(LINK_PREVIEW)`, since it is equivalent to 
`USE(UICONTEXTMENU)`.

* Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm:
(-[WKSelectPicker selectRow:inComponent:extendingSelection:]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/ImageAnalysisTests.mm:
(TestWebKitAPI::invokeRemoveBackgroundAction):
* Tools/TestWebKitAPI/ios/UIKitSPI.h:

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to