LibWeb: Stop timers when finalizing a Window or WorkerGlobalScope

This avoids an assertion that timers are not active when destroyed.
This commit is contained in:
Andreas Kling 2024-01-03 10:10:47 +01:00
commit 40f87f0954
Notes: sideshowbarker 2024-07-17 02:08:15 +09:00
6 changed files with 20 additions and 0 deletions

View file

@ -210,6 +210,7 @@ private:
explicit Window(JS::Realm&);
virtual void visit_edges(Cell::Visitor&) override;
virtual void finalize() override;
// ^HTML::GlobalEventHandlers
virtual DOM::EventTarget& global_event_handlers_to_event_target(FlyString const&) override { return *this; }