Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 371a8b96982fe7c2ad75434942b0972478864ab4
https://github.com/WebKit/WebKit/commit/371a8b96982fe7c2ad75434942b0972478864ab4
Author: Jintian Wang <[email protected]>
Date: 2025-11-30 (Sun, 30 Nov 2025)
Changed paths:
M Source/WebKit/UIProcess/API/APIUIClient.h
M Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h
M Source/WebKit/UIProcess/Cocoa/UIDelegate.h
M Source/WebKit/UIProcess/Cocoa/UIDelegate.mm
M
Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm
Log Message:
-----------
Notify UIProcess of authentication view service presentation
rdar://164687201
https://bugs.webkit.org/show_bug.cgi?id=302557
Reviewed by Pascoe.
Add a new WKUIDelegate method to notify clients when modal or view service will
present on visionOS (Currently only supports WebAuthentication view service
UI). This allows Safari to prepare its UI state when the modal appears.
The delegate method is called from WebAuthenticatorCoordinatorProxy when
`m_isConditionalMediation` is false and the authentication UI will show.
`m_isConditionalMediation` being true indicates it's an autofill request.
* Source/WebKit/UIProcess/API/APIUIClient.h:
(API::UIClient::willPresentModalUI):
Add willPresentModalUI to APIUIClient
* Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
Add WKUIDelegate private method for visionOS. We should add modal type as
parameter to tell client what modal will show / what modals are intentionally
supported
* Source/WebKit/UIProcess/Cocoa/UIDelegate.h:
* Source/WebKit/UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::setDelegate):
(WebKit::UIDelegate::UIClient::willPresentModalUI):
*
Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm:
(WebKit::WebAuthenticatorCoordinatorProxy::performRequest):
Call delegate from WebAuthenticatorCoordinatorProxy when presenting UI
Canonical link: https://commits.webkit.org/303658@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications