Title: [241922] branches/safari-607-branch/Source/WebKit
Revision
241922
Author
[email protected]
Date
2019-02-21 16:14:29 -0800 (Thu, 21 Feb 2019)

Log Message

Cherry-pick r241919. rdar://problem/48267027

    Fix API test crashes after r241855.

    Reviewed by Ryosuke Niwa.

    * UIProcess/WebProcessCache.cpp:
    (WebKit::WebProcessCache::addProcessIfPossible):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241919 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-607-branch/Source/WebKit/ChangeLog (241921 => 241922)


--- branches/safari-607-branch/Source/WebKit/ChangeLog	2019-02-22 00:14:24 UTC (rev 241921)
+++ branches/safari-607-branch/Source/WebKit/ChangeLog	2019-02-22 00:14:29 UTC (rev 241922)
@@ -1,5 +1,27 @@
 2019-02-21  Alan Coon  <[email protected]>
 
+        Cherry-pick r241919. rdar://problem/48267027
+
+    Fix API test crashes after r241855.
+    
+    Reviewed by Ryosuke Niwa.
+    
+    * UIProcess/WebProcessCache.cpp:
+    (WebKit::WebProcessCache::addProcessIfPossible):
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-02-21  Chris Dumez  <[email protected]>
+
+            Fix API test crashes after r241855.
+
+            Reviewed by Ryosuke Niwa.
+
+            * UIProcess/WebProcessCache.cpp:
+            (WebKit::WebProcessCache::addProcessIfPossible):
+
+2019-02-21  Alan Coon  <[email protected]>
+
         Cherry-pick r241868. rdar://problem/48267027
 
     Unreviewed API test fix after r241855.

Modified: branches/safari-607-branch/Source/WebKit/UIProcess/WebProcessCache.cpp (241921 => 241922)


--- branches/safari-607-branch/Source/WebKit/UIProcess/WebProcessCache.cpp	2019-02-22 00:14:24 UTC (rev 241921)
+++ branches/safari-607-branch/Source/WebKit/UIProcess/WebProcessCache.cpp	2019-02-22 00:14:29 UTC (rev 241922)
@@ -66,7 +66,7 @@
 
     RELEASE_LOG(ProcessSwapping, "%p - WebProcessCache::addProcessIfPossible(): Checking if process %i is responsive before caching it...", this, process->processIdentifier());
     process->setIsInProcessCache(true);
-    process->isResponsive([process = process.copyRef(), registrableDomain](bool isResponsive) {
+    process->isResponsive([process = process.copyRef(), processPool = makeRef(process->processPool()), registrableDomain](bool isResponsive) {
         process->setIsInProcessCache(false);
         if (!isResponsive) {
             RELEASE_LOG_ERROR(ProcessSwapping, "%p - WebProcessCache::addProcessIfPossible(): Not caching process %i because it is not responsive", &process->processPool().webProcessCache(), process->processIdentifier());
@@ -73,7 +73,7 @@
             process->shutDown();
             return;
         }
-        if (!process->processPool().webProcessCache().addProcess(registrableDomain, process.copyRef()))
+        if (!processPool->webProcessCache().addProcess(registrableDomain, process.copyRef()))
             process->shutDown();
     });
     return true;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to