[webkit-changes] [WebKit/WebKit] aa8945: Implement non autofill credential type for autocom...
J Pascoe
noreply at github.com
Fri Jan 6 16:46:22 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: aa8945d7e8f05e48e56e2a49da697d8fe0e98122
https://github.com/WebKit/WebKit/commit/aa8945d7e8f05e48e56e2a49da697d8fe0e98122
Author: J Pascoe <j_pascoe at apple.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-form-element/form-autocomplete-expected.txt
M Source/WebCore/html/Autofill.cpp
M Source/WebCore/html/Autofill.h
M Source/WebKit/Shared/FocusedElementInformation.h
M Source/WebKit/Shared/FocusedElementInformation.serialization.in
M Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm
M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
M Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm
M Tools/TestWebKitAPI/Tests/ios/KeyboardInputTestsIOS.mm
Log Message:
-----------
Implement non autofill credential type for autocomplete attribute
https://bugs.webkit.org/show_bug.cgi?id=250076
rdar://problem/103872859
Reviewed by Brent Fulgham.
This patch implements the autofill credential type for the autocompletion
attribute described here: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#non-autofill-credential-type
This value is exposed to _autofillContext with an associated API test.
* Source/WebCore/html/Autofill.cpp:
(WebCore::maxTokensForAutofillFieldCategory):
(WebCore::AutofillData::createFromHTMLFormControlElement):
* Source/WebCore/html/Autofill.h:
(WebCore::AutofillData::AutofillData):
* Source/WebKit/Shared/FocusedElementInformation.h:
* Source/WebKit/Shared/FocusedElementInformation.serialization.in:
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(contentTypeFromFieldName):
(-[WKContentView _autofillContext]):
* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::focusedElementInformation):
* Tools/TestWebKitAPI/Tests/ios/KeyboardInputTestsIOS.mm:
(TestWebKitAPI::TEST):
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-form-element/form-autocomplete-expected.txt:
Canonical link: https://commits.webkit.org/258582@main
More information about the webkit-changes
mailing list