[webkit-changes] [WebKit/WebKit] 24e2a6: Implement default requestWebAuthenticationConditon...

Commit Queue noreply at github.com
Thu Feb 6 11:46:23 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 24e2a682f3cc3606ccf528ba97f1c192eb4d5703
      https://github.com/WebKit/WebKit/commit/24e2a682f3cc3606ccf528ba97f1c192eb4d5703
  Author: Pascoe <pascoe at apple.com>
  Date:   2025-02-06 (Thu, 06 Feb 2025)

  Changed paths:
    M Source/WebKit/UIProcess/API/APIUIClient.h
    M Source/WebKit/UIProcess/Cocoa/UIDelegate.h
    M Source/WebKit/UIProcess/Cocoa/UIDelegate.mm
    M Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.cpp
    M Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.h
    M Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm

  Log Message:
  -----------
  Implement default requestWebAuthenticationConditonalMediationRegistration for WKWebView clients
https://bugs.webkit.org/show_bug.cgi?id=287117
rdar://144133083

Reviewed by Brent Fulgham.

Most web browsers on iOS, with exception, use our autofill support
provided by UIKit. This allows WebKit to implement a delegate
to determine if conditional registration should be available for
WKWebView clients.

This patch does that, maintaining the same requirements to use
conditional registration as we do in Safari: There was a username/password
autofill completed in the last 5 minutes by the same site.

* Source/WebKit/UIProcess/API/APIUIClient.h:
(API::UIClient::requestWebAuthenticationConditonalMediationRegistration):
* Source/WebKit/UIProcess/Cocoa/UIDelegate.h:
* Source/WebKit/UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::UIClient::requestWebAuthenticationConditonalMediationRegistration):
* Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.cpp:
(WebKit::WebAuthenticatorCoordinatorProxy::handleRequest):
(WebKit::WebAuthenticatorCoordinatorProxy::removeExpiredAutofillEvents):
(WebKit::WebAuthenticatorCoordinatorProxy::recordAutofill):
(WebKit::WebAuthenticatorCoordinatorProxy::removeMatchingAutofillEventForUsername):
* Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.h:
* Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::autofillLoginCredentials):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list