mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 20:35:13 +00:00
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:
parent
b4eb66d9fe
commit
40f87f0954
6 changed files with 20 additions and 0 deletions
|
@ -130,6 +130,12 @@ void Window::visit_edges(JS::Cell::Visitor& visitor)
|
|||
visitor.visit(m_byte_length_queuing_strategy_size_function);
|
||||
}
|
||||
|
||||
void Window::finalize()
|
||||
{
|
||||
Base::finalize();
|
||||
WindowOrWorkerGlobalScopeMixin::finalize();
|
||||
}
|
||||
|
||||
Window::~Window() = default;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#normalizing-the-feature-name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue