Unreviewed, fix assertion failures in API tests after r243159.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Mar 2019 15:59:40 +0000 (15:59 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Mar 2019 15:59:40 +0000 (15:59 +0000)
* UIProcess/VisitedLinkStore.cpp:
(WebKit::VisitedLinkStore::removeProcess):

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/VisitedLinkStore.cpp

index 117fd67..e3e0444 100644 (file)
@@ -1,3 +1,10 @@
+2019-03-20  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed, fix assertion failures in API tests after r243159.
+
+        * UIProcess/VisitedLinkStore.cpp:
+        (WebKit::VisitedLinkStore::removeProcess):
+
 2019-03-20  Tim Horton  <timothy_horton@apple.com>
 
         Add an platform-driven spell-checking mechanism
index fac3cdd..f2e7b93 100644 (file)
@@ -68,9 +68,9 @@ void VisitedLinkStore::addProcess(WebProcessProxy& process)
 
 void VisitedLinkStore::removeProcess(WebProcessProxy& process)
 {
-    ASSERT(m_processes.contains(&process));
+    if (!m_processes.remove(&process))
+        return;
 
-    m_processes.remove(&process);
     process.removeMessageReceiver(Messages::VisitedLinkStore::messageReceiverName(), identifier());
 }