Title: [285230] trunk/Tools
Revision
285230
Author
commit-qu...@webkit.org
Date
2021-11-03 14:56:42 -0700 (Wed, 03 Nov 2021)

Log Message

[ iOS Debug ] TestWebKitAPI.ResourceLoadStatistics.GrandfatherCallback is failing
https://bugs.webkit.org/show_bug.cgi?id=232675

Patch by Alex Christensen <achristen...@webkit.org> on 2021-11-03
Reviewed by Kate Cheney.

Clearing website data attempts a connection with the daemon.
For now, just tell it not to connect to the daemon.

* TestWebKitAPI/Tests/WebKitCocoa/ResourceLoadStatistics.mm:
(TEST):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (285229 => 285230)


--- trunk/Tools/ChangeLog	2021-11-03 21:32:23 UTC (rev 285229)
+++ trunk/Tools/ChangeLog	2021-11-03 21:56:42 UTC (rev 285230)
@@ -1,3 +1,16 @@
+2021-11-03  Alex Christensen  <achristen...@webkit.org>
+
+        [ iOS Debug ] TestWebKitAPI.ResourceLoadStatistics.GrandfatherCallback is failing
+        https://bugs.webkit.org/show_bug.cgi?id=232675
+
+        Reviewed by Kate Cheney.
+
+        Clearing website data attempts a connection with the daemon.
+        For now, just tell it not to connect to the daemon.
+
+        * TestWebKitAPI/Tests/WebKitCocoa/ResourceLoadStatistics.mm:
+        (TEST):
+
 2021-11-03  Chris Dumez  <cdu...@apple.com>
 
         _pasteboardWithName should be thread-safe

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ResourceLoadStatistics.mm (285229 => 285230)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ResourceLoadStatistics.mm	2021-11-03 21:32:23 UTC (rev 285229)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ResourceLoadStatistics.mm	2021-11-03 21:56:42 UTC (rev 285230)
@@ -83,7 +83,9 @@
 
 TEST(ResourceLoadStatistics, GrandfatherCallback)
 {
-    auto *dataStore = [WKWebsiteDataStore defaultDataStore];
+    auto dataStoreConfiguration = adoptNS([_WKWebsiteDataStoreConfiguration new]);
+    dataStoreConfiguration.get().pcmMachServiceName = nil;
+    auto dataStore = adoptNS([[WKWebsiteDataStore alloc] _initWithConfiguration:dataStoreConfiguration.get()]);
 
     NSURL *statisticsDirectoryURL = [NSURL fileURLWithPath:[@"~/Library/WebKit/com.apple.WebKit.TestWebKitAPI/WebsiteData/ResourceLoadStatistics" stringByExpandingTildeInPath] isDirectory:YES];
     NSURL *fileURL = [statisticsDirectoryURL URLByAppendingPathComponent:@"observations.db"];
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to