LibWeb: Add missing visit of IDBRequest::m_source

Clang plugin bug: LadybirdBrowser/ladybird#5959
This commit is contained in:
Andreas Kling 2025-08-22 18:35:50 +02:00 committed by Jelle Raaijmakers
commit 5e6b8b2785
Notes: github-actions[bot] 2025-08-22 17:30:32 +00:00

View file

@ -9,6 +9,9 @@
#include <LibWeb/Bindings/Intrinsics.h>
#include <LibWeb/Crypto/Crypto.h>
#include <LibWeb/HTML/EventNames.h>
#include <LibWeb/IndexedDB/IDBCursor.h>
#include <LibWeb/IndexedDB/IDBIndex.h>
#include <LibWeb/IndexedDB/IDBObjectStore.h>
#include <LibWeb/IndexedDB/IDBRequest.h>
#include <LibWeb/IndexedDB/IDBTransaction.h>
@ -42,6 +45,10 @@ void IDBRequest::visit_edges(Visitor& visitor)
visitor.visit(m_result);
visitor.visit(m_transaction);
m_source.visit(
[&](Empty) {},
[&](auto const& object) { visitor.visit(object); });
if (m_error.has_value())
visitor.visit(*m_error);
}