Title: [241887] branches/safari-607-branch/Source/WebKit
Revision
241887
Author
[email protected]
Date
2019-02-21 13:27:14 -0800 (Thu, 21 Feb 2019)

Log Message

Cherry-pick r241658. rdar://problem/48243434

    https://device.login.microsoftonline.com is hanging on STP75
    https://bugs.webkit.org/show_bug.cgi?id=194734
    <rdar://problem/47573830>

    Reviewed by Jiewen Tan.

    Make sure to only go the XPC route if SecKeyProxyStore has credentials.
    Tested manually by going to the above website with and without the patch.
    Load hangs without the patch and completes with the patch.

    * UIProcess/Authentication/AuthenticationChallengeProxy.cpp:
    (WebKit::AuthenticationChallengeProxy::AuthenticationChallengeProxy):
    * UIProcess/Authentication/cocoa/SecKeyProxyStore.h:
    * UIProcess/Authentication/cocoa/SecKeyProxyStore.mm:
    (WebKit::SecKeyProxyStore::initialize):

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

Modified Paths

Diff

Modified: branches/safari-607-branch/Source/WebKit/ChangeLog (241886 => 241887)


--- branches/safari-607-branch/Source/WebKit/ChangeLog	2019-02-21 21:27:11 UTC (rev 241886)
+++ branches/safari-607-branch/Source/WebKit/ChangeLog	2019-02-21 21:27:14 UTC (rev 241887)
@@ -1,5 +1,46 @@
 2019-02-20  Alan Coon  <[email protected]>
 
+        Cherry-pick r241658. rdar://problem/48243434
+
+    https://device.login.microsoftonline.com is hanging on STP75
+    https://bugs.webkit.org/show_bug.cgi?id=194734
+    <rdar://problem/47573830>
+    
+    Reviewed by Jiewen Tan.
+    
+    Make sure to only go the XPC route if SecKeyProxyStore has credentials.
+    Tested manually by going to the above website with and without the patch.
+    Load hangs without the patch and completes with the patch.
+    
+    * UIProcess/Authentication/AuthenticationChallengeProxy.cpp:
+    (WebKit::AuthenticationChallengeProxy::AuthenticationChallengeProxy):
+    * UIProcess/Authentication/cocoa/SecKeyProxyStore.h:
+    * UIProcess/Authentication/cocoa/SecKeyProxyStore.mm:
+    (WebKit::SecKeyProxyStore::initialize):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241658 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-02-17  Youenn Fablet  <[email protected]>
+
+            https://device.login.microsoftonline.com is hanging on STP75
+            https://bugs.webkit.org/show_bug.cgi?id=194734
+            <rdar://problem/47573830>
+
+            Reviewed by Jiewen Tan.
+
+            Make sure to only go the XPC route if SecKeyProxyStore has credentials.
+            Tested manually by going to the above website with and without the patch.
+            Load hangs without the patch and completes with the patch.
+
+            * UIProcess/Authentication/AuthenticationChallengeProxy.cpp:
+            (WebKit::AuthenticationChallengeProxy::AuthenticationChallengeProxy):
+            * UIProcess/Authentication/cocoa/SecKeyProxyStore.h:
+            * UIProcess/Authentication/cocoa/SecKeyProxyStore.mm:
+            (WebKit::SecKeyProxyStore::initialize):
+
+2019-02-20  Alan Coon  <[email protected]>
+
         Cherry-pick r241606. rdar://problem/48243273
 
     Regression(PSON) Navigating quickly back and forth can lead to getting 'about:blank' in the backforward list

Modified: branches/safari-607-branch/Source/WebKit/UIProcess/Authentication/AuthenticationChallengeProxy.cpp (241886 => 241887)


--- branches/safari-607-branch/Source/WebKit/UIProcess/Authentication/AuthenticationChallengeProxy.cpp	2019-02-21 21:27:11 UTC (rev 241886)
+++ branches/safari-607-branch/Source/WebKit/UIProcess/Authentication/AuthenticationChallengeProxy.cpp	2019-02-21 21:27:14 UTC (rev 241887)
@@ -47,8 +47,7 @@
     : m_coreAuthenticationChallenge(WTFMove(authenticationChallenge))
     , m_listener(AuthenticationDecisionListener::create([challengeID, connection = WTFMove(connection), secKeyProxyStore = WTFMove(secKeyProxyStore)](AuthenticationChallengeDisposition disposition, const WebCore::Credential& credential) {
 #if HAVE(SEC_KEY_PROXY)
-        if (secKeyProxyStore) {
-            secKeyProxyStore->initialize(credential);
+        if (secKeyProxyStore && secKeyProxyStore->initialize(credential)) {
             sendClientCertificateCredentialOverXpc(connection, *secKeyProxyStore, challengeID, credential);
             return;
         }

Modified: branches/safari-607-branch/Source/WebKit/UIProcess/Authentication/cocoa/SecKeyProxyStore.h (241886 => 241887)


--- branches/safari-607-branch/Source/WebKit/UIProcess/Authentication/cocoa/SecKeyProxyStore.h	2019-02-21 21:27:11 UTC (rev 241886)
+++ branches/safari-607-branch/Source/WebKit/UIProcess/Authentication/cocoa/SecKeyProxyStore.h	2019-02-21 21:27:14 UTC (rev 241887)
@@ -43,7 +43,7 @@
 public:
     static Ref<SecKeyProxyStore> create() { return adoptRef(* new SecKeyProxyStore()); }
 
-    void initialize(const WebCore::Credential&);
+    bool initialize(const WebCore::Credential&);
     bool isInitialized() const { return !!m_secKeyProxy; }
 
     auto* get() const { return m_secKeyProxy.get(); }

Modified: branches/safari-607-branch/Source/WebKit/UIProcess/Authentication/cocoa/SecKeyProxyStore.mm (241886 => 241887)


--- branches/safari-607-branch/Source/WebKit/UIProcess/Authentication/cocoa/SecKeyProxyStore.mm	2019-02-21 21:27:11 UTC (rev 241886)
+++ branches/safari-607-branch/Source/WebKit/UIProcess/Authentication/cocoa/SecKeyProxyStore.mm	2019-02-21 21:27:14 UTC (rev 241887)
@@ -33,10 +33,11 @@
 
 namespace WebKit {
 
-void SecKeyProxyStore::initialize(const WebCore::Credential& credential)
+bool SecKeyProxyStore::initialize(const WebCore::Credential& credential)
 {
     if (!credential.isEmpty() && credential.nsCredential().identity)
         m_secKeyProxy = adoptNS([[SecKeyProxy alloc] initWithIdentity:credential.nsCredential().identity]);
+    return isInitialized();
 }
 
 } // namespace WebKit
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to