Title: [251753] branches/safari-608-branch
Revision
251753
Author
[email protected]
Date
2019-10-29 18:25:26 -0700 (Tue, 29 Oct 2019)

Log Message

Cherry-pick r251154. rdar://problem/56715899

    [WebAuthn] Rename -[WKUIDelegatePrivate webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:] to -[WKUIDelegatePrivate _webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]
    https://bugs.webkit.org/show_bug.cgi?id=202564
    <rdar://problem/55974027>

    Reviewed by Brent Fulgham.

    Source/WebKit:

    Rename the SPI to a proper SPI style.

    * UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
    * UIProcess/Cocoa/UIDelegate.mm:
    (WebKit::UIDelegate::setDelegate):
    (WebKit::UIDelegate::UIClient::runWebAuthenticationPanel):

    Tools:

    * TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm:
    (-[TestWebAuthenticationPanelUIDelegate _webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]):
    (-[TestWebAuthenticationPanelUIDelegate webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]): Deleted.

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251154 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-608-branch/Source/WebKit/ChangeLog (251752 => 251753)


--- branches/safari-608-branch/Source/WebKit/ChangeLog	2019-10-30 01:25:23 UTC (rev 251752)
+++ branches/safari-608-branch/Source/WebKit/ChangeLog	2019-10-30 01:25:26 UTC (rev 251753)
@@ -1,5 +1,48 @@
 2019-10-29  Alan Coon  <[email protected]>
 
+        Cherry-pick r251154. rdar://problem/56715899
+
+    [WebAuthn] Rename -[WKUIDelegatePrivate webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:] to -[WKUIDelegatePrivate _webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]
+    https://bugs.webkit.org/show_bug.cgi?id=202564
+    <rdar://problem/55974027>
+    
+    Reviewed by Brent Fulgham.
+    
+    Source/WebKit:
+    
+    Rename the SPI to a proper SPI style.
+    
+    * UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
+    * UIProcess/Cocoa/UIDelegate.mm:
+    (WebKit::UIDelegate::setDelegate):
+    (WebKit::UIDelegate::UIClient::runWebAuthenticationPanel):
+    
+    Tools:
+    
+    * TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm:
+    (-[TestWebAuthenticationPanelUIDelegate _webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]):
+    (-[TestWebAuthenticationPanelUIDelegate webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]): Deleted.
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-10-15  Jiewen Tan  <[email protected]>
+
+            [WebAuthn] Rename -[WKUIDelegatePrivate webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:] to -[WKUIDelegatePrivate _webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]
+            https://bugs.webkit.org/show_bug.cgi?id=202564
+            <rdar://problem/55974027>
+
+            Reviewed by Brent Fulgham.
+
+            Rename the SPI to a proper SPI style.
+
+            * UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
+            * UIProcess/Cocoa/UIDelegate.mm:
+            (WebKit::UIDelegate::setDelegate):
+            (WebKit::UIDelegate::UIClient::runWebAuthenticationPanel):
+
+2019-10-29  Alan Coon  <[email protected]>
+
         Cherry-pick r250940. rdar://problem/56598350
 
     [WebAuthn] Move the mock testing entrance to Internals

Modified: branches/safari-608-branch/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h (251752 => 251753)


--- branches/safari-608-branch/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h	2019-10-30 01:25:23 UTC (rev 251752)
+++ branches/safari-608-branch/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h	2019-10-30 01:25:26 UTC (rev 251753)
@@ -137,7 +137,7 @@
 
 - (void)_webView:(WKWebView *)webView takeFocus:(_WKFocusDirection)direction WK_API_AVAILABLE(macos(10.13.4), ios(12.2));
 
-- (void)webView:(WKWebView *)webView runWebAuthenticationPanel:(_WKWebAuthenticationPanel *)panel initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(_WKWebAuthenticationPanelResult))completionHandler WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));
+- (void)_webView:(WKWebView *)webView runWebAuthenticationPanel:(_WKWebAuthenticationPanel *)panel initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(_WKWebAuthenticationPanelResult))completionHandler WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));
 
 #if TARGET_OS_IPHONE
 - (BOOL)_webView:(WKWebView *)webView shouldIncludeAppLinkActionsForElement:(_WKActivatedElementInfo *)element WK_API_AVAILABLE(ios(9.0));

Modified: branches/safari-608-branch/Source/WebKit/UIProcess/Cocoa/UIDelegate.mm (251752 => 251753)


--- branches/safari-608-branch/Source/WebKit/UIProcess/Cocoa/UIDelegate.mm	2019-10-30 01:25:23 UTC (rev 251752)
+++ branches/safari-608-branch/Source/WebKit/UIProcess/Cocoa/UIDelegate.mm	2019-10-30 01:25:26 UTC (rev 251753)
@@ -174,7 +174,7 @@
     m_delegateMethods.webViewHasVideoInPictureInPictureDidChange = [delegate respondsToSelector:@selector(_webView:hasVideoInPictureInPictureDidChange:)];
     m_delegateMethods.webViewDidShowSafeBrowsingWarning = [delegate respondsToSelector:@selector(_webViewDidShowSafeBrowsingWarning:)];
 #if ENABLE(WEB_AUTHN)
-    m_delegateMethods.webViewRunWebAuthenticationPanelInitiatedByFrameCompletionHandler = [delegate respondsToSelector:@selector(webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:)];
+    m_delegateMethods.webViewRunWebAuthenticationPanelInitiatedByFrameCompletionHandler = [delegate respondsToSelector:@selector(_webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:)];
 #endif
 }
 
@@ -1294,8 +1294,8 @@
         return;
     }
 
-    auto checker = CompletionHandlerCallChecker::create(delegate.get(), @selector(webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:));
-    [(id <WKUIDelegatePrivate>)delegate webView:m_uiDelegate.m_webView runWebAuthenticationPanel:wrapper(panel) initiatedByFrame:nil completionHandler:makeBlockPtr([completionHandler = WTFMove(completionHandler), checker = WTFMove(checker)] (_WKWebAuthenticationPanelResult result) mutable {
+    auto checker = CompletionHandlerCallChecker::create(delegate.get(), @selector(_webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:));
+    [(id <WKUIDelegatePrivate>)delegate _webView:m_uiDelegate.m_webView runWebAuthenticationPanel:wrapper(panel) initiatedByFrame:nil completionHandler:makeBlockPtr([completionHandler = WTFMove(completionHandler), checker = WTFMove(checker)] (_WKWebAuthenticationPanelResult result) mutable {
         if (checker->completionHandlerHasBeenCalled())
             return;
         checker->didCallCompletionHandler();

Modified: branches/safari-608-branch/Tools/ChangeLog (251752 => 251753)


--- branches/safari-608-branch/Tools/ChangeLog	2019-10-30 01:25:23 UTC (rev 251752)
+++ branches/safari-608-branch/Tools/ChangeLog	2019-10-30 01:25:26 UTC (rev 251753)
@@ -1,5 +1,45 @@
 2019-10-29  Alan Coon  <[email protected]>
 
+        Cherry-pick r251154. rdar://problem/56715899
+
+    [WebAuthn] Rename -[WKUIDelegatePrivate webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:] to -[WKUIDelegatePrivate _webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]
+    https://bugs.webkit.org/show_bug.cgi?id=202564
+    <rdar://problem/55974027>
+    
+    Reviewed by Brent Fulgham.
+    
+    Source/WebKit:
+    
+    Rename the SPI to a proper SPI style.
+    
+    * UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
+    * UIProcess/Cocoa/UIDelegate.mm:
+    (WebKit::UIDelegate::setDelegate):
+    (WebKit::UIDelegate::UIClient::runWebAuthenticationPanel):
+    
+    Tools:
+    
+    * TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm:
+    (-[TestWebAuthenticationPanelUIDelegate _webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]):
+    (-[TestWebAuthenticationPanelUIDelegate webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]): Deleted.
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-10-15  Jiewen Tan  <[email protected]>
+
+            [WebAuthn] Rename -[WKUIDelegatePrivate webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:] to -[WKUIDelegatePrivate _webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]
+            https://bugs.webkit.org/show_bug.cgi?id=202564
+            <rdar://problem/55974027>
+
+            Reviewed by Brent Fulgham.
+
+            * TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm:
+            (-[TestWebAuthenticationPanelUIDelegate _webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]):
+            (-[TestWebAuthenticationPanelUIDelegate webView:runWebAuthenticationPanel:initiatedByFrame:completionHandler:]): Deleted.
+
+2019-10-29  Alan Coon  <[email protected]>
+
         Cherry-pick r251148. rdar://problem/56598349
 
     [WebAuthn] Write more tests for _WKWebAuthenticationPanel

Modified: branches/safari-608-branch/Tools/TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm (251752 => 251753)


--- branches/safari-608-branch/Tools/TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm	2019-10-30 01:25:23 UTC (rev 251752)
+++ branches/safari-608-branch/Tools/TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm	2019-10-30 01:25:26 UTC (rev 251753)
@@ -79,7 +79,7 @@
     return self;
 }
 
-- (void)webView:(WKWebView *)webView runWebAuthenticationPanel:(_WKWebAuthenticationPanel *)panel initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(_WKWebAuthenticationPanelResult))completionHandler
+- (void)_webView:(WKWebView *)webView runWebAuthenticationPanel:(_WKWebAuthenticationPanel *)panel initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(_WKWebAuthenticationPanelResult))completionHandler
 {
     webAuthenticationPanelRan = true;
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to