Title: [295437] trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/HSTS.mm
Revision
295437
Author
[email protected]
Date
2022-06-09 14:41:45 -0700 (Thu, 09 Jun 2022)

Log Message

REGRESSION: [iOS] TestWebKitAPI.HSTS.ThirdParty is consistely failing
https://bugs.webkit.org/show_bug.cgi?id=241342

Reviewed by Kate Cheney.

* Tools/TestWebKitAPI/Tests/WebKitCocoa/HSTS.mm:
(TestWebKitAPI::hstsWebViewAndDelegate):
(TestWebKitAPI::TEST):

Canonical link: https://commits.webkit.org/251443@main

Modified Paths

Diff

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/HSTS.mm (295436 => 295437)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/HSTS.mm	2022-06-09 21:36:44 UTC (rev 295436)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/HSTS.mm	2022-06-09 21:41:45 UTC (rev 295437)
@@ -47,6 +47,7 @@
     [storeConfiguration setAllowsHSTSWithUntrustedRootCertificate:YES];
     auto viewConfiguration = adoptNS([WKWebViewConfiguration new]);
     [viewConfiguration setWebsiteDataStore:adoptNS([[WKWebsiteDataStore alloc] _initWithConfiguration:storeConfiguration.get()]).get()];
+    [[viewConfiguration websiteDataStore] _setResourceLoadStatisticsEnabled:YES];
     auto webView = adoptNS([[WKWebView alloc] initWithFrame:CGRectMake(0, 0, 100, 100) configuration:viewConfiguration.get()]);
     auto delegate = adoptNS([TestNavigationDelegate new]);
     [webView setNavigationDelegate:delegate.get()];
@@ -91,12 +92,7 @@
     EXPECT_WK_STREQ(webView.get().URL.absoluteString, "https://example.com/");
 }
 
-// FIXME: Re-enable after webkit.org/b/241342 is resolved
-#if (PLATFORM(IOS))
-TEST(HSTS, DISABLED_ThirdParty)
-#else
 TEST(HSTS, ThirdParty)
-#endif
 {
     auto httpsServer = hstsServer();
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to