Unreviewed, fix assertion introduced in r245339.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 May 2019 21:14:33 +0000 (21:14 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 May 2019 21:14:33 +0000 (21:14 +0000)
* UIProcess/WebProcessCache.cpp:
(WebKit::WebProcessCache::CachedProcess::CachedProcess):

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/WebProcessCache.cpp

index 10205c8..9aed2e1 100644 (file)
@@ -1,3 +1,10 @@
+2019-05-15  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed, fix assertion introduced in r245339.
+
+        * UIProcess/WebProcessCache.cpp:
+        (WebKit::WebProcessCache::CachedProcess::CachedProcess):
+
 2019-05-15  Sihui Liu  <sihui_liu@apple.com>
 
         Add assertions to help diagnose crash at WebProcessProxy::processPool()
index 88177b1..cbfb0ab 100644 (file)
@@ -247,7 +247,7 @@ WebProcessCache::CachedProcess::CachedProcess(Ref<WebProcessProxy>&& process)
     , m_evictionTimer(RunLoop::main(), this, &CachedProcess::evictionTimerFired)
 {
     RELEASE_ASSERT(!m_process->pageCount());
-    RELEASE_ASSERT_WITH_MESSAGE(!m_process->websiteDataStore().hasProcess(process.ptr()), "Only processes with pages should be registered with the data store");
+    RELEASE_ASSERT_WITH_MESSAGE(!m_process->websiteDataStore().hasProcess(m_process.get()), "Only processes with pages should be registered with the data store");
     m_process->setIsInProcessCache(true);
     m_evictionTimer.startOneShot(cachedProcessLifetime);
 }