mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
LibWeb: Fix Request::visit_edges
to actually visit m_body
This fixes bug introduced in bdd3a16b16
that `m_body` is not visited because `BodyType` variant has
`JS::NonnullGCPtr` instead of `JS::GCPtr`.
This commit is contained in:
parent
769f11f9ae
commit
d05be0d504
Notes:
sideshowbarker
2024-07-18 01:43:16 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/d05be0d504 Pull-request: https://github.com/SerenityOS/serenity/pull/20687
@ -24,7 +24,7 @@ void Request::visit_edges(JS::Cell::Visitor& visitor)
|
||||
visitor.visit(m_header_list);
|
||||
visitor.visit(m_client);
|
||||
m_body.visit(
|
||||
[&](JS::GCPtr<Body>& body) { visitor.visit(body); },
|
||||
[&](JS::NonnullGCPtr<Body>& body) { visitor.visit(body); },
|
||||
[](auto&) {});
|
||||
m_reserved_client.visit(
|
||||
[&](JS::GCPtr<HTML::EnvironmentSettingsObject> const& value) { visitor.visit(value); },
|
||||
|
Loading…
Reference in New Issue
Block a user