1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +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

@ -34,6 +34,8 @@ public:
virtual void set_window_handle(String handle) = 0;
protected:
virtual void visit_edges(JS::Cell::Visitor&) override;
String m_name;
// https://html.spec.whatwg.org/multipage/browsers.html#is-popup