Modified: trunk/Tools/ChangeLog (238156 => 238157)
--- trunk/Tools/ChangeLog 2018-11-14 01:47:29 UTC (rev 238156)
+++ trunk/Tools/ChangeLog 2018-11-14 03:42:44 UTC (rev 238157)
@@ -1,3 +1,15 @@
+2018-11-13 Chris Dumez <[email protected]>
+
+ Several Service Worker API tests are failing when enabling PSON
+ https://bugs.webkit.org/show_bug.cgi?id=191619
+
+ Reviewed by Youenn Fablet.
+
+ Update tests to use _webProcessCountIgnoringPrewarmed instead of _webProcessCount so that they are
+ not impacted by process prewarming.
+
+ * TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:
+
2018-11-13 Wenson Hsieh <[email protected]>
[iOS] Do not show selection UI for editable elements with opacity near zero
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm (238156 => 238157)
--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm 2018-11-14 01:47:29 UTC (rev 238156)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm 2018-11-14 03:42:44 UTC (rev 238157)
@@ -1040,7 +1040,7 @@
[newConfiguration setURLSchemeHandler:handler.get() forURLScheme:@"SW"];
webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:newConfiguration.get()]);
- EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCount);
+ EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCountIgnoringPrewarmed);
request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"sw://host/regularPageWithConnection.html"]];
[webView loadRequest:request];
TestWebKitAPI::Util::run(&done);
@@ -1047,10 +1047,10 @@
done = false;
// Make sure that loading the simple page did not start the service worker process.
- EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCount);
+ EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCountIgnoringPrewarmed);
webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:newConfiguration.get()]);
- EXPECT_EQ(2u, webView.get().configuration.processPool._webProcessCount);
+ EXPECT_EQ(2u, webView.get().configuration.processPool._webProcessCountIgnoringPrewarmed);
request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"sw://host/main.html"]];
[webView loadRequest:request];
TestWebKitAPI::Util::run(&done);
@@ -1057,7 +1057,7 @@
done = false;
// Make sure that loading this page did start the service worker process.
- EXPECT_EQ(3u, webView.get().configuration.processPool._webProcessCount);
+ EXPECT_EQ(3u, webView.get().configuration.processPool._webProcessCountIgnoringPrewarmed);
[[configuration websiteDataStore] removeDataOfTypes:[WKWebsiteDataStore allWebsiteDataTypes] modifiedSince:[NSDate distantPast] completionHandler:^() {
done = true;
@@ -1134,7 +1134,7 @@
newConfiguration.get().websiteDataStore = [configuration websiteDataStore];
webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:newConfiguration.get()]);
- EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCount);
+ EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCountIgnoringPrewarmed);
request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"sw://host/regularPageWithConnection.html"]];
[webView loadRequest:request];
TestWebKitAPI::Util::run(&done);
@@ -1141,7 +1141,7 @@
done = false;
// Make sure that loading the simple page did not start the service worker process.
- EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCount);
+ EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCountIgnoringPrewarmed);
[[configuration websiteDataStore] removeDataOfTypes:[WKWebsiteDataStore allWebsiteDataTypes] modifiedSince:[NSDate distantPast] completionHandler:^() {
done = true;