Unreviewed, fix assertion failures in API tests after r243159.
[WebKit-https.git] / Source / WebKit / UIProcess / VisitedLinkStore.cpp
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());
 }