Title: [290212] trunk/Source/WebKit
Revision
290212
Author
wenson_hs...@apple.com
Date
2022-02-19 13:02:42 -0800 (Sat, 19 Feb 2022)

Log Message

Unreviewed, fix the internal iOS build after r290154

`-[ASCAgentProtocol performAutoFillAuthorizationRequestsForContext:]` only exists on macOS and Catalyst; as
such, this call site needs to be guarded for those platforms.

* UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm:
(WebKit::WebAuthenticatorCoordinatorProxy::performRequest):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (290211 => 290212)


--- trunk/Source/WebKit/ChangeLog	2022-02-19 19:24:02 UTC (rev 290211)
+++ trunk/Source/WebKit/ChangeLog	2022-02-19 21:02:42 UTC (rev 290212)
@@ -1,5 +1,15 @@
 2022-02-19  Wenson Hsieh  <wenson_hs...@apple.com>
 
+        Unreviewed, fix the internal iOS build after r290154
+
+        `-[ASCAgentProtocol performAutoFillAuthorizationRequestsForContext:]` only exists on macOS and Catalyst; as
+        such, this call site needs to be guarded for those platforms.
+
+        * UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm:
+        (WebKit::WebAuthenticatorCoordinatorProxy::performRequest):
+
+2022-02-19  Wenson Hsieh  <wenson_hs...@apple.com>
+
         [macOS] Hovering over "Copy Cropped Image" context menu item should reveal the cropped image
         https://bugs.webkit.org/show_bug.cgi?id=236845
         rdar://89152746

Modified: trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm (290211 => 290212)


--- trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm	2022-02-19 19:24:02 UTC (rev 290211)
+++ trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm	2022-02-19 21:02:42 UTC (rev 290212)
@@ -372,6 +372,7 @@
         });
     });
     
+#if PLATFORM(MAC) || PLATFORM(MACCATALYST)
     if ([requestContext respondsToSelector:@selector(requestStyle)] && requestContext.get().requestStyle == ASCredentialRequestStyleAutoFill) {
         [proxy performAutoFillAuthorizationRequestsForContext:requestContext.get() withCompletionHandler:makeBlockPtr([proxy = WTFMove(proxy), completionHandler = WTFMove(completionHandler)](id <ASCCredentialProtocol> credential, NSError *error) mutable {
             completionHandler(credential, error);
@@ -378,6 +379,7 @@
         }).get()];
         return;
     }
+#endif // PLATFORM(MAC) || PLATFORM(MACCATALYST)
     
 #if PLATFORM(IOS)
     [proxy performAuthorizationRequestsForContext:requestContext.get() withCompletionHandler:makeBlockPtr([proxy = WTFMove(proxy), completionHandler = WTFMove(completionHandler)](id <ASCCredentialProtocol> credential, NSError *error) mutable {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to