Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[iOS] Use new class name from UIKit when checking UITextSuggestion type
https://bugs.webkit.org/show_bug.cgi?id=178416 Source/WebKit: <rdar://problem/35010840> Reviewed by Tim Horton. Here we start using UITextAutofillSuggestion instead of the old name that was being used for AutoFill text suggestions. * Platform/spi/ios/UIKitSPI.h: * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView insertTextSuggestion:]): Use UITextAutofillSuggestion when checking the class and when casting instead of UIKeyboardLoginCredentialsSuggestion. Tools: Reviewed by Tim Horton. This updates our test using/mocking out UITextAutofillSuggestion instead of UIKeyboardLoginCredentialsSuggestion. * TestWebKitAPI/Tests/ios/WKWebViewAutofillTests.mm: (-[UITextAutofillSuggestion initWithUsername:password:]): Copied from UIKit's implementation. This will serve as a mock of this method for builds not containingit. (+[UITextAutofillSuggestion autofillSuggestionWithUsername:password:]): Ditto. (TestWebKitAPI::TEST): Use +[UITextAutofillSuggestion autofillSuggestionWithUsername:password:] inline instead of helper function for creating a new suggestion. (newUIKeyboardLoginCredentialsSuggestion): Deleted. * TestWebKitAPI/ios/UIKitSPI.h: Canonical link: https://commits.webkit.org/194692@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223647 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
68 additions
and 23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters