Title: [288310] trunk/Tools
Revision
288310
Author
[email protected]
Date
2022-01-20 11:12:51 -0800 (Thu, 20 Jan 2022)

Log Message

[ iOS15 ] TestWebKitAPI.WebKit.ServerTrust and TestWebKitAPI.WebKit.FastServerTrust tests timing out
https://bugs.webkit.org/show_bug.cgi?id=231320
<rdar://80352256>

Patch by Alex Christensen <[email protected]> on 2022-01-20
Reviewed by Chris Dumez.

SecTrustCopyCertificateChain returns a CFArrayRef of SecCertificateRef, not CFData.

* TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm:
(verifyCertificateAndPublicKey):
(TestWebKitAPI::TEST):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (288309 => 288310)


--- trunk/Tools/ChangeLog	2022-01-20 19:12:44 UTC (rev 288309)
+++ trunk/Tools/ChangeLog	2022-01-20 19:12:51 UTC (rev 288310)
@@ -1,3 +1,17 @@
+2022-01-20  Alex Christensen  <[email protected]>
+
+        [ iOS15 ] TestWebKitAPI.WebKit.ServerTrust and TestWebKitAPI.WebKit.FastServerTrust tests timing out
+        https://bugs.webkit.org/show_bug.cgi?id=231320
+        <rdar://80352256>
+
+        Reviewed by Chris Dumez.
+
+        SecTrustCopyCertificateChain returns a CFArrayRef of SecCertificateRef, not CFData.
+
+        * TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm:
+        (verifyCertificateAndPublicKey):
+        (TestWebKitAPI::TEST):
+
 2022-01-20  Angelos Oikonomopoulos  <[email protected]>
 
         [JSC] Further unification in run-jsc-stress-tests

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm (288309 => 288310)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm	2022-01-20 19:12:44 UTC (rev 288309)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm	2022-01-20 19:12:51 UTC (rev 288310)
@@ -452,7 +452,7 @@
     EXPECT_EQ(1, SecTrustGetCertificateCount(trust));
 
 #if HAVE(SEC_TRUST_COPY_CERTIFICATE_CHAIN)
-    auto certificate = adoptCF((CFDataRef)CFArrayGetValueAtIndex(adoptCF(SecTrustCopyCertificateChain(trust)).get(), 0));
+    auto certificate = adoptCF(SecCertificateCopyData((SecCertificateRef)CFArrayGetValueAtIndex(adoptCF(SecTrustCopyCertificateChain(trust)).get(), 0)));
 #else
     auto certificate = adoptCF(SecCertificateCopyData(SecTrustGetCertificateAtIndex(trust, 0)));
 #endif
@@ -600,8 +600,6 @@
 
 namespace TestWebKitAPI {
 
-// FIXME: Re-enable these tests once webkit.org/b/231320 is resolved.
-#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 120000) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED < 150000)
 TEST(WebKit, ServerTrust)
 {
     HTTPServer server(HTTPServer::respondWithOK, HTTPServer::Protocol::Https);
@@ -631,7 +629,6 @@
     [delegate waitForDidFinishNavigation];
     EXPECT_EQ([delegate authenticationChallengeCount], 1ull);
 }
-#endif // (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 120000) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED < 150000)
 
 TEST(WebKit, ErrorSecureCoding)
 {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to