mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
LibWeb: Use finalize for cleaning up all navigables
The use of this HashMap looks very spooky, but let's at least use finalize when cleaning them up on destruction to make things slightly less dangerous looking.
This commit is contained in:
parent
59162c8155
commit
76397c9ecd
Notes:
github-actions[bot]
2025-01-17 09:11:51 +00:00
Author: https://github.com/shannonbooth
Commit: 76397c9ecd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3284
7 changed files with 17 additions and 13 deletions
|
@ -283,7 +283,7 @@ void NavigableContainer::destroy_the_child_navigable()
|
|||
m_content_navigable = nullptr;
|
||||
|
||||
// Not in the spec:
|
||||
HTML::all_navigables().remove(navigable);
|
||||
HTML::all_navigables().remove(*navigable);
|
||||
|
||||
// 6. Let parentDocState be container's node navigable's active session history entry's document state.
|
||||
auto parent_doc_state = this->navigable()->active_session_history_entry()->document_state();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue