Skip to content

Truly independent web browser

LibWeb: Allow a fetch record outside of a fetch group to go away

Andreas Klingb1caeeed6749
diff --git a/Libraries/LibWeb/Fetch/Infrastructure/FetchRecord.cpp b/Libraries/LibWeb/Fetch/Infrastructure/FetchRecord.cpp
index 6b697b41eb0..059872086c0 100644
--- a/Libraries/LibWeb/Fetch/Infrastructure/FetchRecord.cpp
+++ b/Libraries/LibWeb/Fetch/Infrastructure/FetchRecord.cpp
@@ -32,7 +32,10 @@ void FetchRecord::visit_edges(Visitor& visitor)
void FetchRecord::finalize()
{
Base::finalize();
- m_list_node.remove();
+
+ // NB: A fetch whose client another process hosts has no fetch group here.
+ if (m_list_node.is_in_list())
+ m_list_node.remove();
}
}