[iOS] Stop terminating the prewarmed process on application suspension
https://bugs.webkit.org/show_bug.cgi?id=203033

Reviewed by Alex Christensen.

Stop terminating the prewarmed process on application suspension. Having no prewarmed process when the
application resumes means the next cross-site load will be significantly slower. If the system needs
memory, this process can be jetsammed.

* UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::WebProcessPool::applicationIsAboutToSuspend):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog
index c4e45c5..15ecc37 100644
--- a/Source/WebKit/ChangeLog
+++ b/Source/WebKit/ChangeLog
@@ -1,5 +1,19 @@
 2019-10-16  Chris Dumez  <cdumez@apple.com>
 
+        [iOS] Stop terminating the prewarmed process on application suspension
+        https://bugs.webkit.org/show_bug.cgi?id=203033
+
+        Reviewed by Alex Christensen.
+
+        Stop terminating the prewarmed process on application suspension. Having no prewarmed process when the
+        application resumes means the next cross-site load will be significantly slower. If the system needs
+        memory, this process can be jetsammed.
+
+        * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
+        (WebKit::WebProcessPool::applicationIsAboutToSuspend):
+
+2019-10-16  Chris Dumez  <cdumez@apple.com>
+
         Drop unused WKPageSetResourceCachingDisabled() SPI
         https://bugs.webkit.org/show_bug.cgi?id=203035
 
diff --git a/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm b/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
index 1a41cd1..af63dc2 100644
--- a/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
+++ b/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
@@ -589,8 +589,6 @@
     RELEASE_LOG(ProcessSuspension, "WebProcessPool::applicationIsAboutToSuspend() Terminating non-critical processes");
 
     m_backForwardCache->pruneToSize(1);
-    if (m_prewarmedProcess)
-        m_prewarmedProcess->shutDown();
     m_webProcessCache->clear();
 }