diff --git a/Userland/Libraries/LibWeb/Crypto/Crypto.cpp b/Userland/Libraries/LibWeb/Crypto/Crypto.cpp index f9f1a3b2a2..f4626ac331 100644 --- a/Userland/Libraries/LibWeb/Crypto/Crypto.cpp +++ b/Userland/Libraries/LibWeb/Crypto/Crypto.cpp @@ -114,4 +114,10 @@ String Crypto::random_uuid() const return builder.to_string(); } +void Crypto::visit_edges(Cell::Visitor& visitor) +{ + Base::visit_edges(visitor); + visitor.visit(m_subtle.ptr()); +} + } diff --git a/Userland/Libraries/LibWeb/Crypto/Crypto.h b/Userland/Libraries/LibWeb/Crypto/Crypto.h index 8d0a782a2a..73e88d8375 100644 --- a/Userland/Libraries/LibWeb/Crypto/Crypto.h +++ b/Userland/Libraries/LibWeb/Crypto/Crypto.h @@ -25,6 +25,9 @@ public: DOM::ExceptionOr get_random_values(JS::Value array) const; String random_uuid() const; +protected: + virtual void visit_edges(Cell::Visitor&) override; + private: explicit Crypto(HTML::Window&); virtual void initialize(JS::Realm&) override;