1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibWeb: Add a visit_edges() override to AbstractBrowsingContext

AbstractBrowsingContext has a subclass RemoteBrowsingContext without a
visit_edges() override (and it doesn't really need one). But currently,
we rely on subclasses visiting AbstractBrowsingContext's opener BC.

This adds a visit_edges() to AbstractBrowsingContext to explicitly visit
the opener BC itself.
This commit is contained in:
Timothy Flynn 2023-11-29 15:31:10 -05:00 committed by Sam Atkins
parent b54786ee95
commit 5913efbb45
5 changed files with 22 additions and 1 deletions

View file

@ -289,7 +289,6 @@ void BrowsingContext::visit_edges(Cell::Visitor& visitor)
visitor.visit(m_container);
visitor.visit(m_cursor_position);
visitor.visit(m_window_proxy);
visitor.visit(m_opener_browsing_context);
visitor.visit(m_group);
visitor.visit(m_parent);
visitor.visit(m_first_child);