mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
LibWeb: Restore check to prevent closing a traversable twice
We removed this check as a workaround for a spec issue that was resolved
in:
3a8303ece4
This commit is contained in:
parent
be13a0ec3f
commit
d80d951991
Notes:
github-actions[bot]
2024-10-09 11:00:32 +00:00
Author: https://github.com/trflynn89
Commit: d80d951991
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1692
Reviewed-by: https://github.com/awesomekling ✅
3 changed files with 17 additions and 10 deletions
|
@ -826,9 +826,9 @@ void Window::close()
|
|||
// 1. Set thisTraversable's is closing to true.
|
||||
traversable->set_closing(true);
|
||||
|
||||
// 2. Queue a task on the DOM manipulation task source to close thisTraversable.
|
||||
// 2. Queue a task on the DOM manipulation task source to definitely close thisTraversable.
|
||||
HTML::queue_global_task(HTML::Task::Source::DOMManipulation, incumbent_global_object, JS::create_heap_function(heap(), [traversable] {
|
||||
verify_cast<TraversableNavigable>(*traversable).close_top_level_traversable();
|
||||
verify_cast<TraversableNavigable>(*traversable).definitely_close_top_level_traversable();
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue